nixos/nextcloud: fix work with phpfpm-rootless mode
This commit is contained in:
parent
08dae69741
commit
5b1a4730bc
@ -394,13 +394,14 @@ in {
|
|||||||
phpOptions)));
|
phpOptions)));
|
||||||
in {
|
in {
|
||||||
phpOptions = phpOptionsExtensions;
|
phpOptions = phpOptionsExtensions;
|
||||||
|
socketName = "nextcloud";
|
||||||
phpPackage = phpPackage;
|
phpPackage = phpPackage;
|
||||||
listen = "/run/phpfpm/nextcloud";
|
user = "nextcloud";
|
||||||
|
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}
|
||||||
user = nextcloud
|
listen.mode = 0600
|
||||||
group = nginx
|
|
||||||
${cfg.poolConfig}
|
${cfg.poolConfig}
|
||||||
env[NEXTCLOUD_CONFIG_DIR] = ${cfg.home}/config
|
env[NEXTCLOUD_CONFIG_DIR] = ${cfg.home}/config
|
||||||
env[PATH] = /run/wrappers/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/usr/bin:/bin
|
env[PATH] = /run/wrappers/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/usr/bin:/bin
|
||||||
@ -466,7 +467,7 @@ in {
|
|||||||
fastcgi_param HTTPS ${if cfg.https then "on" else "off"};
|
fastcgi_param HTTPS ${if cfg.https then "on" else "off"};
|
||||||
fastcgi_param modHeadersAvailable true;
|
fastcgi_param modHeadersAvailable true;
|
||||||
fastcgi_param front_controller_active true;
|
fastcgi_param front_controller_active true;
|
||||||
fastcgi_pass unix:/run/phpfpm/nextcloud;
|
fastcgi_pass unix:/run/phpfpm-nextcloud/nextcloud.sock;
|
||||||
fastcgi_intercept_errors on;
|
fastcgi_intercept_errors on;
|
||||||
fastcgi_request_buffering off;
|
fastcgi_request_buffering off;
|
||||||
fastcgi_read_timeout 120s;
|
fastcgi_read_timeout 120s;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user