Files
homelab/gateway/caddy/Caddyfile
T

72 lines
1.1 KiB
Caddyfile

{
servers {
trusted_proxies static private_ranges
trusted_proxies_strict
}
}
(secure) {
@static-files {
file
path *.ico *.css *.js *.gif *.webp *.avif *.jpg *.jpeg *.png *.svg *.woff *.woff2
}
header @static-files Cache-Control "max-age=5184000"
header / Cache-Control "no-cache, no-store, must-revalidate"
forward_auth authelia:9091 {
uri /api/authz/forward-auth
copy_headers Remote-User Remote-Groups Remote-Name Remote-Email
}
}
auth.64815139.xyz {
route {
reverse_proxy authelia:9091
}
}
www.64815139.xyz {
route {
import secure *
root * /var/www/dashboard
encode gzip
templates
file_server
}
log {
output file /var/log/caddy/dashboard.log
}
}
64815139.xyz {
redir https://www.{host}{uri}
}
gitea.64815139.xyz {
route {
rewrite /user/login /user/oauth2/Authelia
reverse_proxy 192.168.0.216:3000
}
}
immich.64815139.xyz {
route {
reverse_proxy 192.168.0.216:2283
}
}
uptime.64815139.xyz {
route {
reverse_proxy 192.168.0.216:4393
}
}
oaT3cqYuCAegcoM4Xc4Pun1BUMOschxR.64815139.xyz {
route {
reverse_proxy 192.168.0.216:4449
}
}