Merge branch 'master' of git.bizmatch.net:aknuth/docker
This commit is contained in:
commit
3553cdcf59
|
|
@ -105,39 +105,41 @@ gregknoppcpa.bayarea-cc.com {
|
||||||
}
|
}
|
||||||
encode gzip
|
encode gzip
|
||||||
}
|
}
|
||||||
|
|
||||||
iitwelders.bayarea-cc.com {
|
iitwelders.bayarea-cc.com {
|
||||||
encode zstd gzip
|
route {
|
||||||
|
# 1) Nur Text-Responses bearbeiten (HTML, CSS, JS, JSON, XML ...)
|
||||||
|
@text header Content-Type *text/* *javascript* *json* *xml*
|
||||||
|
|
||||||
@html header Content-Type text/html*
|
# 2) Replace-Handler (muss VOR dem Proxy stehen!)
|
||||||
replace @html {
|
replace @text {
|
||||||
https://iitwelders.com https://iitwelders.bayarea-cc.com
|
# Substring-Rewrites
|
||||||
//iitwelders.com //iitwelders.bayarea-cc.com
|
|
||||||
}
|
|
||||||
|
|
||||||
@assets header Content-Type text/css* text/javascript* application/javascript* application/json*
|
|
||||||
replace @assets {
|
|
||||||
https://iitwelders.com https://iitwelders.bayarea-cc.com
|
https://iitwelders.com https://iitwelders.bayarea-cc.com
|
||||||
//iitwelders.com //iitwelders.bayarea-cc.com
|
//iitwelders.com //iitwelders.bayarea-cc.com
|
||||||
|
|
||||||
|
# Optional robuster (Regex, case-insensitive):
|
||||||
|
# re (?i)https://iitwelders\.com https://iitwelders.bayarea-cc.com
|
||||||
|
# re (?i)//iitwelders\.com //iitwelders.bayarea-cc.com
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# 3) Proxy holt unkomprimiert vom Origin (damit replace arbeiten kann)
|
||||||
reverse_proxy https://iitwelders.com {
|
reverse_proxy https://iitwelders.com {
|
||||||
# Upstream nicht komprimieren lassen, sonst kann replace nicht arbeiten
|
|
||||||
header_up Accept-Encoding identity
|
|
||||||
|
|
||||||
header_up Host iitwelders.com
|
header_up Host iitwelders.com
|
||||||
|
header_up Accept-Encoding identity
|
||||||
transport http {
|
transport http {
|
||||||
tls_server_name iitwelders.com
|
tls_server_name iitwelders.com
|
||||||
}
|
}
|
||||||
|
# Falls 30x zurückkommt: Location auf Proxy-Domain biegen
|
||||||
# etwaige 30x-Location-Header auf deine Domain biegen
|
|
||||||
header_down Location https://iitwelders.bayarea-cc.com{uri}
|
header_down Location https://iitwelders.bayarea-cc.com{uri}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# 4) Zum Schluss für den Client komprimieren
|
||||||
|
encode zstd gzip
|
||||||
|
}
|
||||||
|
|
||||||
@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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue