-
Ciphers to choose from when negotiating TLS handshakes.
Type
null or string
Default
"ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-CHACHA20-POLY1305"
Declarations
-
Whether to enable Global rate limiting.
Type
boolean
Default
false
Example
true
Declarations
-
Whether to enable FC-customized nginx.
Type
boolean
Default
false
Example
true
Declarations
-
Adds try_files directive.
Type
null or string
Default
null
Example
"$uri =404"
Declarations
-
HTTP status used by globalRedirect
and forceSSL
. Possible usecases
include temporary (302, 307) redirects, keeping the request method and
body (307, 308), or explicitly resetting the method to GET (303).
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Redirections.
Type
integer between 300 and 399 (both inclusive)
Default
301
Example
308
Declarations
-
Additional names of virtual hosts served by this virtual host configuration.
Type
list of string
Default
[ ]
Example
[
"www.example.org"
"example.org"
]
Declarations
-
Sets the maximum number of requests per second per client.
Type
positive integer, meaning >0
Default
50
Declarations
-
Alias directory for requests.
Type
null or path
Default
null
Example
"/your/alias/directory"
Declarations
-
Basic Auth protection for a vhost.
WARNING: This is implemented to store the password in plain text in the
Nix store.
Type
attribute set of string
Default
{ }
Example
{
user = "password";
};
Declarations
-
Root directory for requests.
Type
null or path
Default
null
Example
"/your/root/directory"
Declarations
-
Name of this virtual host. Defaults to attribute name in virtualHosts.
Type
null or string
Default
null
Example
"example.org"
Declarations
-
Whether to enable the QUIC transport protocol.
This requires using pkgs.nginxQuic
package
which can be achieved by setting services.nginx.package = pkgs.nginxQuic;
.
Note that QUIC support is experimental and
not yet recommended for production.
Read more at https://quic.nginx.org/
Type
boolean
Default
false
Declarations
-
Adds index directive.
Type
null or string
Default
null
Example
"index.php index.html"
Declarations
-
Declarative location config
Type
attribute set of (submodule)
Default
{ }
Example
{
"/" = {
proxyPass = "http://localhost:3000";
};
};
Declarations
-
Configuration lines to be appended inside of the http {} block.
Type
strings concatenated with "\n"
Default
""
Declarations