mealie/Caddyfile
Hayden 35caef1c39
Revert "Docker/run as nonroot (#692)" (#724)
This reverts commit 19aa572bd8a169371103f3b11f28169bfd09cee9.
2021-10-06 09:42:37 -08:00

35 lines
574 B
Caddyfile

{
auto_https off
admin off
}
:80 {
@proxied path /api/* /docs /openapi.json
@static {
file
path *.ico *.css *.js *.gif *.jpg *.jpeg *.png *.svg *.woff *.woff2 *.webp
}
encode gzip zstd
# Handles Recipe Images / Assets
handle_path /api/media/recipes/* {
header @static Cache-Control max-age=31536000
root * /app/data/recipes/
file_server
}
handle @proxied {
uri strip_suffix /
reverse_proxy http://127.0.0.1:9000
}
handle {
header @static Cache-Control max-age=31536000
root * /app/dist
try_files {path}.html {path} /
file_server
}
}