2017-11-16 18:21:02 +00:00
|
|
|
{ lib, ... }:
|
|
|
|
{ options = {
|
|
|
|
server = lib.mkOption {
|
|
|
|
type =
|
|
|
|
lib.types.either
|
|
|
|
(lib.types.submodule (import ./server-options.nix))
|
|
|
|
(lib.types.path);
|
|
|
|
example = {
|
|
|
|
host = "127.0.0.1";
|
|
|
|
port = 8888;
|
|
|
|
};
|
|
|
|
default = {
|
|
|
|
host = "127.0.0.1";
|
|
|
|
port = 80;
|
|
|
|
};
|
2022-08-05 18:39:00 +01:00
|
|
|
description = lib.mdDoc ''
|
2017-11-16 18:21:02 +00:00
|
|
|
Frontend server interface binding specification as either a
|
|
|
|
host:port pair or a unix domain docket.
|
|
|
|
|
|
|
|
NB: a host of "*" listens on all interfaces and includes IPv6
|
|
|
|
addresses.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
params = lib.mkOption {
|
|
|
|
type = lib.types.nullOr (lib.types.submodule (import ./frontend-params-submodule.nix));
|
|
|
|
example = {
|
|
|
|
tls = "tls";
|
|
|
|
};
|
|
|
|
default = null;
|
2022-08-05 18:39:00 +01:00
|
|
|
description = lib.mdDoc ''
|
2017-11-16 18:21:02 +00:00
|
|
|
Parameters to configure a backend.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|