nix/module: Specify json mimetype for spaceapi.php

This commit is contained in:
Felix Albrigtsen 2024-05-12 10:46:38 +02:00
parent 5f7544588e
commit ccf0b0511e

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/";