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 { iitwelders.bayarea-cc.com {
route { # Komprimierung aktivieren
encode zstd gzip encode zstd gzip
replace { # Ersetzung auf alle Text-Inhalte anwenden (erweiterte Content-Types)
match { @text header Content-Type *text/* *javascript* *json* *xml* *application/javascript* *application/xml*
header Content-Type *text/* *javascript* *json* *xml* replace @text {
} re (https?://)iitwelders\.com https://iitwelders.bayarea-cc.com
stream re (//)iitwelders\.com //iitwelders.bayarea-cc.com
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}
}
} }
# 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 @health path /_health
respond @health "ok" 200 respond @health "ok" 200
} }