mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-11-19 10:22:21 -05:00
Refactor/backend routers (#388)
* update router * update caddy file * setup depends in docker-fole * make changes for serving on subpath * set dev config * fix router signups * consolidate links * backup-functionality to dashboard * new user card * consolidate theme into profile * fix theme tests * fix pg tests * fix pg tests * remove unused import * mobile margin Co-authored-by: hay-kot <hay-kot@pm.me>
This commit is contained in:
10
Caddyfile
10
Caddyfile
@@ -6,11 +6,11 @@
|
||||
:80 {
|
||||
@proxied path /api/* /docs /openapi.json
|
||||
|
||||
root * /app/dist
|
||||
encode gzip
|
||||
encode gzip zstd
|
||||
uri strip_suffix /
|
||||
|
||||
handle_path /api/recipes/media/* {
|
||||
# Handles Recipe Images / Assets
|
||||
handle_path /api/media/recipes/* {
|
||||
root * /app/data/recipes/
|
||||
file_server
|
||||
}
|
||||
@@ -20,8 +20,8 @@
|
||||
}
|
||||
|
||||
handle {
|
||||
try_files {path}.html {path} /
|
||||
root * /app/dist
|
||||
try_files {path}.html {path} /index.html
|
||||
file_server
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user