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:
parent
289a1dc076
commit
4323d0dc67
@ -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')
|
||||
|
@ -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]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user