diff --git a/config.yaml b/config.yaml index 8bf89c2..e82e7e1 100644 --- a/config.yaml +++ b/config.yaml @@ -52,6 +52,7 @@ frontend: user_lang: userlang update: updateoption choose_net: false + http_port: 80 # NETWORK - # Some elements related to the network configuration, such as diff --git a/server/frontend/main.py b/server/frontend/main.py index 76d2240..d9a3c5d 100644 --- a/server/frontend/main.py +++ b/server/frontend/main.py @@ -46,7 +46,12 @@ app.register_blueprint(misc_bp, url_prefix='/api/misc') app.register_blueprint(update_bp, url_prefix='/api/update') if __name__ == '__main__': + port = "" + try: + port = int(read_config(("frontend", "http_port"))) + except: + port = 80 if read_config(("frontend", "remote_access")): - app.run(host="0.0.0.0", port=80) + app.run(host="0.0.0.0", port=port) else: - app.run(port=80) + app.run(port=port)