FBA-DeploymentScripts/Caddyfile

37 lines
563 B
Caddyfile
Raw Normal View History

2020-12-09 23:09:29 +00:00
http:// {
2020-12-09 23:13:40 +00:00
root * /var/www/
2020-12-09 21:56:43 +00:00
@notmedia {
not path /media/*
}
@media {
path /media/*
}
2020-12-09 23:44:43 +00:00
@health {
path /health
}
@nothealth {
not path /health
}
2020-12-09 21:56:43 +00:00
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 23:12:05 +00:00
file_server browse
2020-12-09 23:03:42 +00:00
2020-12-09 23:44:43 +00:00
basicauth @nothealth {
2020-12-09 23:30:00 +00:00
notroot JDJhJDE0JDlKUDlwYkdXclBETGhhN2szdDQyNnUyb0V5elV3QWNEM2JEU2E2Q1lsZmlFTS9pb2YyL1BD
}
2020-12-09 23:44:43 +00:00
handle @health {
respond 200
}
2020-12-09 23:09:29 +00:00
try_files {path} {path}.html {path}/index.html
2020-12-09 21:56:43 +00:00
}