From 7ca904564ccf885f1fb5a171d17a459f9a5e2764 Mon Sep 17 00:00:00 2001 From: b3yond Date: Sat, 8 Sep 2018 16:06:25 +0200 Subject: [PATCH] Port is configurable now --- config.toml.example | 1 + frontend.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config.toml.example b/config.toml.example index ec7a14b..dca90a7 100644 --- a/config.toml.example +++ b/config.toml.example @@ -6,6 +6,7 @@ consumer_secret = "your_consumer_secret" [web] host = "0.0.0.0" # will be used by bottle as a host. +port = 80 contact = "b3yond@riseup.net" [mail] diff --git a/frontend.py b/frontend.py index d3bf26f..6133ba1 100755 --- a/frontend.py +++ b/frontend.py @@ -264,6 +264,6 @@ bottle.install(SessionPlugin('/')) if __name__ == '__main__': # testing only - bottle.run(host='localhost', port=8080) + bottle.run(host='localhost', port=config["web"]["port"]) else: application.catchall = False