2020-12-09 23:09:29 +00:00
|
|
|
http:// {
|
2020-12-09 21:56:43 +00:00
|
|
|
root * /var/lib/caddy/
|
|
|
|
|
|
|
|
@notmedia {
|
|
|
|
not path /media/*
|
|
|
|
}
|
|
|
|
|
|
|
|
@media {
|
|
|
|
path /media/*
|
|
|
|
}
|
|
|
|
|
|
|
|
header @media {
|
|
|
|
Cache-Control "public, max-age=604800, immutable"
|
|
|
|
Access-Control-Allow-Origin *
|
|
|
|
}
|
|
|
|
|
2020-12-09 23:11:06 +00:00
|
|
|
encode @notmedia zstd gzip
|
2020-12-09 21:56:43 +00:00
|
|
|
file_server
|
2020-12-09 23:03:42 +00:00
|
|
|
|
2020-12-09 23:09:29 +00:00
|
|
|
try_files {path} {path}.html {path}/index.html
|
|
|
|
|
2020-12-09 23:03:42 +00:00
|
|
|
handle {
|
|
|
|
respond 404
|
|
|
|
}
|
2020-12-09 21:56:43 +00:00
|
|
|
}
|