diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-03-07 23:13:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-07 23:13:40 +0200 |
commit | 6b52ad6d456e9e90cb983649b3ae43ac1c597f74 (patch) | |
tree | 54646d0be93bfe0d5667902b99979424972c06ba /data | |
parent | fcd2fc01101960c5e8d4fd04995417d35233b16a (diff) | |
parent | 00352f4edadfa536b35112c1d2d2cdf72ffb4cd6 (diff) | |
download | vyos-1x-6b52ad6d456e9e90cb983649b3ae43ac1c597f74.tar.gz vyos-1x-6b52ad6d456e9e90cb983649b3ae43ac1c597f74.zip |
Merge pull request #3109 from vyos/mergify/bp/sagitta/pr-3108
http-api: T6107: add an option to increase the request body size limit (backport #3108)
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/https/nginx.default.j2 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/data/templates/https/nginx.default.j2 b/data/templates/https/nginx.default.j2 index 5d17df001..4619361e5 100644 --- a/data/templates/https/nginx.default.j2 +++ b/data/templates/https/nginx.default.j2 @@ -21,6 +21,10 @@ server { server_name {{ hostname }}; root /srv/localui; +{% if request_body_size_limit is vyos_defined %} + client_max_body_size {{ request_body_size_limit }}M; +{% endif %} + # SSL configuration {% if certificates.cert_path is vyos_defined and certificates.key_path is vyos_defined %} ssl_certificate {{ certificates.cert_path }}; |