You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by lf...@apache.org on 2020/02/21 14:09:09 UTC

[incubator-dlab] 01/01: DLAB-1517 changed max allowed http request size

This is an automated email from the ASF dual-hosted git repository.

lfrolov pushed a commit to branch DLAB-1517
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git

commit f033ddaea20838ec9df4646b97a13f15db8f2060
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Fri Feb 21 16:08:47 2020 +0200

    DLAB-1517 changed max allowed http request size
---
 infrastructure-provisioning/src/project/templates/conf.d/proxy.conf | 2 ++
 infrastructure-provisioning/src/project/templates/nginx.conf        | 1 +
 2 files changed, 3 insertions(+)

diff --git a/infrastructure-provisioning/src/project/templates/conf.d/proxy.conf b/infrastructure-provisioning/src/project/templates/conf.d/proxy.conf
index a58147f..8ff621a 100644
--- a/infrastructure-provisioning/src/project/templates/conf.d/proxy.conf
+++ b/infrastructure-provisioning/src/project/templates/conf.d/proxy.conf
@@ -20,6 +20,7 @@
 # ******************************************************************************
 server {
     listen 80;
+    client_max_body_size 10M;
     server_name EDGE_IP;
     include locations/*.conf;
     rewrite ^/(.*)$ https://$server_name/$1 permanent;
@@ -28,6 +29,7 @@ server {
 server {
     listen       443 ssl;
     server_name  EDGE_IP;
+    client_max_body_size 10M;
     if ($host != $server_name) {
         rewrite ^/(.*)$ https://$server_name/$1 redirect;
     }
diff --git a/infrastructure-provisioning/src/project/templates/nginx.conf b/infrastructure-provisioning/src/project/templates/nginx.conf
index d012375..0869026 100644
--- a/infrastructure-provisioning/src/project/templates/nginx.conf
+++ b/infrastructure-provisioning/src/project/templates/nginx.conf
@@ -49,6 +49,7 @@ http {
     client_max_body_size 50M;
     resolver 8.8.8.8;
     resolver_timeout 10s;
+    client_max_body_size 10M;
 
     include             /etc/nginx/mime.types;
     default_type        application/octet-stream;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org