Can't login with reverse proxy

Hello,

I’m using a Synology NAS with a Docker installation to host HASS. I’ve set up the Synology with a Let’s Encrypt certificate, and I would like to use a reverse proxy to access HASS with SSL. This part is working fine, but when I try to login to HASS with my API password, it tells me that it was unable to connect.

I searched the internet and found out that it is related to Websockets, and that I should add the following line to my configuration;

proxy_set_header Upgrade $http_upgrade;

But I’m only using the GUI for the reverse proxy, so I can’t add this line? Can I fix this without messing around with Synology config files?

Did you try to refresh using Ctrl+F5 (force refresh), I suspect your hass instance cannot be reached. The cached page is loading and “Unable to connect” is sometimes show when your instance is not reachable.

I’ve tried Ctrl+F5 and I am still able to reach HASS - but unfortunately I can’t login

I’m afraid you have to get your hands dirty and dive into the cli. See these threads: Using Let's encrypt certificate of Synology NAS and https://github.com/orobardet/dsm-reverse-proxy-websocket.

1 Like