This commit is contained in:
Andreas Knuth 2025-09-11 15:06:31 -05:00
parent 7bd4c73306
commit 22af3a5273
1 changed files with 19 additions and 23 deletions

View File

@ -103,32 +103,28 @@ gregknoppcpa.bayarea-cc.com {
}
iitwelders.bayarea-cc.com {
route {
encode zstd gzip
# Komprimierung aktivieren
encode zstd gzip
replace {
match {
header Content-Type *text/* *javascript* *json* *xml*
}
stream
re (?i)https://iitwelders\.com https://iitwelders.bayarea-cc.com
re (?i)//iitwelders\.com //iitwelders.bayarea-cc.com
}
reverse_proxy https://iitwelders.com {
header_up Host iitwelders.com
header_up Accept-Encoding identity
transport http {
tls_server_name iitwelders.com
}
@redirects {
status 3xx
}
header_down @redirects Location https://iitwelders.bayarea-cc.com{uri}
}
# Ersetzung auf alle Text-Inhalte anwenden (erweiterte Content-Types)
@text header Content-Type *text/* *javascript* *json* *xml* *application/javascript* *application/xml*
replace @text {
re (https?://)iitwelders\.com https://iitwelders.bayarea-cc.com
re (//)iitwelders\.com //iitwelders.bayarea-cc.com
}
# Proxy zum Upstream
reverse_proxy https://iitwelders.com {
header_up Host iitwelders.com
header_up Accept-Encoding identity
transport http {
tls_server_name iitwelders.com
}
# Location-Header von Redirects ersetzen
header_down Location https://iitwelders.bayarea-cc.com{uri}
}
# Health Check
@health path /_health
respond @health "ok" 200
}