Remote Access on synology virtual machine

I have tried almost all the solutions given on these forums and other forums. I seem to be caught up in a simple problem but am unsure where it is.

  • Running HA on Synology’s virtual machine manager
  • I have set up a reverse proxy xxx.yyy.synology.me. HTTPS, port 443, and pointed it to localhost and port 8123.
  • I have port 443 forwarded on my router as well as in synology router settings.
  • my configuration yaml file in HA is:
http:
  ip_ban_enabled: true
  login_attempts_threshold: 10
  use_x_forwarded_for: true
  trusted_proxies:
    - 10.0.0.29
    - 172.30.232.0/24
    - 172.30.32.0/24

When I try to access HA through the reverse proxy address I end up with the page

EDIT: looking at my console on chrome it tell me “Failed to load resource: the server responded with a stat of 502 ()”

image

image

Which I believe means its attempting to connect but just isnt quite over the line yet. Any help would be greatly appreciated!

I have set up a reverse proxy xxx.yyy.synology.me. HTTPS, port 443, and pointed it to localhost and port 8123.

What you mean by localhost? It should be HA instance IP address, not the NAS IP.
HA port 8123 is not https, so make sure it is https on external connection side, but http on internal host side.
So it should look like:

Also make sure to add websockets configuration to your proxy settings:
image

What is IP of your Synology NAS? Is it listed in trusted_proxies (is it 10.0.0.29)? What are 172.30.xx.yy IPs for? These are docker internal network and are not exposed to your LAN, so putting them there does not make sense for me (unless you have some specific configuration/need, that I do not understand).

Thank you Mirekmal!!

So I had to change localhost to the actual IP of home assistant
I changed the internal from HTTPS to HTTP
and in the yaml config I had to change 10.0.0.29 to my synology IPs

with those changes everything works remotely as well now!

I am new to Synology & HA, I believe the above solution will allow me to remote connect to HA which runs on a VM on my DS918+. Could you list out what other things I need to configure to get the above working? What does xxx.yyy.synology.me mean? Thanks