Port is configurable now

master
b3yond 2018-09-08 16:06:25 +02:00
parent e2365735ff
commit 3ce2084604
2 changed files with 2 additions and 1 deletions

View File

@ -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]

View File

@ -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