From e312d3c53cf35eab1beae33a374b41562dcf2d85 Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Sat, 25 Jul 2026 13:21:02 +0200 Subject: [PATCH] nixos/roundcube: nginx config for max attachment size Fixes #506235 Not sure if I mistested this in #51304 or something changed in the mean time. Moving it to `location./` is not sufficient. --- nixos/modules/services/mail/roundcube.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/mail/roundcube.nix b/nixos/modules/services/mail/roundcube.nix index 2f3a977ce923..6a1712af58da 100644 --- a/nixos/modules/services/mail/roundcube.nix +++ b/nixos/modules/services/mail/roundcube.nix @@ -199,10 +199,11 @@ in fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_split_path_info ^(.+\.php)(/.+)$; include ${config.services.nginx.package}/conf/fastcgi.conf; - - client_max_body_size ${toString cfg.maxAttachmentSize}; ''; }; + extraConfig = '' + client_max_body_size ${toString cfg.maxAttachmentSize}; + ''; }; }; };