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