Parameterization of the client_max_body_size directive in Nginx (#2014)

Enables users to customize client_max_body_size in Nginx conf to allow
for larger file uploads. This is useful in cases when users need to upload
large subscription manifest files.

---------

Co-authored-by: Seth Foster <fosterseth@users.noreply.github.com>
This commit is contained in:
shellclear
2025-02-24 18:50:08 +01:00
committed by GitHub
parent bb4f4c2eb4
commit 039157d070
5 changed files with 11 additions and 1 deletions

View File

@@ -503,6 +503,7 @@ nginx_worker_processes: 1
nginx_worker_connections: "{{ uwsgi_listen_queue_size }}"
nginx_worker_cpu_affinity: 'auto'
nginx_listen_queue_size: "{{ uwsgi_listen_queue_size }}"
nginx_client_max_body_size: 5
extra_settings_files: {}

View File

@@ -109,7 +109,7 @@ data:
include /etc/nginx/mime.types;
default_type application/octet-stream;
server_tokens off;
client_max_body_size 5M;
client_max_body_size {{ nginx_client_max_body_size }}M;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '