mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 14:57:28 +03:00
Merge pull request #99948 from jsimonetti/acme-dnsresolver
nixos/security/acme: Add DNS resolver option
This commit is contained in:
commit
9cc924a12a
@ -110,6 +110,7 @@ let
|
|||||||
protocolOpts = if useDns then (
|
protocolOpts = if useDns then (
|
||||||
[ "--dns" data.dnsProvider ]
|
[ "--dns" data.dnsProvider ]
|
||||||
++ optionals (!data.dnsPropagationCheck) [ "--dns.disable-cp" ]
|
++ optionals (!data.dnsPropagationCheck) [ "--dns.disable-cp" ]
|
||||||
|
++ optionals (data.dnsResolver != null) [ "--dns.resolvers" data.dnsResolver ]
|
||||||
) else (
|
) else (
|
||||||
[ "--http" "--http.webroot" data.webroot ]
|
[ "--http" "--http.webroot" data.webroot ]
|
||||||
);
|
);
|
||||||
@ -403,6 +404,17 @@ let
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
dnsResolver = mkOption {
|
||||||
|
type = types.nullOr types.str;
|
||||||
|
default = null;
|
||||||
|
example = "1.1.1.1:53";
|
||||||
|
description = ''
|
||||||
|
Set the resolver to use for performing recursive DNS queries. Supported:
|
||||||
|
host:port. The default is to use the system resolvers, or Google's DNS
|
||||||
|
resolvers if the system's cannot be determined.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
credentialsFile = mkOption {
|
credentialsFile = mkOption {
|
||||||
type = types.path;
|
type = types.path;
|
||||||
description = ''
|
description = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user