nginx module: improve documentation
This commit is contained in:
parent
de8008a1b1
commit
5dd7cf964a
@ -235,7 +235,7 @@ in
|
|||||||
sslDhparam = mkOption {
|
sslDhparam = mkOption {
|
||||||
type = types.nullOr types.path;
|
type = types.nullOr types.path;
|
||||||
default = null;
|
default = null;
|
||||||
example = literalExample "/path/to/dhparams.pem";
|
example = "/path/to/dhparams.pem";
|
||||||
description = "Path to DH parameters file.";
|
description = "Path to DH parameters file.";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -246,9 +246,18 @@ in
|
|||||||
default = {
|
default = {
|
||||||
localhost = {};
|
localhost = {};
|
||||||
};
|
};
|
||||||
example = [];
|
example = literalExample ''
|
||||||
description = ''
|
{
|
||||||
|
"hydra.example.com" = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://localhost:3000";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
'';
|
'';
|
||||||
|
description = "Declarative vhost config";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -21,7 +21,7 @@ with lib;
|
|||||||
type = types.nullOr types.int;
|
type = types.nullOr types.int;
|
||||||
default = null;
|
default = null;
|
||||||
description = ''
|
description = ''
|
||||||
Port for the server. 80 for http
|
Port for the server. Defaults to 80 for http
|
||||||
and 443 for https (i.e. when enableSSL is set).
|
and 443 for https (i.e. when enableSSL is set).
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
@ -109,7 +109,17 @@ with lib;
|
|||||||
basicAuth = mkOption {
|
basicAuth = mkOption {
|
||||||
type = types.attrsOf types.str;
|
type = types.attrsOf types.str;
|
||||||
default = {};
|
default = {};
|
||||||
description = "user = password";
|
example = literalExample ''
|
||||||
|
{
|
||||||
|
user = "password";
|
||||||
|
};
|
||||||
|
'';
|
||||||
|
description = ''
|
||||||
|
Basic Auth protection for a vhost.
|
||||||
|
|
||||||
|
WARNING: This is implemented to store the password in plain text in the
|
||||||
|
nix store.
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
locations = mkOption {
|
locations = mkOption {
|
||||||
@ -117,9 +127,14 @@ with lib;
|
|||||||
inherit lib;
|
inherit lib;
|
||||||
}));
|
}));
|
||||||
default = {};
|
default = {};
|
||||||
example = {};
|
example = literalExample ''
|
||||||
description = ''
|
{
|
||||||
|
"/" = {
|
||||||
|
proxyPass = "http://localhost:3000";
|
||||||
|
};
|
||||||
|
};
|
||||||
'';
|
'';
|
||||||
|
description = "Declarative location config";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user