Fixed https issue with socketio

This commit is contained in:
2024-06-29 17:32:47 +02:00
parent ef04293355
commit f4c48a798a
3 changed files with 8 additions and 3 deletions

5
app.py
View File

@@ -14,9 +14,12 @@ import shutil # save img locally
import eventlet
from downloadRB import download_and_unzip,get_nil_images
from db import initialize_database,get_rows,delete_tables
from werkzeug.middleware.proxy_fix import ProxyFix
app = Flask(__name__)
socketio = SocketIO(app)
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")
count = 0
@app.route('/favicon.ico')