Fixed hardcoded url
This commit is contained in:
parent
f4c48a798a
commit
e11ebaabd2
@ -1 +1,2 @@
|
||||
REBRICKABLE_API_KEY=xxxx
|
||||
DOMAIN_NAME=https://lego.example.com
|
||||
|
2
app.py
2
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')
|
||||
|
Loading…
Reference in New Issue
Block a user