1
Web Proxy Filtering and Caching / Homeassistant behind nginx proxy not working
« on: February 25, 2024, 04:05:34 pm »
Hi, I try to run Homeassistant (running on port 8123) behind the nginx plugin.
in homeassistant configuration.yaml in section http: I have the entries use_x_forwarded_for: true and trusted_proxies: <lan address of opnsense>
in nginx logs http access, I get error status codes 304 400 499
according to
https://community.home-assistant.io/t/reverse-proxy-using-nginx/196954
there are headers needed like:
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
but I can not get it to run.
Is there a way to set the headers via the opnsense web gui?
in homeassistant configuration.yaml in section http: I have the entries use_x_forwarded_for: true and trusted_proxies: <lan address of opnsense>
in nginx logs http access, I get error status codes 304 400 499
according to
https://community.home-assistant.io/t/reverse-proxy-using-nginx/196954
there are headers needed like:
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
but I can not get it to run.
Is there a way to set the headers via the opnsense web gui?