Skip to content

Nginx

Configuration options for nginx.

Available Options

This page documents 5 configuration options.

nixflix.nginx.enable

Whether to enable nginx reverse proxy for all services

Typeboolean
Default
false

nixflix.nginx.addHostsEntries

Whether to add networking.hosts entries mapping service subdomains to 127.0.0.1.

Enable if you don't have a separate DNS setup.

Typeboolean
Default
false

nixflix.nginx.domain

Base domain for subdomain-based reverse proxy routing. Each service is accessible at <subdomain>.<domain>.

Typestring
Default
"nixflix"
Example
"internal"

nixflix.nginx.enableACME

Whether to enable useACMEHost in virtual hosts. Uses nixflix.nginx.domain as ACME host.

You have to configure security.acme.certs.$${nixflix.nginx.domain} in order to use this.

Typeboolean
Default
false
Example
true

nixflix.nginx.forceSSL

Whether to force SSL.

Typeboolean
Default
false
Example
true