From ec2b82b5b3764560d6f304142a3fcc046cffcc45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Bravo?= Date: Mon, 12 Dec 2022 19:46:41 +0100 Subject: [PATCH] [ #18822 ] Add client_max_body_size to airbyte-proxy --- airbyte-proxy/nginx-auth.conf.template | 6 ++++++ airbyte-proxy/nginx-no-auth.conf.template | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/airbyte-proxy/nginx-auth.conf.template b/airbyte-proxy/nginx-auth.conf.template index 7dfc53b42638bd..fe817b622536bf 100644 --- a/airbyte-proxy/nginx-auth.conf.template +++ b/airbyte-proxy/nginx-auth.conf.template @@ -9,6 +9,8 @@ http { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + client_max_body_size 200M; + auth_basic "Welcome to Airbyte"; auth_basic_user_file /etc/nginx/.htpasswd; @@ -35,6 +37,8 @@ http { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + client_max_body_size 200M; + auth_basic "Welcome to Airbyte"; auth_basic_user_file /etc/nginx/.htpasswd; @@ -61,6 +65,8 @@ http { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + client_max_body_size 200M; + auth_basic "Welcome to Airbyte"; auth_basic_user_file /etc/nginx/.htpasswd; diff --git a/airbyte-proxy/nginx-no-auth.conf.template b/airbyte-proxy/nginx-no-auth.conf.template index b09ee488f91ee9..35b25c934616ff 100644 --- a/airbyte-proxy/nginx-no-auth.conf.template +++ b/airbyte-proxy/nginx-no-auth.conf.template @@ -9,6 +9,8 @@ http { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + client_max_body_size 200M; + proxy_pass "${PROXY_PASS_WEB}"; proxy_connect_timeout ${BASIC_AUTH_PROXY_TIMEOUT}; @@ -26,6 +28,8 @@ http { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + client_max_body_size 200M; + proxy_pass "${PROXY_PASS_API}"; proxy_connect_timeout ${BASIC_AUTH_PROXY_TIMEOUT}; @@ -43,6 +47,8 @@ http { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + client_max_body_size 200M; + proxy_pass "${CONNECTOR_BUILDER_SERVER_API}"; } }