Allow health checks
This commit is contained in:
parent
bd01aea8b4
commit
33afd0d519
14
Caddyfile
14
Caddyfile
@ -9,6 +9,14 @@ http:// {
|
|||||||
path /media/*
|
path /media/*
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@health {
|
||||||
|
path /health
|
||||||
|
}
|
||||||
|
|
||||||
|
@nothealth {
|
||||||
|
not path /health
|
||||||
|
}
|
||||||
|
|
||||||
header @media {
|
header @media {
|
||||||
Cache-Control "public, max-age=604800, immutable"
|
Cache-Control "public, max-age=604800, immutable"
|
||||||
Access-Control-Allow-Origin *
|
Access-Control-Allow-Origin *
|
||||||
@ -17,9 +25,13 @@ http:// {
|
|||||||
encode @notmedia zstd gzip
|
encode @notmedia zstd gzip
|
||||||
file_server browse
|
file_server browse
|
||||||
|
|
||||||
basicauth * {
|
basicauth @nothealth {
|
||||||
notroot JDJhJDE0JDlKUDlwYkdXclBETGhhN2szdDQyNnUyb0V5elV3QWNEM2JEU2E2Q1lsZmlFTS9pb2YyL1BD
|
notroot JDJhJDE0JDlKUDlwYkdXclBETGhhN2szdDQyNnUyb0V5elV3QWNEM2JEU2E2Q1lsZmlFTS9pb2YyL1BD
|
||||||
}
|
}
|
||||||
|
|
||||||
|
handle @health {
|
||||||
|
respond 200
|
||||||
|
}
|
||||||
|
|
||||||
try_files {path} {path}.html {path}/index.html
|
try_files {path} {path}.html {path}/index.html
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user