Varnish
services.varnish.config
Verbatim default.vcl configuration.
Type: strings concatenated with "\n"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-servers/varnish/default.nix
services.varnish.enable
Whether to enable Varnish Server.
Type: boolean
Default
false
Example
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-servers/varnish/default.nix
services.varnish.enableConfigCheck
Whether to enable checking the config during build time.
Type: boolean
Default
true
Example
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-servers/varnish/default.nix
services.varnish.extraCommandLine
Command line switches for varnishd (run 'varnishd -?' to get list of options)
Type: string
Default
""
Example
"-s malloc,256M"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-servers/varnish/default.nix
services.varnish.extraModules
Varnish modules (except 'std').
Type: list of package
Default
[ ]
Example
[ pkgs.varnishPackages.geoip ]
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-servers/varnish/default.nix
services.varnish.http_address
HTTP listen address and port.
Type: string
Default
"*:6081"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-servers/varnish/default.nix
services.varnish.package
The varnish package to use.
Type: package
Default
pkgs.varnish
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-servers/varnish/default.nix
services.varnish.stateDir
Directory holding all state for Varnish to run.
Type: path
Default
"/var/spool/varnish/${config.networking.hostName}"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-servers/varnish/default.nix