nginx.conf: fix inconsistent client_max_body_size.
This commit is contained in:
@@ -187,7 +187,8 @@ module Danbooru
|
|||||||
1_000
|
1_000
|
||||||
end
|
end
|
||||||
|
|
||||||
# Maximum size of an upload.
|
# Maximum size of an upload. If you change this, you must also change
|
||||||
|
# `client_max_body_size` in your nginx.conf.
|
||||||
def max_file_size
|
def max_file_size
|
||||||
35.megabytes
|
35.megabytes
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ server {
|
|||||||
index index.html;
|
index index.html;
|
||||||
access_log /var/log/nginx/danbooru.access.log;
|
access_log /var/log/nginx/danbooru.access.log;
|
||||||
error_log /var/log/nginx/danbooru.error.log;
|
error_log /var/log/nginx/danbooru.error.log;
|
||||||
client_max_body_size 30m;
|
client_max_body_size 35m;
|
||||||
location /stylesheets {
|
location /stylesheets {
|
||||||
expires max;
|
expires max;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user