diff options
author | Eric Sagnes <eric.sagnes@gmail.com> | 2016-09-27 10:20:22 +0900 |
---|---|---|
committer | Eric Sagnes <eric.sagnes@gmail.com> | 2016-09-27 10:20:22 +0900 |
commit | b14ecbb96f4ca6a1f89b703b9f28c87ed557e6fc (patch) | |
tree | ea2bd8eb9151d4b0e9da7e9c39db49b6cc0d6d0a /nixos | |
parent | cdec20ac58325af1f606a59413d5a31fc839c8d4 (diff) | |
download | nixlib-b14ecbb96f4ca6a1f89b703b9f28c87ed557e6fc.tar nixlib-b14ecbb96f4ca6a1f89b703b9f28c87ed557e6fc.tar.gz nixlib-b14ecbb96f4ca6a1f89b703b9f28c87ed557e6fc.tar.bz2 nixlib-b14ecbb96f4ca6a1f89b703b9f28c87ed557e6fc.tar.lz nixlib-b14ecbb96f4ca6a1f89b703b9f28c87ed557e6fc.tar.xz nixlib-b14ecbb96f4ca6a1f89b703b9f28c87ed557e6fc.tar.zst nixlib-b14ecbb96f4ca6a1f89b703b9f28c87ed557e6fc.zip |
php-fpm module: cleanup
- Added example for the pool option - Unified PHP-FPM spelling
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/web-servers/phpfpm/default.nix | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/nixos/modules/services/web-servers/phpfpm/default.nix b/nixos/modules/services/web-servers/phpfpm/default.nix index 29cfbb8e9a08..a3a23b222fbb 100644 --- a/nixos/modules/services/web-servers/phpfpm/default.nix +++ b/nixos/modules/services/web-servers/phpfpm/default.nix @@ -42,7 +42,7 @@ in { default = ""; description = '' Extra configuration that should be put in the global section of - the PHP FPM configuration file. Do not specify the options + the PHP-FPM configuration file. Do not specify the options <literal>pid</literal>, <literal>error_log</literal> or <literal>daemonize</literal> here, since they are generated by NixOS. @@ -54,7 +54,7 @@ in { default = pkgs.php; defaultText = "pkgs.php"; description = '' - The PHP package to use for running the FPM service. + The PHP package to use for running the PHP-FPM service. ''; }; @@ -86,7 +86,7 @@ in { } ''; description = '' - A mapping between PHP FPM pool names and their configurations. + A mapping between PHP-FPM pool names and their configurations. See the documentation on <literal>php-fpm.conf</literal> for details on configuration directives. If no pools are defined, the phpfpm service is disabled. @@ -98,8 +98,24 @@ in { inherit lib; })); default = {}; + example = literalExample '' + { + mypool = { + listen = "/path/to/unix/socket"; + extraConfig = ''' + user = nobody + pm = dynamic + pm.max_children = 75 + pm.start_servers = 10 + pm.min_spare_servers = 5 + pm.max_spare_servers = 20 + pm.max_requests = 500 + '''; + } + }''; description = '' - If no pools are defined, the phpfpm service is disabled. + PHP-FPM pools. If no pools or poolConfigs are defined, the PHP-FPM + service is disabled. ''; }; }; |