fix: Update reverse proxy causing manifest breaking
All checks were successful
Build Docker / BuildImage (push) Successful in 36s

This commit is contained in:
Nathan Woodburn 2024-06-19 21:23:52 +10:00
parent cb13ca0a3b
commit 005a306fc6
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -144,8 +144,10 @@ def manifest():
# Read as json # Read as json
with open('templates/manifest.json') as file: with open('templates/manifest.json') as file:
manifest = json.load(file) manifest = json.load(file)
scheme = request.scheme if host != 'localhost:5000' and host != '127.0.0.1:5000':
manifest['start_url'] = f'{scheme}://{host}/' manifest['start_url'] = f'https://{host}/'
else:
manifest['start_url'] = 'http://127.0.0.1:5000/'
return jsonify(manifest) return jsonify(manifest)