Defines a group of servers to use as proxy target.
Declarations
Type
attribute set of (submodule)
Default
{ }
Example
{
backend = {
extraConfig = ''
keepalive 16;
'';
servers = {
"backend1.example.com:8080" = {
weight = 5;
};
"backend2.example.com" = {
fail_timeout = "30s";
max_fails = 3;
};
"backend3.example.com" = { };
"backup1.example.com" = {
backup = true;
};
"backup2.example.com" = {
backup = true;
};
};
};
memcached = {
servers = {
"unix:/run/memcached/memcached.sock" = { };
};
};
}