From b48bf402c711ff2a2717c166ced63342c45f47e4 Mon Sep 17 00:00:00 2001 From: "Nathan.fooo" <86001920+appflowy@users.noreply.github.com> Date: Wed, 3 Jan 2024 03:22:45 +0800 Subject: [PATCH] chore: set client max boby size (#241) * chore: set client max boby size * chore: fix clippy --- nginx/nginx.conf | 1 + tests/util/test_client.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 5efdb2e6..8a7fe24b 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -55,6 +55,7 @@ http { location /api { proxy_set_header X-Request-Id $request_id; proxy_pass http://appflowy_cloud:8000; + client_max_body_size 6M; } # Minio Web UI diff --git a/tests/util/test_client.rs b/tests/util/test_client.rs index 4f16a23a..df1bb6fe 100644 --- a/tests/util/test_client.rs +++ b/tests/util/test_client.rs @@ -316,6 +316,7 @@ impl TestClient { self.api_client.get_profile().await.unwrap().uid } + #[allow(dead_code)] pub(crate) async fn get_snapshot( &self, workspace_id: &str,