nix/module: Specify json mimetype for spaceapi.php

This commit is contained in:
Felix Albrigtsen 2024-05-12 10:46:38 +02:00
parent aebc14ccb5
commit c6df8e6ae3
1 changed files with 4 additions and 0 deletions

View File

@ -198,6 +198,10 @@ 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/";