dfgfdg
This commit is contained in:
parent
22af3a5273
commit
bc038b0a70
|
|
@ -103,28 +103,28 @@ gregknoppcpa.bayarea-cc.com {
|
||||||
}
|
}
|
||||||
|
|
||||||
iitwelders.bayarea-cc.com {
|
iitwelders.bayarea-cc.com {
|
||||||
# Komprimierung aktivieren
|
route {
|
||||||
encode zstd gzip
|
encode zstd gzip
|
||||||
|
|
||||||
# Ersetzung auf alle Text-Inhalte anwenden (erweiterte Content-Types)
|
# Korrigierter Matcher für Textinhalte (Wählen Sie eine der obigen Optionen)
|
||||||
@text header Content-Type *text/* *javascript* *json* *xml* *application/javascript* *application/xml*
|
# Beispiel mit expression-Matcher:
|
||||||
|
@text `header.Content-Type =~ "text/.*" || header.Content-Type =~ "application/javascript" || header.Content-Type =~ "application/json" || header.Content-Type =~ "application/xml"`
|
||||||
|
|
||||||
replace @text {
|
replace @text {
|
||||||
re (https?://)iitwelders\.com https://iitwelders.bayarea-cc.com
|
re (https?://)iitwelders\.com https://iitwelders.bayarea-cc.com
|
||||||
re (//)iitwelders\.com //iitwelders.bayarea-cc.com
|
re (//)iitwelders\.com //iitwelders.bayarea-cc.com
|
||||||
}
|
}
|
||||||
|
|
||||||
# Proxy zum Upstream
|
|
||||||
reverse_proxy https://iitwelders.com {
|
reverse_proxy https://iitwelders.com {
|
||||||
header_up Host iitwelders.com
|
header_up Host iitwelders.com
|
||||||
header_up Accept-Encoding identity
|
header_up Accept-Encoding identity
|
||||||
transport http {
|
transport http {
|
||||||
tls_server_name iitwelders.com
|
tls_server_name iitwelders.com
|
||||||
}
|
}
|
||||||
# Location-Header von Redirects ersetzen
|
|
||||||
header_down Location https://iitwelders.bayarea-cc.com{uri}
|
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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue