+ services.phpApplication.apps.piedsjaloux_production = {
+ websiteEnv = "production";
+ httpdUser = config.services.httpd.Prod.user;
+ httpdGroup = config.services.httpd.Prod.group;
+ inherit (app) webRoot varDir;
+ varDirPaths = {
+ "tmp" = "0700";
+ };
+ inherit app;
+ serviceDeps = [ "mysql.service" ];
+ preStartActions = [
+ "./bin/console --env=${app.environment} cache:clear --no-warmup"
+ ];
+ phpOpenbasedir = [ "/tmp" ];
+ phpPool = {
+ "php_admin_value[upload_max_filesize]" = "20M";
+ "php_admin_value[post_max_size]" = "20M";
+ #"php_admin_flag[log_errors]" = "on";
+ "pm" = "dynamic";
+ "pm.max_children" = "20";
+ "pm.start_servers" = "2";
+ "pm.min_spare_servers" = "1";
+ "pm.max_spare_servers" = "3";
+ };
+ phpEnv = {
+ PATH = lib.makeBinPath [
+ pkgs.apg pkgs.unzip
+ # below ones don't need to be in the PATH but they’re used in
+ # secrets
+ pkgs.imagemagick texlive
+ ];
+ };
+ phpWatchFiles = [
+ app.secretsPath
+ ];
+ };