From 05de0ccba5cdd9b379d717f630a7653da2c392f3 Mon Sep 17 00:00:00 2001 From: Prashant Shahi Date: Tue, 13 Sep 2022 22:37:39 +0530 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=94=A7=20Add=20414=20issue=20fix?= =?UTF-8?q?=20for=20Frontend=20default.conf=20and=20Swarm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Prashant Shahi --- deploy/docker-swarm/common/nginx-config.conf | 8 ++++++-- frontend/conf/default.conf | 10 +++++++--- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/deploy/docker-swarm/common/nginx-config.conf b/deploy/docker-swarm/common/nginx-config.conf index 3153dff62f..d822e68c40 100644 --- a/deploy/docker-swarm/common/nginx-config.conf +++ b/deploy/docker-swarm/common/nginx-config.conf @@ -3,13 +3,17 @@ server { server_name _; gzip on; - gzip_static on; + gzip_static on; gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; gzip_proxied any; gzip_vary on; gzip_comp_level 6; gzip_buffers 16 8k; - gzip_http_version 1.1; + gzip_http_version 1.1; + + # to handle uri issue 414 from nginx + client_max_body_size 24M; + large_client_header_buffers 8 16k; location / { if ( $uri = '/index.html' ) { diff --git a/frontend/conf/default.conf b/frontend/conf/default.conf index dc0475eaf4..37b77463d4 100644 --- a/frontend/conf/default.conf +++ b/frontend/conf/default.conf @@ -1,15 +1,19 @@ server { listen 3301; server_name _; - + gzip on; - gzip_static on; + gzip_static on; gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; gzip_proxied any; gzip_vary on; gzip_comp_level 6; gzip_buffers 16 8k; - gzip_http_version 1.1; + gzip_http_version 1.1; + + # to handle uri issue 414 from nginx + client_max_body_size 24M; + large_client_header_buffers 8 16k; location / { root /usr/share/nginx/html;