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,14 +11,40 @@ www.bizmatch.net {
} }
bayarea-cc.com { bayarea-cc.com {
handle /api { # Einrichtung spezifisch für Cloudflare Proxy
reverse_proxy host.docker.internal:3001 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 {
reverse_proxy host.docker.internal:3001
}
handle {
root * /app
try_files {path} /index.html
file_server
}
}
# Für direkte Anfragen
handle { handle {
root * /app handle /api {
try_files {path} /index.html reverse_proxy host.docker.internal:3001
file_server }
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 {