From 97cb51efbf843bdf24e71bea4444d21f501ff00b Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Thu, 7 Mar 2019 21:17:19 +0100 Subject: [PATCH] hackmd: increase max upload size --- roles/hackmd/templates/vhost.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/hackmd/templates/vhost.j2 b/roles/hackmd/templates/vhost.j2 index c1f92fb..c767857 100644 --- a/roles/hackmd/templates/vhost.j2 +++ b/roles/hackmd/templates/vhost.j2 @@ -23,6 +23,9 @@ server { ssl_certificate_key /etc/nginx/ssl/{{ hackmd_domain }}.key; ssl_certificate /etc/nginx/ssl/{{ hackmd_domain }}.crt; + # set max upload size + client_max_body_size 8M; + location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;