diff options
| author | Christian Breunig <christian@breunig.cc> | 2024-03-07 22:03:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-07 22:03:08 +0100 |
| commit | da759a46efaaa937edae2440a7743d325ebf99b1 (patch) | |
| tree | 962733aaf4c6622d7cecee9658104d4eda924cf4 /data/templates/https | |
| parent | 311791ab536816a187a8a21562370e51eda3baba (diff) | |
| parent | 4792d39bb84991768404f69ff807e43a9979a79e (diff) | |
| download | veeos-1x-da759a46efaaa937edae2440a7743d325ebf99b1.tar.gz veeos-1x-da759a46efaaa937edae2440a7743d325ebf99b1.zip | |
Merge pull request #3108 from dmbaturin/T6107-body-max-size
http-api: T6107: add an option to increase the request body size limit
Diffstat (limited to 'data/templates/https')
| -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 }}; |
