Exposing locally and remotely
I'm sure this has been asked before. But I was planning to expose my immich instance through either an nginx reverse proxy on a VPS or a cloudflared tunnel.
So for both these services I'd be using https and setting the HTTPS termination on the cloudflared tunnel/VPS. Then I'd rely on wiregard/tailscale/whatever cloudflare uses to route it to my HTTP immich server on my local network. I don't really mind anyone sniffing my local network (but I wouldn't be against setting https on it either). The problem is that the APP only allows for 1 server URL, so it would be either immich.mydomain.com or 192.168.1.100:2283.
This means that the APP wouldn't be useful once I'm on my local network, since the local address would be
I know for example, Home Assistant app allows to set a local SSID and IP so the app will use that instead of the remote address when it detects that wifi SSID.
Anyways, I'd just want to discuss how to avoid this issue with the app. My router does not allow split-horizon, and I can't even change the DNS settings on my router to point to my machines. I can only disable a thing called "Safe DNS" that I don't even know what it does. The router I have is the
So for both these services I'd be using https and setting the HTTPS termination on the cloudflared tunnel/VPS. Then I'd rely on wiregard/tailscale/whatever cloudflare uses to route it to my HTTP immich server on my local network. I don't really mind anyone sniffing my local network (but I wouldn't be against setting https on it either). The problem is that the APP only allows for 1 server URL, so it would be either immich.mydomain.com or 192.168.1.100:2283.
This means that the APP wouldn't be useful once I'm on my local network, since the local address would be
http://192.168.1.100:2283 instead of httpS://immich.mydomain.com, unless I set the address to immich.mydomain.com, but then that would require Internet connection on my local network, and all the traffic would get routed through the VPS/Cloudflare instead of going directly through my local network.I know for example, Home Assistant app allows to set a local SSID and IP so the app will use that instead of the remote address when it detects that wifi SSID.
Anyways, I'd just want to discuss how to avoid this issue with the app. My router does not allow split-horizon, and I can't even change the DNS settings on my router to point to my machines. I can only disable a thing called "Safe DNS" that I don't even know what it does. The router I have is the
Sercomm FG824CD.