aboutsummaryrefslogtreecommitdiffstats
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
parentBamboozled again! (diff)
Add font-awesome pro, and default to port 80
-rw-r--r--pysite/route_manager.py4
-rw-r--r--templates/main/base.html2
-rw-r--r--templates/wiki/base.html2
3 files changed, 4 insertions, 4 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()
diff --git a/templates/main/base.html b/templates/main/base.html
index 6f5921d9..edd79fb5 100644
--- a/templates/main/base.html
+++ b/templates/main/base.html
@@ -5,7 +5,7 @@
<title>Python Discord | {% block title %}{% endblock %}</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
- <script defer src="https://use.fontawesome.com/releases/v5.0.6/js/all.js"></script>
+ <script defer src="https://pro.fontawesome.com/releases/v5.0.9/js/all.js" integrity="sha384-DtPgXIYsUR6lLmJK14ZNUi11aAoezQtw4ut26Zwy9/6QXHH8W3+gjrRDT+lHiiW4" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/uikit/3.0.0-beta.39/js/uikit.min.js"></script>
<link rel="shortcut icon" href="{{ static_file('favicon.ico') }}">
<link rel="stylesheet" href="{{ static_file('uikit_blurple.css') }}"/>
diff --git a/templates/wiki/base.html b/templates/wiki/base.html
index c7bd5616..d28d9e77 100644
--- a/templates/wiki/base.html
+++ b/templates/wiki/base.html
@@ -5,7 +5,7 @@
<title>Python Discord | {% block title %}{% endblock %}</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
- <script defer src="https://use.fontawesome.com/releases/v5.0.6/js/all.js"></script>
+ <script defer src="https://pro.fontawesome.com/releases/v5.0.9/js/all.js" integrity="sha384-DtPgXIYsUR6lLmJK14ZNUi11aAoezQtw4ut26Zwy9/6QXHH8W3+gjrRDT+lHiiW4" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/uikit/3.0.0-beta.39/js/uikit.min.js"></script>
<link rel="shortcut icon" href="{{ static_file('favicon.ico') }}">
<link rel="stylesheet" href="{{ static_file('uikit_blurple.css') }}"/>