I had the same problem and have you tried this?: https://community.home-assistant.io/t/running-reverse-proxy-on-synology-unable-to-connect-from-hass-on-pi/645307/2