diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2020-03-15 12:03:57 +0100 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2020-03-15 12:05:32 +0100 |
commit | b420e6deb96e0760f12e3d941b76e690c4235e47 (patch) | |
tree | b8d84b725bb10a3d5d1c60359a076dc97f2d5070 /doc/guix.texi | |
parent | 995b391013aa61c6e7d8d6b89d822542e155286b (diff) | |
download | patches-b420e6deb96e0760f12e3d941b76e690c4235e47.tar patches-b420e6deb96e0760f12e3d941b76e690c4235e47.tar.gz |
services/web: nginx-configuration: Add support for global directives.
* gnu/services/web.scm (<nginx-configuration>)[global-directives]: Add field.
(emit-global-directive): New procedure.
(default-nginx-config): Use it.
* doc/guix.texi (Web Services): Document it.
Diffstat (limited to 'doc/guix.texi')
-rw-r--r-- | doc/guix.texi | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index 4658c6f5eb..28808b0cd5 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -20272,6 +20272,17 @@ names of loadable modules, as in this example: /etc/nginx/modules/ngx_http_accept_language_module.so"))) @end lisp +@item @code{global-directives} (default: @code{'()}) +Association list of global directives for the top level of the nginx +configuration. Values may themselves be association lists. + +@lisp +(global-directives + `((worker_processes . 16) + (pcre_jit . on) + (events . ((worker_connections . 1024))))) +@end lisp + @item @code{extra-content} (default: @code{""}) Extra content for the @code{http} block. Should be string or a string valued G-expression. |