From 5b073b62de003ffda5fd466ab2c7b3a6fc4571db Mon Sep 17 00:00:00 2001 From: flechsig Date: Mon, 2 Feb 2026 09:28:55 +0100 Subject: [PATCH] WIP increase client_max_body_size to 20M (#47) uploading attachments I receive frequent errors 413 Request entity too large, nginx client_max_body_size default is 1M - I need more Reviewed-on: https://gitea.psi.ch/linux/WebHosting/pulls/47 Reviewed-by: buchel_k Co-authored-by: flechsig Co-committed-by: flechsig --- conf.d/opticswiki.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conf.d/opticswiki.conf b/conf.d/opticswiki.conf index a8ea359..3f0b8c5 100644 --- a/conf.d/opticswiki.conf +++ b/conf.d/opticswiki.conf @@ -2,12 +2,14 @@ server { listen 80; + client_max_body_size 20M; server_name opticswiki.psi.ch; return 301 https://$host$request_uri; } server { listen 443 ssl; + client_max_body_size 20M; server_name opticswiki.psi.ch; ssl_certificate /etc/nginx/certs/opticswiki.psi.ch.crt;