From 5bf5d513a493914dd0381c516973d308ee095d78 Mon Sep 17 00:00:00 2001 From: mjanez <96422458+mjanez@users.noreply.github.com> Date: Tue, 17 Dec 2024 20:40:19 +0100 Subject: [PATCH] Update client_max_body_size configuration to use template variable --- .../webserver/templates/sites-available/ckan-pycsw.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbook/roles/webserver/templates/sites-available/ckan-pycsw.conf.j2 b/playbook/roles/webserver/templates/sites-available/ckan-pycsw.conf.j2 index a819a51..9441439 100644 --- a/playbook/roles/webserver/templates/sites-available/ckan-pycsw.conf.j2 +++ b/playbook/roles/webserver/templates/sites-available/ckan-pycsw.conf.j2 @@ -4,7 +4,7 @@ server { listen {{ nginx_sslport }} ssl; listen [::]:{{ nginx_sslport }} ssl; server_name {{proxy_server_name}}; - client_max_body_size 100M; + client_max_body_size {{proxy_server_name}}M; ssl_certificate {{ nginx_dir }}/certs/ckan-local.crt; ssl_certificate_key {{ nginx_dir }}/certs/ckan-local.key;