nginx
Options
Section titled “Options”services.nginx.enable
Section titled “services.nginx.enable”Whether to enable nginx.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.nginx.package
Section titled “services.nginx.package”The nginx package to use.
Type: package
Default:
pkgs.nginxDeclared by:
services.nginx.defaultMimeTypes
Section titled “services.nginx.defaultMimeTypes”Default MIME types for NGINX, as MIME types definitions from NGINX are very incomplete, we use by default the ones bundled in the mailcap package, used by most of the other Linux distributions.
Type: absolute path
Default:
${pkgs.mailcap}/etc/nginx/mime.typesExample:
${pkgs.nginx}/conf/mime.typesDeclared by:
services.nginx.eventsConfig
Section titled “services.nginx.eventsConfig”The nginx events configuration.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.nginx.httpConfig
Section titled “services.nginx.httpConfig”The nginx configuration.
Type: strings concatenated with “\n”
Default:
""Declared by:

