Automatic URL Switching
I’ve been using automatic URL switching for awhile - connecting to the server local IP while at home and connecting to a DDNS while remote. The mechanism is a bit hit or miss for when it switches between the two. Wondering if it makes sense to just use the DDNS 100% of the time and avoid the quirks associated with switching.
Here's my current stack:
Here's my current stack:
- Host OS: Ubuntu 24.04 LTS
- DDNS with HTTPS/SSL cert managed by my router
- Router: ASUS XT9 with port forwarding for 443 to the server. NAT Loopback is enabled.
- Reverse Proxy: Caddy, running in Docker, handling SSL/TLS encryption for the domain.
- Firewall: UFW, configured to only allow necessary ports for Caddy (443) and local SSH access.
- Brute-Force Protection: fail2ban is installed and running on the host.
- Containerization: docker-compose with Immich's official images.