Advertisement
enoch_pi

Untitled

Jan 14th, 2019
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 KB | None | 0 0
  1. **********When I follow these instructions found on https://github.com/evennia/evennia/wiki/Online-Setup
  2.  
  3. Web server
  4.  
  5. # Required. This is a list of tuples
  6. # (outgoing_port, internal_port). Only the outgoing
  7. # port should be open to the world!
  8. # set outgoing port to 80 if you want to run Evennia
  9. # as the only web server on your machine (if available).
  10. WEBSERVER_PORTS = [(4001, 4002)]
  11. # Optional for security. Change this to the IP your
  12. # server can be reached at (normally the same
  13. # as TELNET_INTERFACES)
  14. WEBSERVER_INTERFACES = ['0.0.0.0']
  15. # Optional for security. Protects against
  16. # man-in-the-middle attacks. Change it to your server's
  17. # IP address or URL when you run a production server.
  18. ALLOWED_HOSTS = ['*']
  19.  
  20. The web server is always configured with two ports at a time. The outgoing port (4001 by default) is the port external connections can use. If you don't want users to have to specify the port when they connect, you should set this to 80 - this however only works if you are not running any other web server on the machine. The internal port (4002 by default) is used internally by Evennia to communicate between the Server and the Portal. It should not be available to the outside world. You usually only need to change the outgoing port unless the default internal port is clashing with some other program.
  21.  
  22. ***********I receive this Error:
  23. (never) pi@Evennia:~/muddev/pandora $ evennia start
  24. Portal starting ...
  25. An error has occurred: b"CannotListenError: Couldn't listen on 0.0.0.0:80: [Errno 13] Permission denied."
  26. Please look at log file for more information.
  27. Connection to Evennia timed out. Try again.
  28.  
  29.  
  30.  
  31.  
  32. ***********************************************************************************************************
  33. My settings.conf file is set up as such:
  34.  
  35. # Use the defaults from Evennia unless explicitly overridden
  36. from evennia.settings_default import *
  37.  
  38. ######################################################################
  39. # Evennia base server config
  40. ######################################################################
  41.  
  42. # This is the name of your game. Make it catchy!
  43. SERVERNAME = "pandora"
  44.  
  45. ######################################################################
  46. # Settings given in secret_settings.py override those in this file.
  47. ######################################################################
  48. try:
  49. from server.conf.secret_settings import *
  50. except ImportError:
  51. print("secret_settings.py file not found or failed to import.")
  52.  
  53. #####################################################################
  54. # Settings I personally have added to attempt to allow non-port specific connections
  55. #####################################################################
  56.  
  57. WEBSERVER_PORTS = [(80, 4002)]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement