I had a working copy of HA setup and went to setup nginx proxy. Everything seemed to work correctly, I was able to login, add Lovelace cards etc, but when I try to edit an automation, I find the error “Login attempt or request with invalid authentication from 192.168.1.#” and get error 401.
Note: this is seutp w/ Docker/HASS
Here is my configuration.yaml:
http:
server_host: 127.0.0.1
base_url: https://url
use_x_forwarded_for: true
trusted_proxies:
- 127.0.0.1
- 192.168.1.0/24
NGinx:
websockets-proxy.conf:
cat << 'EOL'>/etc/nginx/websocket-proxy.conf
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Authorization "";
proxy_read_timeout 86400;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_redirect off;
EOL
site.conf:
location / {
proxy_pass http://localhost:8123/;
include /etc/nginx/websocket-proxy.conf;
}
}
Can anybody help me get this sorted out?