spksrc
spksrc copied to clipboard
Home Assistent + Reverse Proxy = Bad Time
Setup
Package Name: Home Assistant Core Package Version: 2021.8.8-14
NAS Model: RS2421+ NAS Architecture: x86 DSM version: 6.2.4-25556 Update 2
Expected behavior
Use of the Synology Reverse Proxy (Control Panel > Application Portal > Reverse Proxy) should allow the use of a specific domain (eg, ha.myhouse.net
) for Home Assistant.
Actual behavior
Have to dig into YAML to enable it, and then sign in breaks.
Steps to reproduce
1. Install Home Assistant Core 2. Configure Reverse Proxy to point to Home Assistant 3. Observe the 400 error when trying to access Home Assistant via reverse proxy 4. Observe HA log: "A request from a reverse proxy was received from 127.0.0.1, but your HTTP integration is not set-up for reverse proxies" 5. Stop Home Assistant 6. Follow https://www.home-assistant.io/integrations/http to configure reverse proxies 7. Start Home Assistant 8. Access Home Assistant via reverse proxy, observe you now get a log in screen 9. Try to log in, observe the mysterious error. 10. With the developer console open, try to log in again. Observe the new 400 error.
I've reached my yak shave limit for trying to diagnose why the second 400 happens or how to fix it.
Has nothing to do with the SynoCommunity package, you have to configure DSM correctly. See: https://community.home-assistant.io/t/reverse-proxy-through-synology/274660
@AstraLuma can you confirm that this process at https://community.home-assistant.io/t/reverse-proxy-through-synology/274660 works for you ?
I can confirm, reverse proxy is running like described there!