nix/module: fix spaceapi endpoint
This commit is contained in:
parent
0542a10d03
commit
9d8b14a08b
|
@ -196,10 +196,9 @@ in
|
||||||
include ${pkgs.nginx}/conf/fastcgi_params;
|
include ${pkgs.nginx}/conf/fastcgi_params;
|
||||||
fastcgi_param SCRIPT_FILENAME ${finalPackage}/share/php/pvv-nettsiden/www$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME ${finalPackage}/share/php/pvv-nettsiden/www$fastcgi_script_name;
|
||||||
fastcgi_pass unix:${config.services.phpfpm.pools."pvv-nettsiden".socket};
|
fastcgi_pass unix:${config.services.phpfpm.pools."pvv-nettsiden".socket};
|
||||||
'';
|
location = /spaceapi.php {
|
||||||
|
add_header Content-Type application/json;
|
||||||
"= /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
|
||||||
|
|
Loading…
Reference in New Issue