From feaad0bbd06c4d0b25870763faf13cc6e4e59df9 Mon Sep 17 00:00:00 2001 From: evazion Date: Sat, 17 Feb 2018 16:07:56 -0600 Subject: [PATCH] nginx.conf: fix inconsistent client_max_body_size. --- config/danbooru_default_config.rb | 3 ++- script/install/nginx.danbooru.conf | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/danbooru_default_config.rb b/config/danbooru_default_config.rb index 23541a5a9..fd30ddc0c 100644 --- a/config/danbooru_default_config.rb +++ b/config/danbooru_default_config.rb @@ -187,7 +187,8 @@ module Danbooru 1_000 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 35.megabytes end diff --git a/script/install/nginx.danbooru.conf b/script/install/nginx.danbooru.conf index b45c40215..10f6bddd8 100644 --- a/script/install/nginx.danbooru.conf +++ b/script/install/nginx.danbooru.conf @@ -7,7 +7,7 @@ server { index index.html; access_log /var/log/nginx/danbooru.access.log; error_log /var/log/nginx/danbooru.error.log; - client_max_body_size 30m; + client_max_body_size 35m; location /stylesheets { expires max; break;