17 lines
430 B
Caddyfile
17 lines
430 B
Caddyfile
# /etc/caddy/Caddyfile
|
|
# Statische Auslieferung mit automatischem HTTPS (Let's Encrypt).
|
|
|
|
www.sattelfest.org {
|
|
root * /srv/sattelfest/dist
|
|
file_server
|
|
encode gzip zstd
|
|
|
|
# Fotos dürfen lange im Browser-Cache bleiben.
|
|
@photos path /photos/*
|
|
header @photos Cache-Control "public, max-age=2592000"
|
|
}
|
|
|
|
# Ohne "www" auf "www" weiterleiten.
|
|
sattelfest.org {
|
|
redir https://www.sattelfest.org{uri} permanent
|
|
}
|