mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +00:00
Merge pull request #3096 from holta/nginx-uploads-500M-not-1M
nginx/templates/server.conf.j2: client_max_body_size 1M -> 500M solves "413 Request Entity Too Large" [for Calibre-Web, and other LMS-like apps — compare Nextcloud's 512M]
This commit is contained in:
commit
a06fb0c747
1 changed files with 9 additions and 0 deletions
|
@ -7,6 +7,15 @@ server {
|
|||
|
||||
index index.php index.html index.htm;
|
||||
|
||||
# NGINX's 1MB default is far too low for Calibre-Web and LMS-like apps.
|
||||
# So IIAB sets this to 500M, roughly aligning with similar settings...
|
||||
# 1. 'upload_max_filesize = 500M' and 'post_max_size = 500M' are SOMETIMES set in:
|
||||
# https://github.com/iiab/iiab/blob/master/roles/www_options/tasks/main.yml#L106-L107
|
||||
# https://github.com/iiab/iiab/blob/master/roles/www_options/tasks/main.yml#L120-L121
|
||||
# 2. 'client_max_body_size 512M;' is set in:
|
||||
# https://github.com/iiab/iiab/blob/master/roles/nextcloud/templates/nextcloud-nginx.conf.j2#L62
|
||||
client_max_body_size 500M;
|
||||
|
||||
# let individual services drop location blocks in conf.d
|
||||
include {{ nginx_conf_dir }}/*;
|
||||
|
||||
|
|
Loading…
Reference in a new issue