bayarea Überarbeitung

This commit is contained in:
Andreas Knuth 2025-02-25 20:12:31 +01:00
parent c939f7c629
commit 8bd0cce4e3
1 changed files with 32 additions and 18 deletions

View File

@ -11,6 +11,18 @@ www.bizmatch.net {
} }
bayarea-cc.com { bayarea-cc.com {
# Einrichtung spezifisch für Cloudflare Proxy
tls {
dns cloudflare {env.CLOUDFLARE_API_TOKEN}
}
# Spezielle Behandlung für Anfragen, die über Cloudflare kommen
@cloudflare {
header Cdn-Loop cloudflare*
}
# Wenn über Cloudflare, keine Weiterleitung zu HTTPS erzwingen
handle @cloudflare {
handle /api { handle /api {
reverse_proxy host.docker.internal:3001 reverse_proxy host.docker.internal:3001
} }
@ -19,6 +31,20 @@ bayarea-cc.com {
try_files {path} /index.html try_files {path} /index.html
file_server file_server
} }
}
# Für direkte Anfragen
handle {
handle /api {
reverse_proxy host.docker.internal:3001
}
handle {
root * /app
try_files {path} /index.html
file_server
}
}
log { log {
output stderr output stderr
format console format console
@ -26,19 +52,7 @@ bayarea-cc.com {
encode gzip encode gzip
} }
www.bayarea-cc.com { www.bayarea-cc.com {
handle /api { redir https://bayarea-cc.com{uri} permanent
reverse_proxy host.docker.internal:3001
}
handle {
root * /app
try_files {path} /index.html
file_server
}
log {
output stderr
format console
}
encode gzip
} }
auth.bizmatch.net { auth.bizmatch.net {
reverse_proxy keycloak:8080 { reverse_proxy keycloak:8080 {