FBA-DeploymentScripts/Caddyfile
2020-12-10 00:13:40 +01:00

21 lines
325 B
Caddyfile

http:// {
root * /var/www/
@notmedia {
not path /media/*
}
@media {
path /media/*
}
header @media {
Cache-Control "public, max-age=604800, immutable"
Access-Control-Allow-Origin *
}
encode @notmedia zstd gzip
file_server browse
try_files {path} {path}.html {path}/index.html
}