nix/module: fix spaceapi endpoint

This commit is contained in:
2024-05-18 20:54:05 +02:00
parent 7bf2c31db3
commit 4890a0af04
2 changed files with 4 additions and 5 deletions

View File

@@ -198,10 +198,6 @@ in
fastcgi_pass unix:${config.services.phpfpm.pools."pvv-nettsiden".socket};
'';
"= /spaceapi.php".extraConfig = ''
add_header Content-Type application/json;
'';
# based on https://simplesamlphp.org/docs/stable/simplesamlphp-install.html#configuring-nginx
"^~ /simplesaml/" = {
alias = "${finalPackage}/${finalPackage.passthru.simplesamlphpPath}/public/";