mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-11-01 18:53:59 -04:00
* changed python base image to 3.9.6 * bumped poetry version to 1.1.7 * user creation based on env variable PGID and PUID with default as PUID/PGID= 911 * App exposes APP_PORT=80 as env variable * Removed user mod and handled it in docker image. * moved scheduler.db to /app/temp dir * set app default port to 80 if envvariable null * Changed application port to env variable with default as 80 * Created sch. direcotry as part of image creation * minor logging improvements. * removed docker target * cleanup * fixed port * fixed port * fixed port * removed volume specification * fixing code quality warnings * fixing code quality warnings * fixing code quality warnings * bumped versions to fix vulnerabilities * corrected port * bumped uvicorn version to fix vulnerabilities * minor fix * added sticky permissions * adding port change info to docs * adding port change info to docs * adding port change info to docs * improved formatting * docs updated * added docker port change warning
34 lines
582 B
Caddyfile
34 lines
582 B
Caddyfile
{
|
|
auto_https off
|
|
admin off
|
|
}
|
|
:{$APP_PORT} {
|
|
@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
|
|
}
|
|
}
|