Skip to content

Commit 7d1eee4

Browse files
author
Pierre Buyle
committed
Allow customization of client_max_body_size.
1 parent 2f4119f commit 7d1eee4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ nginx_drupal_upload_progress: true
2222
nginx_drupal_aio: true
2323
nginx_drupal_flv_streaming: true
2424
nginx_drupal_mp4_streaming: true
25+
nginx_drupal_http_core:
26+
client_max_body_size: "10m"
2527
nginx_drupal_upstream_servers: ["unix:/var/run/php-fpm.sock", "php-fpm-zwei.sock"]
2628
nginx_drupal_upstream_backup_servers: ["unix:/var/run/php-fpm-bkp.sock"]
2729
nginx_drupal_sites: none

templates/nginx.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ http {
7070
reset_timedout_connection on;
7171

7272
## Body size.
73-
client_max_body_size 10m;
73+
client_max_body_size {{nginx_drupal_http_core.client_max_body_size}};
7474

7575
## TCP options.
7676
tcp_nodelay on;

0 commit comments

Comments
 (0)