nix/module: Specify json mimetype for spaceapi.php
This commit is contained in:
parent
aebc14ccb5
commit
c6df8e6ae3
|
@ -198,6 +198,10 @@ in
|
||||||
fastcgi_pass unix:${config.services.phpfpm.pools."pvv-nettsiden".socket};
|
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
|
# based on https://simplesamlphp.org/docs/stable/simplesamlphp-install.html#configuring-nginx
|
||||||
"^~ /simplesaml/" = {
|
"^~ /simplesaml/" = {
|
||||||
alias = "${finalPackage}/${finalPackage.passthru.simplesamlphpPath}/public/";
|
alias = "${finalPackage}/${finalPackage.passthru.simplesamlphpPath}/public/";
|
||||||
|
|
Loading…
Reference in New Issue