3e80947a4c
* convert all images to webp * consolidate docker files * serve images wiith caddy * consolidate docker files * new slim-buster image * set image url * add image path * remove print * set image path correctly * cleanup * caddy proxy path * docs Co-authored-by: hay-kot <hay-kot@pm.me>
27 lines
No EOL
361 B
Caddyfile
27 lines
No EOL
361 B
Caddyfile
{
|
|
auto_https off
|
|
admin off
|
|
}
|
|
|
|
:80 {
|
|
@proxied path /api/* /docs /openapi.json
|
|
|
|
root * /app/dist
|
|
encode gzip
|
|
uri strip_suffix /
|
|
|
|
handle_path /api/recipes/image/* {
|
|
root * /app/data/img/
|
|
file_server
|
|
}
|
|
|
|
handle @proxied {
|
|
reverse_proxy http://127.0.0.1:9000
|
|
}
|
|
|
|
handle {
|
|
try_files {path}.html {path} /
|
|
file_server
|
|
}
|
|
|
|
} |