From 005a306fc63d89232cf092decd9ed838e1d7f803 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Wed, 19 Jun 2024 21:23:52 +1000 Subject: [PATCH] fix: Update reverse proxy causing manifest breaking --- server.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index b4e7a40..5e40cd2 100644 --- a/server.py +++ b/server.py @@ -144,8 +144,10 @@ def manifest(): # Read as json with open('templates/manifest.json') as file: manifest = json.load(file) - scheme = request.scheme - manifest['start_url'] = f'{scheme}://{host}/' + if host != 'localhost:5000' and host != '127.0.0.1:5000': + manifest['start_url'] = f'https://{host}/' + else: + manifest['start_url'] = 'http://127.0.0.1:5000/' return jsonify(manifest)