rebase idp
Eval nix flake / evals (push) Failing after 1m47s Details

This commit is contained in:
Oystein Kristoffer Tveit 2024-03-29 14:34:09 +01:00
parent ad0c13269e
commit 8c1ae95e53
1 changed files with 5 additions and 2 deletions

View File

@ -75,17 +75,20 @@ in
services.nginx.virtualHosts."idp2.pvv.ntnu.no" = { services.nginx.virtualHosts."idp2.pvv.ntnu.no" = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
root = "${package}/share/php/simplesamlphp"; root = "${package}/share/php/simplesamlphp/public";
locations = { locations = {
"/".index = "index.php"; "/".index = "index.php";
# fastcgi_split_path_info ^(.+\.php)(/.+)$;
"~ /(.+\\.php)" = { "~ /(.+\\.php)" = {
extraConfig = '' extraConfig = ''
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_index index.php; fastcgi_index index.php;
fastcgi_pass unix:${config.services.phpfpm.pools.idp.socket}; fastcgi_pass unix:${config.services.phpfpm.pools.idp.socket};
include ${pkgs.nginx}/conf/fastcgi_params; include ${pkgs.nginx}/conf/fastcgi_params;
include ${pkgs.nginx}/conf/fastcgi.conf; include ${pkgs.nginx}/conf/fastcgi.conf;
fastcgi_param SCRIPT_FILENAME ${package}/share/php/simplesamlphp/public/$request_filename;
fastcgi_param SCRIPT_NAME $request_filename;
''; '';
}; };
}; };