This commit is contained in:
Andreas Knuth 2025-09-11 14:04:22 -05:00
parent 06e070f9b7
commit ffee5c0568
1 changed files with 15 additions and 7 deletions

View File

@ -105,30 +105,38 @@ gregknoppcpa.bayarea-cc.com {
iitwelders.bayarea-cc.com { iitwelders.bayarea-cc.com {
encode zstd gzip encode zstd gzip
# Nur HTML umschreiben
@html header Content-Type text/html* @html header Content-Type text/html*
replace_response @html { replace @html {
s "https://iitwelders.com" "https://iitwelders.bayarea-cc.com" https://iitwelders.com https://iitwelders.bayarea-cc.com
s "//iitwelders.com" "//iitwelders.bayarea-cc.com" //iitwelders.com //iitwelders.bayarea-cc.com
} }
# Optional: auch Text-Assets (CSS/JS/JSON) umschreiben
@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 @assets {
s "https://iitwelders.com" "https://iitwelders.bayarea-cc.com" https://iitwelders.com https://iitwelders.bayarea-cc.com
s "//iitwelders.com" "//iitwelders.bayarea-cc.com" //iitwelders.com //iitwelders.bayarea-cc.com
} }
reverse_proxy https://iitwelders.com { reverse_proxy https://iitwelders.com {
header_up Host iitwelders.com # Upstream nicht komprimieren lassen (sonst kann replace nicht arbeiten)
header_up Accept-Encoding identity header_up Accept-Encoding identity
# Origin-Host/SNI korrekt setzen
header_up Host iitwelders.com
transport http { transport http {
tls_server_name iitwelders.com tls_server_name iitwelders.com
} }
# Etwaige 30x-Location-Header auf deine Domain mappen
header_down Location https://iitwelders.bayarea-cc.com{uri} header_down Location https://iitwelders.bayarea-cc.com{uri}
} }
@health path /_health @health path /_health
respond @health "ok" 200 respond @health "ok" 200
} }
www.fancytextstuff.com { www.fancytextstuff.com {
redir https://fancytextstuff.com{uri} permanent redir https://fancytextstuff.com{uri} permanent
} }