Added hydra proxy
This commit is contained in:
parent
2df64ddea0
commit
63c776c238
12 changed files with 143 additions and 26 deletions
|
@ -23,6 +23,11 @@ in {
|
|||
type = str;
|
||||
description = "The domain to request a wildcard cert for.";
|
||||
};
|
||||
isWildcard = mkOption {
|
||||
type = bool;
|
||||
default = true;
|
||||
description = "Whether or not to request a wildcard cert.";
|
||||
};
|
||||
dnsCredentialsFile = mkOption {
|
||||
type = path;
|
||||
description = "The path to the credentials file for the DNS provider.";
|
||||
|
@ -49,7 +54,7 @@ in {
|
|||
# own DNS to make `lego` happy (will resolve names to a public IP).
|
||||
dnsResolver = "1.1.1.1:53";
|
||||
credentialsFile = cfg.dnsCredentialsFile;
|
||||
extraDomainNames = [("*." + cfg.domainName)];
|
||||
extraDomainNames = mkIf cfg.isWildcard [("*." + cfg.domainName)];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue