Skip to main content

Caddy Examples

Cloudflare

Jellyfin

sub.domain.com {
reverse_proxy 127.0.0.1:8096
tls {
dns cloudflare cloudflare-api
}
}

Save as Caddyfile

NextCloud

files.domain.com {
header Strict-Transport-Security "max-age=15552000; includeSubDomains; preload"
redir /.well-known/carddav /remote.php/dav 301
redir /.well-known/caldav /remote.php/dav 301
reverse_proxy 127.0.0.1:9111
header_up X-Real-IP 127.0.0.1
header_up X-Forward-For 127.0.0.1
tls {
dns cloudflare cloudflare-api
}
}

Save as Caddyfile

JFA-Go

jellyfin.domain.com {
reverse_proxy /Users/ForgotPassword 192.168.0.111:8096 {
header_up X-Forwarded-For 192.168.0.111
}
reverse_proxy /Users/ForgotPassword/Pin 192.168.0.111:8096 {
header_up X-Forwarded-For 192.168.0.111
}
reverse_proxy 192.168.0.111:8096
tls {
dns cloudflare test-api-key
}
}
jfa-go.domain.com {
reverse_proxy 192.168.0.111:8056
tls {
dns cloudflare test-api-key
}
}

Save as Caddyfile

"Buy Me A Coffee"