From 49e472c099ccddaf6d1f64cc2c4a7f211aea76a7 Mon Sep 17 00:00:00 2001 From: flechsig Date: Wed, 4 Feb 2026 08:07:55 +0100 Subject: [PATCH] WIP client_max_body_size in location block (#48) the client_max_body_size in server block is obviously not sufficient - I put it also in the location block - please pull and restart the container Reviewed-on: https://gitea.psi.ch/linux/WebHosting/pulls/48 Reviewed-by: buchel_k Co-authored-by: flechsig Co-committed-by: flechsig --- conf.d/opticswiki.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf.d/opticswiki.conf b/conf.d/opticswiki.conf index 3f0b8c5..ed7c65f 100644 --- a/conf.d/opticswiki.conf +++ b/conf.d/opticswiki.conf @@ -16,12 +16,12 @@ server { ssl_certificate_key /etc/nginx/private/opticswiki.psi.ch.key; location / { + client_max_body_size 20M; proxy_pass http://opticswiki:80; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; - # UF add proxy_set_header Cookie $http_cookie; proxy_set_header Authorization $http_authorization; }