mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-24 21:26:59 +01:00
Update nginx config to fix Dolibarr's API
This commit is contained in:
parent
d8b1d760df
commit
58fa28a15c
1 changed files with 10 additions and 1 deletions
|
|
@ -144,7 +144,16 @@
|
|||
settings = {
|
||||
dolibarr_main_db_type = lib.mkForce "pgsql";
|
||||
};
|
||||
nginx = { };
|
||||
nginx = {
|
||||
# https://wiki.dolibarr.org/index.php/Module_Web_Services_API_REST_(developer)#Nginx_setup
|
||||
locations."~ [^/]\\.php(/|$)".extraConfig = ''
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
include ${config.services.nginx.package}/conf/fastcgi_params;
|
||||
# Dolibarr Rest API path support
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_script_name;
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue