add php
This commit is contained in:
@@ -4,8 +4,23 @@
|
||||
services.nginx.virtualHosts."cloud.stubbe.rocks" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
root = /etc/per-user-pkgs/nextcloud;
|
||||
locations."/".proxyPass = "http://unix:/run/phpfpm/nextcloud.sock";
|
||||
};
|
||||
|
||||
users.extraUsers.nextcloud.packages = [pkgs.nextcloud];
|
||||
|
||||
services.phpfpm.poolConfigs = {
|
||||
nextcloud = ''
|
||||
listen = /run/phpfpm/nextcloud.sock
|
||||
listen.group = nginx
|
||||
user = nextcloud
|
||||
group = nextcloud
|
||||
pm = dynamic
|
||||
pm.max_children = 75
|
||||
pm.start_servers = 10
|
||||
pm.min_spare_servers = 5
|
||||
pm.max_spare_servers = 20
|
||||
pm.max_requests = 500
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user