mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-10-27 08:14:30 -04:00
* add default assets for user profile * add recipe avatar * change user_id to UUID * add profile image upload * setup image cache keys * cleanup tests and add image tests * purge user data on delete * new user repository tests * add user_id validator for int -> UUID conversion * delete depreciated route * force set content type * refactor tests to use temp directory * validate parent exists before createing * set user_id to correct type * update instruction id * reset primary key on migration
35 lines
596 B
Caddyfile
35 lines
596 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
|
|
}
|
|
|
|
# Handles User Images
|
|
handle_path /api/media/users/* {
|
|
header @static Cache-Control max-age=31536000
|
|
root * /app/data/users/
|
|
file_server
|
|
}
|
|
|
|
handle @proxied {
|
|
uri strip_suffix /
|
|
reverse_proxy http://127.0.0.1:9000
|
|
}
|
|
|
|
} |