new name
This commit is contained in:
parent
101a128c9f
commit
7282cbdd59
|
|
@ -105,40 +105,27 @@ gregknoppcpa.bayarea-cc.com {
|
||||||
iitwelders.bayarea-cc.com {
|
iitwelders.bayarea-cc.com {
|
||||||
encode zstd gzip
|
encode zstd gzip
|
||||||
|
|
||||||
# Reverse-Proxy auf das geogeblockte Ziel
|
|
||||||
reverse_proxy https://iitwelders.com {
|
|
||||||
# Origin-Host/SNI korrekt setzen, damit kein Redirect mehr zurück kommt
|
|
||||||
header_up Host iitwelders.com
|
|
||||||
header_up X-Forwarded-Host {host}
|
|
||||||
header_up X-Forwarded-Proto {scheme}
|
|
||||||
header_up X-Forwarded-For {remote_host}
|
|
||||||
header_up Accept-Encoding identity
|
|
||||||
|
|
||||||
transport http {
|
|
||||||
tls_server_name iitwelders.com
|
|
||||||
}
|
|
||||||
|
|
||||||
# Falls der Origin doch mal absolute Redirects schickt:
|
|
||||||
# Location-Header auf Proxy-Domain mappen (einfacher Standardfall)
|
|
||||||
header_down Location https://iitwelders.bayarea-cc.com{uri}
|
|
||||||
}
|
|
||||||
|
|
||||||
# --- Body-Rewriting: harte Links im HTML/CSS/JS umbiegen ---
|
|
||||||
# HTML
|
|
||||||
@html header Content-Type text/html*
|
@html header Content-Type text/html*
|
||||||
replace_response @html {
|
replace_response @html {
|
||||||
s "https://iitwelders.com" "https://iitwelders.bayarea-cc.com"
|
s "https://iitwelders.com" "https://iitwelders.bayarea-cc.com"
|
||||||
s "//iitwelders.com" "//iitwelders.bayarea-cc.com"
|
s "//iitwelders.com" "//iitwelders.bayarea-cc.com"
|
||||||
}
|
}
|
||||||
|
|
||||||
# CSS/JS/JSON (falls dort absolute URLs vorkommen)
|
|
||||||
@assets header Content-Type text/css* text/javascript* application/javascript* application/json*
|
@assets header Content-Type text/css* text/javascript* application/javascript* application/json*
|
||||||
replace_response @assets {
|
replace_response @assets {
|
||||||
s "https://iitwelders.com" "https://iitwelders.bayarea-cc.com"
|
s "https://iitwelders.com" "https://iitwelders.bayarea-cc.com"
|
||||||
s "//iitwelders.com" "//iitwelders.bayarea-cc.com"
|
s "//iitwelders.com" "//iitwelders.bayarea-cc.com"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Healthcheck (optional)
|
reverse_proxy https://iitwelders.com {
|
||||||
|
header_up Host iitwelders.com
|
||||||
|
header_up Accept-Encoding identity
|
||||||
|
transport http {
|
||||||
|
tls_server_name iitwelders.com
|
||||||
|
}
|
||||||
|
header_down Location https://iitwelders.bayarea-cc.com{uri}
|
||||||
|
}
|
||||||
|
|
||||||
@health path /_health
|
@health path /_health
|
||||||
respond @health "ok" 200
|
respond @health "ok" 200
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
services:
|
services:
|
||||||
caddy:
|
caddy:
|
||||||
image: custom-caddy:2.9.1
|
image: custom-caddy:2.9.1-rr1
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile.caddy
|
dockerfile: Dockerfile.caddy
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue