-
Whether to enable FC-customized nginx.
Type
boolean
Default
false
Example
true
-
Addresses to listen on if a vhost does not specify any.
Type
list of string
Default
"addresses of the `fe` network (IPv4 & IPv6)"
Example
-
Configures a timeout (seconds) for a graceful shutdown of worker processes.
When the time expires, nginx will try to close all the connections currently
open to facilitate shutdown.
By default, nginx will try to close connections 4 minutes after a reload.
Type
signed integer
Default
240
Example
-
Declarative vhost config
Type
attribute set of (submodule)
Default
{ }
Example
{
"hydra.example.com" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:3000";
};
};
};
-
Configures a separate access and error log in the /var/log/nginx
directory for each virtualHost.
Type
boolean
Default
true
Example
-
Configuration lines to be appended inside of the http {} block.
Type
strings concatenated with "\n"
Default
""
Example
-
Configures how often log files are rotated before being removed.
If count is 0, old versions are removed rather than rotated.
Type
signed integer
Default
7
Example
-
Whether to enable Global rate limiting.
Type
boolean
Default
false
Example
true
-
Sets the maximum number of concurrent requests per client.
Type
positive integer, meaning >0
Default
200
Example
-
Sets the maximum number of requests per second per client.
Type
positive integer, meaning >0
Default
50
Example
-
Sets the maximum number of requests to delay/queue if exceeding the rate limit.
Type
positive integer, meaning >0
Default
500
Example
-
Makes this vhost the default.
Type
boolean
Default
false
Example
-
Set the contact address for Let's Encrypt (certificate expiry, policy changes).
Defaults to none.
Type
null or string
Default
null
Example
-
IPv6 address to listen on.
If neither <option>listenAddress</option> nor <option>listenAddress6</option> is set,
the service listens on the frontend addresses.
If you need more options, use <option>listen</option>.
If you want to configure any number of IPs use <literal>listenAddresses</literal>.
Type
null or string
Default
null
Example
-
If set, all requests for this host are redirected permanently to
the given hostname.
Type
null or string
Default
null
Example
"newserver.example.org"