aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/route_manager.py
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-04-09 11:45:55 +0100
committerGravatar Gareth Coles <[email protected]>2018-04-09 11:45:55 +0100
commit36ecab0d3b70d9887809c579f2cb44434a300907 (patch)
tree95108d30618679a6cbe6fcd9152d33330e3061a6 /pysite/route_manager.py
parentBamboozled again! (diff)
Add font-awesome pro, and default to port 80
Diffstat (limited to 'pysite/route_manager.py')
-rw-r--r--pysite/route_manager.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pysite/route_manager.py b/pysite/route_manager.py
index e6d2c92c..9854b684 100644
--- a/pysite/route_manager.py
+++ b/pysite/route_manager.py
@@ -32,7 +32,7 @@ class RouteManager:
self.db = RethinkDB()
self.log = logging.getLogger(__name__)
self.app.secret_key = os.environ.get("WEBPAGE_SECRET_KEY", "super_secret")
- self.app.config["SERVER_NAME"] = os.environ.get("SERVER_NAME", "pythondiscord.local:8080")
+ self.app.config["SERVER_NAME"] = os.environ.get("SERVER_NAME", "pythondiscord.local")
self.app.config["PREFERRED_URL_SCHEME"] = PREFERRED_URL_SCHEME
self.app.config["WTF_CSRF_CHECK_DEFAULT"] = False # We only want to protect specific routes
@@ -104,7 +104,7 @@ class RouteManager:
from geventwebsocket.handler import WebSocketHandler
server = WSGIServer(
- ("0.0.0.0", int(os.environ.get("WEBPAGE_PORT", 8080))), # noqa: B104, S104
+ ("0.0.0.0", int(os.environ.get("WEBPAGE_PORT", 80))), # noqa: B104, S104
self.app, handler_class=WebSocketHandler
)
server.serve_forever()