bayarea-cc.com
This commit is contained in:
23
Caddyfile
23
Caddyfile
@@ -125,25 +125,22 @@ innungsapp.com {
|
||||
##### BAYAREA
|
||||
##############
|
||||
bayarea-cc.com {
|
||||
# TLS-Direktive entfernen, falls Cloudflare die Verbindung terminiert
|
||||
# tls {
|
||||
# dns cloudflare {env.CLOUDFLARE_API_TOKEN}
|
||||
# }
|
||||
|
||||
handle /api {
|
||||
reverse_proxy host.docker.internal:3001
|
||||
# 1. API Requests -> NestJS Backend auf Port 3073
|
||||
handle /api/* {
|
||||
reverse_proxy host.docker.internal:3073
|
||||
}
|
||||
|
||||
# 2. Frontend Requests -> Angular Nginx auf Port 3072
|
||||
handle {
|
||||
root * /app
|
||||
try_files {path} /index.html
|
||||
file_server
|
||||
reverse_proxy host.docker.internal:3072
|
||||
}
|
||||
|
||||
log {
|
||||
output stderr
|
||||
format console
|
||||
output file /var/log/caddy/bayarea.access.log
|
||||
}
|
||||
encode gzip
|
||||
encode gzip zstd
|
||||
}
|
||||
|
||||
www.bayarea-cc.com {
|
||||
redir https://bayarea-cc.com{uri} permanent
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user