# Example Caddy configurations for Favoritter. # Copy the relevant section to your Caddyfile. # --- Option 1: Subdomain deployment --- # Set FAVORITTER_EXTERNAL_URL=https://faves.example.com # Set FAVORITTER_TRUSTED_PROXIES to Caddy's IP faves.example.com { reverse_proxy localhost:8080 } # --- Option 2: Subpath deployment --- # Set FAVORITTER_BASE_PATH=/faves # Set FAVORITTER_EXTERNAL_URL=https://example.com/faves # Set FAVORITTER_TRUSTED_PROXIES to Caddy's IP # example.com { # handle_path /faves/* { # reverse_proxy localhost:8080 # } # # Redirect /faves to /faves/ # redir /faves /faves/ permanent # } # --- Option 3: Remote proxy (WireGuard/Tailscale) --- # Caddy runs on a different machine than Favoritter. # Set FAVORITTER_TRUSTED_PROXIES=100.64.0.0/10 (Tailscale) # or the specific WireGuard IP of the Caddy machine. # faves.example.com { # reverse_proxy 100.64.1.2:8080 # }