From 96c8afe5554ad7f839d65036206a262a79cc41b0 Mon Sep 17 00:00:00 2001 From: Henning Bocklage Date: Sun, 14 Jun 2020 23:06:32 +0200 Subject: [PATCH] Added fix for #2 --- server.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server.py b/server.py index 25c3605..a45aeaf 100644 --- a/server.py +++ b/server.py @@ -6,6 +6,7 @@ from os import path from flask import Flask, render_template, request, session from flask_socketio import SocketIO, emit +from werkzeug.middleware.proxy_fix import ProxyFix import app from deemix.api.deezer import Deezer @@ -47,6 +48,7 @@ gui_dir = resource_path(path.join('webui', 'public')) server = CustomFlask(__name__, static_folder=gui_dir, template_folder=gui_dir) server.config['SEND_FILE_MAX_AGE_DEFAULT'] = 1 # disable caching socketio = SocketIO(server, async_mode='threading') +server.wsgi_app = ProxyFix(server.wsgi_app, x_for=1, x_proto=1) class SocketInterface(MessageInterface): def send(self, message, value=None):