Add certificate retry, optional fallback and DNS propagation fix to App Gateway hosts

This commit is contained in:
Eduardo Silva
2026-11-18 17:33:44 -03:00
parent be7965512b
commit 77e046dc1f
11 changed files with 260 additions and 33 deletions
+6 -3
View File
@@ -9,9 +9,9 @@ from gatekeeper.models import GatekeeperGroup, AuthMethod, _unique_slug
RESERVED_APP_NAME = 'wireguard_webadmin'
CERTIFICATE_TYPE_CHOICES = (
('self_signed', _('Self-signed')),
('http_challenge', _('HTTP challenge')),
('dns_challenge', _('DNS challenge')),
('http_challenge', _('Trusted certificate (HTTP validation)')),
('dns_challenge', _('Trusted certificate (DNS validation)')),
('self_signed', _('Self-signed certificate')),
)
@@ -70,6 +70,9 @@ class ApplicationHost(models.Model):
dns_credential = models.ForeignKey(
DnsChallengeCredential, on_delete=models.PROTECT, null=True, blank=True, related_name='hosts'
)
certificate_fallback = models.BooleanField(default=True)
# Incremented to request a new ACME attempt; exported so every Caddy instance applies it
certificate_generation = models.PositiveIntegerField(default=0)
created = models.DateTimeField(auto_now_add=True)
updated = models.DateTimeField(auto_now=True)