nix/module: Specify json mimetype for spaceapi.php
This commit is contained in:
parent
5f7544588e
commit
ccf0b0511e
|
@ -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