Can you make a toggle in settings to enable/disable the proxy fix ?
I have now (since my NGINX config wouldn't work well) put DZGA-flask behind my HAProxy on OPNSense.
This one works fine when i disable the code in smarthome.py for the proxy-fix.
I have to admit, I use a subdomain now too, so no rewrite is necessary for a sub-path.
Probably that will be the key to solve this issue too -> need for a (sub)domain without path.
Tested with an example flask-app, had the same issues until I started using subdomains instead of paths ...
Can you make a toggle in settings to enable/disable the proxy fix ?
I have now (since my NGINX config wouldn't work well) put DZGA-flask behind my HAProxy on OPNSense. This one works fine when i disable the code in smarthome.py for the proxy-fix.
I have to admit, I use a subdomain now too, so no rewrite is necessary for a sub-path. Probably that will be the key to solve this issue too -> need for a (sub)domain without path.
Tested with an example flask-app, had the same issues until I started using subdomains instead of paths ...