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;