From f60ae315951288d9305d1006235e44b12ac4e603 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 3 Jun 2023 14:16:15 +0200 Subject: [PATCH] more config options added --- config.ini | 6 ++++-- game.py | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/config.ini b/config.ini index 7653a5f..b7ee3c7 100644 --- a/config.ini +++ b/config.ini @@ -1,8 +1,10 @@ [main] -separator_char = ; +port = 5000 +bind = 0.0.0.0 +base_url = https://ab.21x9.org timezone = Europe/Berlin mail = abgame@21x9.org -base_url = https://ab.21x9.org +separator_char = ; [i18n] lang = de diff --git a/game.py b/game.py index f71a91e..2fd1d6d 100755 --- a/game.py +++ b/game.py @@ -103,4 +103,7 @@ def getContent(): if __name__ == "__main__": from waitress import serve - serve(app, host='0.0.0.0', port=5000, ident='a/b game') + bind = config.get('main', 'bind') + port = config.get('main', 'port') + + serve(app, host=bind, port=port, ident='a/b game')