summary refs log tree commit diff
diff options
context:
space:
mode:
authorNaïm Favier <n@monade.li>2021-09-29 01:42:34 +0200
committerNaïm Favier <n@monade.li>2021-09-29 01:46:58 +0200
commitc965a308719b7140588dad064a0ff7f4032437d1 (patch)
tree75e82d32337da81b9369dae8554845d4399e4e85
parent1f2b8b7b634dc704cdb6eefde9f44ea9425525f0 (diff)
downloadnixpkgs-c965a308719b7140588dad064a0ff7f4032437d1.tar
nixpkgs-c965a308719b7140588dad064a0ff7f4032437d1.tar.gz
nixpkgs-c965a308719b7140588dad064a0ff7f4032437d1.tar.bz2
nixpkgs-c965a308719b7140588dad064a0ff7f4032437d1.tar.lz
nixpkgs-c965a308719b7140588dad064a0ff7f4032437d1.tar.xz
nixpkgs-c965a308719b7140588dad064a0ff7f4032437d1.tar.zst
nixpkgs-c965a308719b7140588dad064a0ff7f4032437d1.zip
nixos/nginx: allow paths in fastcgiParams
Useful for pointing `SCRIPT_FILENAME` at a derivation.
-rw-r--r--nixos/modules/services/web-servers/nginx/location-options.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/web-servers/nginx/location-options.nix b/nixos/modules/services/web-servers/nginx/location-options.nix
index d8c976f202f..46a664c078b 100644
--- a/nixos/modules/services/web-servers/nginx/location-options.nix
+++ b/nixos/modules/services/web-servers/nginx/location-options.nix
@@ -102,7 +102,7 @@ with lib;
     };
 
     fastcgiParams = mkOption {
-      type = types.attrsOf types.str;
+      type = types.attrsOf (types.either types.str types.path);
       default = {};
       description = ''
         FastCGI parameters to override.  Unlike in the Nginx