1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Added setting for custom host (closes GH-4)

This commit is contained in:
Krateng 2019-06-30 19:32:16 +02:00
parent 289a1dc076
commit 4323d0dc67
2 changed files with 7 additions and 1 deletions

View File

@ -25,6 +25,7 @@ import setproctitle
#settings.config(files=["settings/default.ini","settings/settings.ini"])
#settings.update("settings/default.ini","settings/settings.ini")
MAIN_PORT = settings.get_settings("WEB_PORT")
HOST = settings.get_settings("HOST")
webserver = Bottle()
@ -192,4 +193,4 @@ database.start_db()
database.dbserver.mount(server=webserver)
log("Starting up Maloja server...")
run(webserver, host='::', port=MAIN_PORT, server='waitress')
run(webserver, host=HOST, port=MAIN_PORT, server='waitress')

View File

@ -1,6 +1,11 @@
# Do not change settings in this file
# Instead, simply write an entry with the same name in your own settings.ini file
# Category headers in [brackets] are only for organization and not necessary
[HTTP]
WEB_PORT = 42010
HOST = "::" # You most likely want either :: for IPv6 or 0.0.0.0 for IPv4 here
[Third Party Services]