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')