bayarea Überarbeitung
This commit is contained in:
parent
c939f7c629
commit
8bd0cce4e3
|
|
@ -11,6 +11,18 @@ www.bizmatch.net {
|
|||
|
||||
}
|
||||
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 {
|
||||
reverse_proxy host.docker.internal:3001
|
||||
}
|
||||
|
|
@ -19,6 +31,20 @@ bayarea-cc.com {
|
|||
try_files {path} /index.html
|
||||
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 {
|
||||
output stderr
|
||||
format console
|
||||
|
|
@ -26,19 +52,7 @@ bayarea-cc.com {
|
|||
encode gzip
|
||||
}
|
||||
www.bayarea-cc.com {
|
||||
handle /api {
|
||||
reverse_proxy host.docker.internal:3001
|
||||
}
|
||||
handle {
|
||||
root * /app
|
||||
try_files {path} /index.html
|
||||
file_server
|
||||
}
|
||||
log {
|
||||
output stderr
|
||||
format console
|
||||
}
|
||||
encode gzip
|
||||
redir https://bayarea-cc.com{uri} permanent
|
||||
}
|
||||
auth.bizmatch.net {
|
||||
reverse_proxy keycloak:8080 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue