mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/tt-rss: fix work with phpfpm-rootless mode
This commit is contained in:
parent
6290bf9067
commit
6093c04b67
1 changed files with 7 additions and 5 deletions
|
@ -513,12 +513,14 @@ let
|
||||||
|
|
||||||
services.phpfpm.pools = mkIf (cfg.pool == "${poolName}") {
|
services.phpfpm.pools = mkIf (cfg.pool == "${poolName}") {
|
||||||
"${poolName}" = {
|
"${poolName}" = {
|
||||||
listen = "/var/run/phpfpm/${poolName}.sock";
|
socketName = "${poolName}";
|
||||||
|
phpPackage = pkgs.php;
|
||||||
|
user = "${config.services.nginx.user}";
|
||||||
|
group = "${config.services.nginx.group}";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
listen.owner = nginx
|
listen.owner = ${config.services.nginx.user}
|
||||||
listen.group = nginx
|
listen.group = ${config.services.nginx.group}
|
||||||
listen.mode = 0600
|
listen.mode = 0600
|
||||||
user = ${cfg.user}
|
|
||||||
pm = dynamic
|
pm = dynamic
|
||||||
pm.max_children = 75
|
pm.max_children = 75
|
||||||
pm.start_servers = 10
|
pm.start_servers = 10
|
||||||
|
@ -544,7 +546,7 @@ let
|
||||||
locations."~ \.php$" = {
|
locations."~ \.php$" = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||||
fastcgi_pass unix:${config.services.phpfpm.pools.${cfg.pool}.listen};
|
fastcgi_pass unix:/run/phpfpm-${poolName}/${poolName}.sock;
|
||||||
fastcgi_index index.php;
|
fastcgi_index index.php;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue