diff --git a/caddy/Caddyfile b/caddy/Caddyfile index c9fc9c6..01abf20 100644 --- a/caddy/Caddyfile +++ b/caddy/Caddyfile @@ -25,15 +25,18 @@ www.bizmatch.net { root * /home/aknuth/git/bizmatch-project/bizmatch-server # Prod-Ordner file_server } + #handle { + # root * /home/aknuth/git/bizmatch-project-prod/bizmatch/dist/bizmatch/browser # Neuer Prod-Dist-Ordner + # try_files {path} {path}/ /index.html + # file_server + #} handle { - root * /home/aknuth/git/bizmatch-project-prod/bizmatch/dist/bizmatch/browser # Neuer Prod-Dist-Ordner - try_files {path} {path}/ /index.html - file_server + reverse_proxy localhost:4200 } log { output file /var/log/caddy/access.prod.log # Separate Logs } - encode gzip + encode gzip zstd } bizmatch.net { redir https://www.bizmatch.net{uri} permanent