nix/module: fix spaceapi endpoint

This commit is contained in:
Oystein Kristoffer Tveit 2024-05-18 20:54:05 +02:00
parent 0542a10d03
commit 9d8b14a08b
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
1 changed files with 3 additions and 4 deletions

View File

@ -196,10 +196,9 @@ in
include ${pkgs.nginx}/conf/fastcgi_params;
fastcgi_param SCRIPT_FILENAME ${finalPackage}/share/php/pvv-nettsiden/www$fastcgi_script_name;
fastcgi_pass unix:${config.services.phpfpm.pools."pvv-nettsiden".socket};
'';
"= /spaceapi.php".extraConfig = ''
location = /spaceapi.php {
add_header Content-Type application/json;
}
'';
# based on https://simplesamlphp.org/docs/stable/simplesamlphp-install.html#configuring-nginx