summary refs log tree commit diff
path: root/nixos/modules/services/mail/sympa.nix
diff options
context:
space:
mode:
authorMartin Milata <martin@martinmilata.cz>2020-06-10 17:44:37 +0200
committerMartin Milata <martin@martinmilata.cz>2020-06-10 17:44:37 +0200
commitbd4e4dddff966838127c859e77fa041aab270bba (patch)
tree284ea9afcf923be11eade67966648664076a8ad9 /nixos/modules/services/mail/sympa.nix
parent511f062729e7f214cbc29b5bf88e7b199ffd0cda (diff)
downloadnixpkgs-bd4e4dddff966838127c859e77fa041aab270bba.tar
nixpkgs-bd4e4dddff966838127c859e77fa041aab270bba.tar.gz
nixpkgs-bd4e4dddff966838127c859e77fa041aab270bba.tar.bz2
nixpkgs-bd4e4dddff966838127c859e77fa041aab270bba.tar.lz
nixpkgs-bd4e4dddff966838127c859e77fa041aab270bba.tar.xz
nixpkgs-bd4e4dddff966838127c859e77fa041aab270bba.tar.zst
nixpkgs-bd4e4dddff966838127c859e77fa041aab270bba.zip
nixos/sympa: fix PATH_INFO splitting for sympa-6.2.56
Our regex for splitting HTTP path into SCRIPT_NAME and PATH_INFO was
incorrect when webLocation was set to "/". Since Sympa 6.2.56 this has
caused the web interface to return "421 Misdirected Request".

Since 6.2.56 Sympa can do the splitting on its own so we can simply
remove it from nginx configuration.

See also:
- https://github.com/sympa-community/sympa/issues/879
- https://github.com/sympa-community/sympa/pull/910
- https://github.com/sympa-community/sympa-community.github.io/pull/53
Diffstat (limited to 'nixos/modules/services/mail/sympa.nix')
-rw-r--r--nixos/modules/services/mail/sympa.nix4
1 files changed, 0 insertions, 4 deletions
diff --git a/nixos/modules/services/mail/sympa.nix b/nixos/modules/services/mail/sympa.nix
index 0cad09927b2..491b6dba9aa 100644
--- a/nixos/modules/services/mail/sympa.nix
+++ b/nixos/modules/services/mail/sympa.nix
@@ -513,10 +513,6 @@ in
           include ${config.services.nginx.package}/conf/fastcgi_params;
 
           fastcgi_pass unix:/run/sympa/wwsympa.socket;
-          fastcgi_split_path_info ^(${loc})(.*)$;
-
-          fastcgi_param PATH_INFO       $fastcgi_path_info;
-          fastcgi_param SCRIPT_FILENAME ${pkg}/lib/sympa/cgi/wwsympa.fcgi;
         '';
       }) // {
         "/static-sympa/".alias = "${dataDir}/static_content/";