From d8c1977bb55a8db63e25b2ede84e25796f88d6b1 Mon Sep 17 00:00:00 2001 From: jammerful Date: Tue, 2 May 2017 19:55:11 -0400 Subject: [PATCH] shibboleth-sp module: Set Config File Path for FastCGI Units Without this environment variable both shibauthorizer and shibresponder default to ${pkgs.shibboleth-sp}etc/shibboleth/shibboleth2.xml --- nixos/modules/services/security/shibboleth-sp.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/services/security/shibboleth-sp.nix b/nixos/modules/services/security/shibboleth-sp.nix index 9659188349e..07acf27f0f6 100644 --- a/nixos/modules/services/security/shibboleth-sp.nix +++ b/nixos/modules/services/security/shibboleth-sp.nix @@ -53,6 +53,7 @@ in { after = [ "network.target" ]; wantedBy = [ "multi-user.target" ]; path = [ "${pkgs.spawn_fcgi}" ]; + environment.SHIBSP_CONFIG = "${cfg.configFile}"; serviceConfig = { ExecStart = "${pkgs.spawn_fcgi}/bin/spawn-fcgi -n -p ${toString cfg.fastcgi.shibResponderPort} ${pkgs.shibboleth-sp}/lib/shibboleth/shibresponder"; }; @@ -63,6 +64,7 @@ in { after = [ "network.target" ]; wantedBy = [ "multi-user.target" ]; path = [ "${pkgs.spawn_fcgi}" ]; + environment.SHIBSP_CONFIG = "${cfg.configFile}"; serviceConfig = { ExecStart = "${pkgs.spawn_fcgi}/bin/spawn-fcgi -n -p ${toString cfg.fastcgi.shibAuthorizerPort} ${pkgs.shibboleth-sp}/lib/shibboleth/shibauthorizer"; };