-
Whether to enable Vinyl-cache Cache.
Type
boolean
Default
false
Example
true
Declarations
-
This option has no description.
Type
strings concatenated with " "
Default
""
Declarations
-
This option has no description.
Type
attribute set of (submodule)
Default
{ }
Declarations
-
This config triggers when no condition of another virtual host is met.
Its contents are appended to the config file.
Type
strings concatenated with "\n"
Default
''
vcl 4.0;
import std;
backend default {
.host = "0.0.0.0";
.port = "80";
}
sub vcl_recv {
return (synth(503, "Internal Error"));
}
''
Declarations
-
Addresses Vinyl Cache should listen on.
Unix sockets can technically be used for Vinyl Cache, but are not currently supported on the FCIO platform due to monitoring constraints.
Type
list of (submodule)
Default
[
{
address = "*";
port = 8008;
}
]
Declarations
-
The varnish package to use.
Type
package
Default
pkgs.varnish
Declarations
-
If given an IP address, it can be a host name ("localhost"), an IPv4 dotted-quad
("127.0.0.1") or an IPv6 address enclosed in square brackets ("[::1]").
(VCL4.1 and higher) If given an absolute Path ("/path/to/listen.sock") or "@"
followed by the name of an abstract socket ("@myvinyld") accept connections
on a Unix domain socket.
The user, group and mode sub-arguments may be used to specify the permissions
of the socket file. These sub-arguments do not apply to abstract sockets.
Type
string
Declarations
- /nix/store/pmwimnqn5rnzsy26hjbk64k1i7q5yryy-nixpkgs-aa532a30bc9/nixos/modules/services/web-servers/vinyl-cache/default.nix
-
PROTO can be 'HTTP' (the default) or 'PROXY'. Both version 1 and 2 of the proxy protocol can be used.
Type
one of "HTTP", "PROXY"
Default
"HTTP"
Declarations
- /nix/store/pmwimnqn5rnzsy26hjbk64k1i7q5yryy-nixpkgs-aa532a30bc9/nixos/modules/services/web-servers/vinyl-cache/default.nix
-
The port to use for IP sockets. If port is not specified, port 80 (http) is used.
Type
null or 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default
null
Declarations
- /nix/store/pmwimnqn5rnzsy26hjbk64k1i7q5yryy-nixpkgs-aa532a30bc9/nixos/modules/services/web-servers/vinyl-cache/default.nix
-
Permission of the socket file (3-digit octal value).
Type
null or string
Default
null
Declarations
- /nix/store/pmwimnqn5rnzsy26hjbk64k1i7q5yryy-nixpkgs-aa532a30bc9/nixos/modules/services/web-servers/vinyl-cache/default.nix
-
This option has no description.
Type
string
Default
"‹name›"
Declarations
-
User name who owns the socket file.
Type
null or string
Default
null
Declarations
- /nix/store/pmwimnqn5rnzsy26hjbk64k1i7q5yryy-nixpkgs-aa532a30bc9/nixos/modules/services/web-servers/vinyl-cache/default.nix
-
Name is referenced in logs. If name is not specified, 'a0', 'a1', etc. is used.
Type
null or string
Default
null
Declarations
- /nix/store/pmwimnqn5rnzsy26hjbk64k1i7q5yryy-nixpkgs-aa532a30bc9/nixos/modules/services/web-servers/vinyl-cache/default.nix
-
This option has no description.
Type
strings concatenated with "\n"
Declarations
-
This option has no description.
Type
string
Default
"req.http.Host == \"‹name›\""
Declarations