Browse Source

Fix rainloop

pull/23/head
m1cr0man 1 year ago
parent
commit
e4c56e94cb
2 changed files with 11 additions and 2 deletions
  1. +5
    -0
      hosts/hardcase/configuration.nix
  2. +6
    -2
      services/httpd/php-fpm.nix

+ 5
- 0
hosts/hardcase/configuration.nix View File

@@ -28,5 +28,10 @@ in {
hostName = "hardcase";
hostId = "0ae64a79";
defaultGateway = "192.168.0.254";

# Allow rainloop to connect to mail server over SSL
hosts = {
"192.168.0.26" = [ "mail.redbrick.dcu.ie" ];
};
} // (variables.bondConfig [ "eno1" "eno2" ] "192.168.0.158");
}

+ 6
- 2
services/httpd/php-fpm.nix View File

@@ -58,10 +58,14 @@ in {
(key: userGroup: nameValuePair ("phpfpm-rbusers-${key}") (service key userGroup))
(groupBy (user: builtins.substring 0 1 user.uid) allUsers);

services.phpfpm.pools.wwwrun = with builtins; {
services.phpfpm.pools.wwwrun = with builtins; let
user = "wwwrun";
group = "wwwrun";
in {
user = user;
group = user;
settings = {
"listen.owner" = user;
"listen.group" = user;
"pm" = "dynamic";
"pm.start_servers" = 5;
"pm.max_children" = 75;


Loading…
Cancel
Save