From c9fb1280562e1708e85ea0a7d63c5d229bb347cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Bravo?= Date: Mon, 12 Dec 2022 23:44:04 +0100 Subject: [PATCH] [ #18822 ] Add client_max_body_size to airbyte-proxy (#20383) Co-authored-by: Sajarin --- 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 7dfc53b42638..fe817b622536 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 b09ee488f91e..35b25c934616 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}"; } }