From 8c1ae95e53e92133c5f8d58f31752f370a82494d Mon Sep 17 00:00:00 2001 From: h7x4 Date: Fri, 29 Mar 2024 14:34:09 +0100 Subject: [PATCH] rebase idp --- hosts/bekkalokk/services/idp-simplesamlphp/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hosts/bekkalokk/services/idp-simplesamlphp/default.nix b/hosts/bekkalokk/services/idp-simplesamlphp/default.nix index 580e09f..0a96710 100644 --- a/hosts/bekkalokk/services/idp-simplesamlphp/default.nix +++ b/hosts/bekkalokk/services/idp-simplesamlphp/default.nix @@ -75,17 +75,20 @@ in services.nginx.virtualHosts."idp2.pvv.ntnu.no" = { forceSSL = true; enableACME = true; - root = "${package}/share/php/simplesamlphp"; + root = "${package}/share/php/simplesamlphp/public"; locations = { "/".index = "index.php"; + # fastcgi_split_path_info ^(.+\.php)(/.+)$; "~ /(.+\\.php)" = { extraConfig = '' - fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_index index.php; fastcgi_pass unix:${config.services.phpfpm.pools.idp.socket}; include ${pkgs.nginx}/conf/fastcgi_params; include ${pkgs.nginx}/conf/fastcgi.conf; + + fastcgi_param SCRIPT_FILENAME ${package}/share/php/simplesamlphp/public/$request_filename; + fastcgi_param SCRIPT_NAME $request_filename; ''; }; };