From e9e41c6965afc36e9cb8d7d1e274649ab90a5543 Mon Sep 17 00:00:00 2001 From: Myra Date: Wed, 18 Sep 2024 20:51:09 +0200 Subject: [PATCH] Update setting-up-robust-cdn.md --- src/en/server-hosting/setting-up-robust-cdn.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/en/server-hosting/setting-up-robust-cdn.md b/src/en/server-hosting/setting-up-robust-cdn.md index bd14f5748..29c8d4d9f 100644 --- a/src/en/server-hosting/setting-up-robust-cdn.md +++ b/src/en/server-hosting/setting-up-robust-cdn.md @@ -376,7 +376,7 @@ location / { ### Caddy -This is an example Caddyfile to go into an existing block for the domain with the CDN +This is an example Caddyfile to go into an existing block for the domain with the CDN. If you are putting this in a path you can just put all these under the path. ``` # Increased max body size for multi-request publishes. @@ -384,10 +384,12 @@ request_body { max_size 512MB } +# Update port here. reverse_proxy localhost:8080 { flush_interval -1 } +# Compress JSON responses. encode zstd gzip { match header Content-Type application/json* }