Mode to apply to the vardir
'';
};
- phpSession = mkOption {
- type = bool;
- default = true;
- description = "Handle phpsession files separately in vardir";
- };
phpListen = mkOption {
type = nullOr str;
default = null;
"listen.group" = icfg.httpdGroup;
"php_admin_value[open_basedir]" = builtins.concatStringsSep ":" ([icfg.app icfg.varDir] ++ icfg.phpWatchFiles ++ icfg.phpOpenbasedir);
}
- // optionalAttrs (icfg.phpSession) { "php_admin_value[session.save_path]" = "${icfg.varDir}/phpSessions"; }
// icfg.phpPool;
phpOptions = config.services.phpfpm.phpOptions + icfg.phpOptions;
inherit (icfg) phpEnv phpPackage;
deps = [];
text = optionalString (!isNull icfg.varDir) ''
install -m ${icfg.mode} -o ${icfg.httpdUser} -g ${icfg.httpdGroup} -d ${icfg.varDir}
- '' + optionalString (icfg.phpSession) ''
- install -m 0700 -o ${icfg.httpdUser} -g ${icfg.httpdGroup} -d ${icfg.varDir}/phpSessions
'' + builtins.concatStringsSep "\n" (attrsets.mapAttrsToList (n: v: ''
install -m ${v} -o ${icfg.httpdUser} -g ${icfg.httpdGroup} -d ${icfg.varDir}/${n}
'') icfg.varDirPaths);