allow images up to 12M (fix #9)

This commit is contained in:
nobohan 2021-07-05 11:40:13 +02:00
parent 4c9fa86318
commit 3c11212676
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@ server {
listen 80; listen 80;
listen [::]:80; listen [::]:80;
server_name localhost; server_name localhost;
client_max_body_size 12M;
#charset koi8-r; #charset koi8-r;
#access_log /var/log/nginx/host.access.log main; #access_log /var/log/nginx/host.access.log main;
@ -27,7 +28,7 @@ server {
location @media1 { location @media1 {
rewrite ^/api/media/(.*)$ /api/media1/$1; rewrite ^/api/media/(.*)$ /api/media1/$1;
} }
#error_page 404 /404.html; #error_page 404 /404.html;
# redirect server error pages to the static page /50x.html # redirect server error pages to the static page /50x.html