diff options
author | Mathijs Kwik <mathijs@bluescreen303.nl> | 2014-06-07 17:34:27 +0200 |
---|---|---|
committer | Mathijs Kwik <mathijs@bluescreen303.nl> | 2014-06-16 22:44:18 +0200 |
commit | 35df71ac1df83f05bf58298245a014553330860e (patch) | |
tree | 7136d67394153b903202fd30ef9dc2ac04bdfd48 | |
parent | c585786c1fccaac001ef7e20227219e0aabef696 (diff) | |
download | nixlib-35df71ac1df83f05bf58298245a014553330860e.tar nixlib-35df71ac1df83f05bf58298245a014553330860e.tar.gz nixlib-35df71ac1df83f05bf58298245a014553330860e.tar.bz2 nixlib-35df71ac1df83f05bf58298245a014553330860e.tar.lz nixlib-35df71ac1df83f05bf58298245a014553330860e.tar.xz nixlib-35df71ac1df83f05bf58298245a014553330860e.tar.zst nixlib-35df71ac1df83f05bf58298245a014553330860e.zip |
phpfpm: add option for setting php.ini file
-rw-r--r-- | nixos/modules/services/web-servers/phpfpm.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/nixos/modules/services/web-servers/phpfpm.nix b/nixos/modules/services/web-servers/phpfpm.nix index 4a14f9b41a42..8551e3ccdeb2 100644 --- a/nixos/modules/services/web-servers/phpfpm.nix +++ b/nixos/modules/services/web-servers/phpfpm.nix @@ -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 { type = types.attrsOf types.lines; default = {}; @@ -75,7 +81,7 @@ in { mkdir -p "${stateDir}" ''; serviceConfig = { - ExecStart = "${cfg.phpPackage}/sbin/php-fpm -y ${cfgFile}"; + ExecStart = "${cfg.phpPackage}/sbin/php-fpm -y ${cfgFile} -c ${cfg.phpIni}"; PIDFile = pidFile; }; }; |