2020-12-10 00:09:29 +01:00
|
|
|
http:// {
|
2020-12-10 00:13:40 +01:00
|
|
|
root * /var/www/
|
2020-12-09 22:56:43 +01:00
|
|
|
|
|
|
|
@notmedia {
|
|
|
|
not path /media/*
|
|
|
|
}
|
|
|
|
|
|
|
|
@media {
|
|
|
|
path /media/*
|
|
|
|
}
|
|
|
|
|
2020-12-10 00:44:43 +01:00
|
|
|
@health {
|
|
|
|
path /health
|
|
|
|
}
|
|
|
|
|
|
|
|
@nothealth {
|
|
|
|
not path /health
|
|
|
|
}
|
|
|
|
|
2020-12-09 22:56:43 +01:00
|
|
|
header @media {
|
|
|
|
Cache-Control "public, max-age=604800, immutable"
|
|
|
|
Access-Control-Allow-Origin *
|
|
|
|
}
|
|
|
|
|
2020-12-10 00:11:06 +01:00
|
|
|
encode @notmedia zstd gzip
|
2020-12-10 00:12:05 +01:00
|
|
|
file_server browse
|
2020-12-10 00:03:42 +01:00
|
|
|
|
2020-12-10 00:44:43 +01:00
|
|
|
basicauth @nothealth {
|
2020-12-10 00:30:00 +01:00
|
|
|
notroot JDJhJDE0JDlKUDlwYkdXclBETGhhN2szdDQyNnUyb0V5elV3QWNEM2JEU2E2Q1lsZmlFTS9pb2YyL1BD
|
|
|
|
}
|
|
|
|
|
2020-12-10 00:44:43 +01:00
|
|
|
handle @health {
|
|
|
|
respond 200
|
|
|
|
}
|
|
|
|
|
2020-12-10 00:09:29 +01:00
|
|
|
try_files {path} {path}.html {path}/index.html
|
2020-12-09 22:56:43 +01:00
|
|
|
}
|