phpfpm: add option for setting php.ini file
This commit is contained in:
parent
c585786c1f
commit
35df71ac1d
|
@ -42,6 +42,12 @@ in {
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
phpIni = mkOption {
|
||||||
|
type = types.path;
|
||||||
|
default = "${cfg.phpPackage}/etc/php-recommended.ini";
|
||||||
|
description = "php.ini file to use.";
|
||||||
|
};
|
||||||
|
|
||||||
poolConfigs = mkOption {
|
poolConfigs = mkOption {
|
||||||
type = types.attrsOf types.lines;
|
type = types.attrsOf types.lines;
|
||||||
default = {};
|
default = {};
|
||||||
|
@ -75,7 +81,7 @@ in {
|
||||||
mkdir -p "${stateDir}"
|
mkdir -p "${stateDir}"
|
||||||
'';
|
'';
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "${cfg.phpPackage}/sbin/php-fpm -y ${cfgFile}";
|
ExecStart = "${cfg.phpPackage}/sbin/php-fpm -y ${cfgFile} -c ${cfg.phpIni}";
|
||||||
PIDFile = pidFile;
|
PIDFile = pidFile;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue