Skip to content

Commit

Permalink
[ #18822 ] Add client_max_body_size to airbyte-proxy (#20383)
Browse files Browse the repository at this point in the history
Co-authored-by: Sajarin <sajarindider@gmail.com>
  • Loading branch information
andresbravog and sajarin authored Dec 12, 2022
1 parent 7afc689 commit c9fb128
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions airbyte-proxy/nginx-auth.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;

Expand All @@ -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;

Expand Down
6 changes: 6 additions & 0 deletions airbyte-proxy/nginx-no-auth.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand All @@ -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};
Expand All @@ -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}";
}
}
Expand Down

0 comments on commit c9fb128

Please sign in to comment.