feat: Disable wildcard certificates
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
PapaTutuWawa 2024-01-06 15:06:38 +01:00
parent 493758f56f
commit e834da3727

View File

@ -43,20 +43,22 @@ func unlockDomain(domain string) {
}
func buildDomainList(domain, pagesDomain string) []string {
if domain == pagesDomain || strings.HasSuffix(domain, pagesDomain) {
// TODO: For wildcards, we MUST use DNS01
/*if domain == pagesDomain || strings.HasSuffix(domain, pagesDomain) {
return []string{
pagesDomain,
"*." + pagesDomain,
}
}
}*/
return []string{domain}
}
func getDomainKey(domain, pagesDomain string) string {
if domain == pagesDomain || strings.HasSuffix(domain, pagesDomain) {
// TODO: For wildcards, we MUST use DNS01
/*if domain == pagesDomain || strings.HasSuffix(domain, pagesDomain) {
return "*." + pagesDomain
}
}*/
return domain
}