replace_response

This commit is contained in:
Andreas Knuth 2025-09-11 14:00:15 -05:00
parent 0f7e8c1dd5
commit 06e070f9b7
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
{ {
order replace_response before reverse_proxy
email {env.CLOUDFLARE_EMAIL} email {env.CLOUDFLARE_EMAIL}
acme_dns cloudflare {env.CLOUDFLARE_API_TOKEN} acme_dns cloudflare {env.CLOUDFLARE_API_TOKEN}
acme_ca https://acme-v02.api.letsencrypt.org/directory acme_ca https://acme-v02.api.letsencrypt.org/directory
@ -105,13 +106,13 @@ iitwelders.bayarea-cc.com {
encode zstd gzip encode zstd gzip
@html header Content-Type text/html* @html header Content-Type text/html*
replace-response @html { replace_response @html {
s "https://iitwelders.com" "https://iitwelders.bayarea-cc.com" s "https://iitwelders.com" "https://iitwelders.bayarea-cc.com"
s "//iitwelders.com" "//iitwelders.bayarea-cc.com" s "//iitwelders.com" "//iitwelders.bayarea-cc.com"
} }
@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_response @assets {
s "https://iitwelders.com" "https://iitwelders.bayarea-cc.com" s "https://iitwelders.com" "https://iitwelders.bayarea-cc.com"
s "//iitwelders.com" "//iitwelders.bayarea-cc.com" s "//iitwelders.com" "//iitwelders.bayarea-cc.com"
} }