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,40 +11,19 @@ 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 handle /api {
@cloudflare { reverse_proxy host.docker.internal:3001
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 {
handle /api { root * /app
reverse_proxy host.docker.internal:3001 try_files {path} /index.html
} file_server
handle {
root * /app
try_files {path} /index.html
file_server
}
} }
log { log {
output stderr output stderr
format console format console