forked from infra/ansible
hackmd: increase max upload size
This commit is contained in:
parent
e1e110e704
commit
97cb51efbf
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user