Fixed hardcoded url

This commit is contained in:
FrederikBaerentsen 2024-06-29 17:38:52 +02:00
parent f4c48a798a
commit e11ebaabd2
2 changed files with 2 additions and 1 deletions

View File

@ -1 +1,2 @@
REBRICKABLE_API_KEY=xxxx
DOMAIN_NAME=https://lego.example.com

2
app.py
View File

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