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