nixos/roundcube: set nginx client_max_body_size for attachments (#513049)

This commit is contained in:
Maximilian Bosch
2026-05-14 16:44:04 +00:00
committed by GitHub
+2 -1
View File
@@ -190,7 +190,6 @@ in
priority = 1100;
extraConfig = ''
add_header Cache-Control 'public, max-age=604800, must-revalidate';
client_max_body_size ${toString cfg.maxAttachmentSize};
'';
};
locations."~ ^/(SQL|bin|config|logs|temp|vendor)/" = {
@@ -213,6 +212,8 @@ 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};
'';
};
};