Added hydra proxy

This commit is contained in:
Alejandro Angulo 2024-05-03 19:57:00 -07:00
parent 2df64ddea0
commit 63c776c238
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
12 changed files with 143 additions and 26 deletions

View file

@ -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)];
};
};
};