From e11ebaabd23b17d6de7b94b238b8615d85e81bb3 Mon Sep 17 00:00:00 2001 From: FrederikBaerentsen Date: Sat, 29 Jun 2024 17:38:52 +0200 Subject: [PATCH] Fixed hardcoded url --- .env.sample | 1 + app.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.env.sample b/.env.sample index 9281d30..b29529a 100644 --- a/.env.sample +++ b/.env.sample @@ -1 +1,2 @@ REBRICKABLE_API_KEY=xxxx +DOMAIN_NAME=https://lego.example.com diff --git a/app.py b/app.py index f945627..cfca150 100644 --- a/app.py +++ b/app.py @@ -19,7 +19,7 @@ from werkzeug.middleware.proxy_fix import ProxyFix app = Flask(__name__) app.wsgi_app = ProxyFix(app.wsgi_app, x_for=1, x_proto=1, x_host=1, x_port=1, x_prefix=1) -socketio = SocketIO(app,cors_allowed_origins="https://lego.baerentsen.space") +socketio = SocketIO(app,cors_allowed_origins=os.getenv("DOMAIN_NAME")) count = 0 @app.route('/favicon.ico')