This commit is contained in:
Andreas Knuth 2025-02-25 20:17:35 +01:00
parent 8bd0cce4e3
commit 1a83422d6f
1 changed files with 9 additions and 30 deletions

View File

@ -11,18 +11,11 @@ www.bizmatch.net {
} }
bayarea-cc.com { bayarea-cc.com {
# Einrichtung spezifisch für Cloudflare Proxy # TLS-Direktive entfernen, falls Cloudflare die Verbindung terminiert
tls { # tls {
dns cloudflare {env.CLOUDFLARE_API_TOKEN} # 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
} }
@ -31,20 +24,6 @@ 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