This commit is contained in:
Andreas Knuth 2025-10-02 18:46:18 -05:00
parent 08657e7282
commit 5533fbff14
1 changed files with 10 additions and 4 deletions

View File

@ -242,16 +242,22 @@ email-srvr.com {
} }
} }
annavillesda.org { annavillesda.org {
reverse_proxy /api/* host.docker.internal:3070 # API requests to backend
handle /api/* {
reverse_proxy host.docker.internal:3070
}
# Frontend static files
handle { handle {
root * /home/aknuth/git/annaville-sda-site/dist # Neuer Prod-Dist-Ordner root * /home/aknuth/git/annaville-sda-site/dist
try_files {path} {path}/ /index.html try_files {path} {path}/ /index.html
file_server file_server
} }
log { log {
output file /var/log/caddy/access.prod.log # Separate Logs output file /var/log/caddy/access.prod.log
} }
encode gzip encode gzip
} }
www.annavillesda.org { www.annavillesda.org {