1
0
forked from infra/ansible

hackmd: increase max upload size

This commit is contained in:
Markus 2019-03-07 21:17:19 +01:00
parent e1e110e704
commit 97cb51efbf

View File

@ -23,6 +23,9 @@ server {
ssl_certificate_key /etc/nginx/ssl/{{ hackmd_domain }}.key; ssl_certificate_key /etc/nginx/ssl/{{ hackmd_domain }}.key;
ssl_certificate /etc/nginx/ssl/{{ hackmd_domain }}.crt; ssl_certificate /etc/nginx/ssl/{{ hackmd_domain }}.crt;
# set max upload size
client_max_body_size 8M;
location / { location / {
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;