Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

fix(proxy): enforce body limit without rejecting valid imports (#1208)

桌子潔e8b8623bf2a8
diff --git a/Caddyfile b/Caddyfile
index c15cbfedf..c3e9e35aa 100644
--- a/Caddyfile
+++ b/Caddyfile
@@ -17,7 +17,11 @@
# Enable compression
encode zstd gzip
- request_body max_size 10MB
+ # Match Fastify's largest route limit (event imports). Fastify still
+ # enforces the smaller limits configured for other routes.
+ request_body {
+ max_size 50MiB
+ }
handle /api/* {
reverse_proxy backend:3001
}
@@ -35,4 +39,4 @@
handle {
reverse_proxy client:3002
}
-}
\ No newline at end of file
+}