- systemd.services.phpfpm-chloe_prod.after = lib.mkAfter chloe.phpFpm.serviceDeps;
- systemd.services.phpfpm-chloe_prod.wants = chloe.phpFpm.serviceDeps;
- services.phpfpm.pools.chloe_prod = {
- listen = chloe.phpFpm.socket;
- extraConfig = chloe.phpFpm.pool;
+ systemd.services.phpfpm-chloe_production.after = lib.mkAfter [ "mysql.service" ];
+ systemd.services.phpfpm-chloe_production.wants = [ "mysql.service" ];
+ services.phpfpm.pools.chloe_production = {
+ user = config.services.httpd.Prod.user;
+ group = config.services.httpd.Prod.group;
+ settings = {
+ "listen.owner" = apacheUser;
+ "listen.group" = apacheGroup;
+ "php_admin_value[upload_max_filesize]" = "20M";
+ "php_admin_value[post_max_size]" = "20M";
+ # "php_admin_flag[log_errors]" = "on";
+ "php_admin_value[open_basedir]" = "${app.spipConfig}:${./config}:${app}:${app.varDir}:/tmp";
+ "php_admin_value[session.save_path]" = "${app.varDir}/phpSessions";
+ "pm" = "dynamic";
+ "pm.max_children" = "20";
+ "pm.start_servers" = "2";
+ "pm.min_spare_servers" = "1";
+ "pm.max_spare_servers" = "3";
+ };