infra/home/ansible/templates/Caddyfile.j2
2025-09-08 10:13:45 -05:00

64 lines
No EOL
1.8 KiB
Django/Jinja

# Caddy reverse proxy configuration
# Managed by Ansible - do not edit manually
# Forgejo Git server
git.w5isp.com {
# Caddy will automatically obtain Let's Encrypt certificates
reverse_proxy http://100.109.233.14 {
# Tell backend that SSL is handled by proxy
header_up Host {host}
header_up X-Real-IP {remote}
header_up X-Forwarded-Proto https
header_up X-Forwarded-Port 443
}
}
# APRS application
aprs.me {
# Caddy will automatically obtain Let's Encrypt certificates
reverse_proxy http://100.93.178.105 {
# Tell backend that SSL is handled by proxy
header_up Host {host}
header_up X-Real-IP {remote}
header_up X-Forwarded-Proto https
header_up X-Forwarded-Port 443
# Enable WebSocket support
header_up Upgrade {http.request.header.Upgrade}
header_up Connection {http.request.header.Connection}
}
}
# Jellyfin media server
jellyfin.w5isp.com {
# Caddy will automatically obtain Let's Encrypt certificates
reverse_proxy http://10.0.16.1:8096 {
# Tell backend that SSL is handled by proxy
header_up Host {host}
header_up X-Real-IP {remote}
header_up X-Forwarded-Proto https
header_up X-Forwarded-Port 443
}
}
# Immich photo management
photos.w5isp.com {
# Caddy will automatically obtain Let's Encrypt certificates
reverse_proxy http://10.0.16.1:2283 {
# Tell backend that SSL is handled by proxy
header_up Host {host}
header_up X-Real-IP {remote}
header_up X-Forwarded-Proto https
header_up X-Forwarded-Port 443
# Immich requires these additional headers for proper operation
header_up X-Forwarded-For {remote}
}
}
# Add more entries below as needed