aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Dybiec <pawel.to.malpa@gmail.com>2019-05-23 22:00:47 +0200
committerPaweł Dybiec <pawel.to.malpa@gmail.com>2019-05-23 22:00:47 +0200
commitc39cc4253284720bae1796ec812eb5f22ac38a31 (patch)
treeb00226f1d90d24e9b0b11078fb2537b3e7002939
parentEnable gzip compression for proxies and many types (diff)
Max body size parameter
-rw-r--r--domains.yml1
-rw-r--r--templates/nginx.conf.j24
2 files changed, 5 insertions, 0 deletions
diff --git a/domains.yml b/domains.yml
index 38360c6..e82b981 100644
--- a/domains.yml
+++ b/domains.yml
@@ -30,6 +30,7 @@ domains:
name: "octoprint.dybiec.info"
http_redirect: true
websocket: true
+ client_body_size: 200M
proxy:
host: "192.168.255.6"
diff --git a/templates/nginx.conf.j2 b/templates/nginx.conf.j2
index a72c6cc..724bf32 100644
--- a/templates/nginx.conf.j2
+++ b/templates/nginx.conf.j2
@@ -30,6 +30,10 @@ server {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
{% endif %}
+
+{% if server.client_body_size is defined%}
+ client_max_body_size {{ server.client_body_size }};
+{% endif %}
{% endif %}
}