From 866092282fee4582bb9a33edb4ea25da58dd5b1f Mon Sep 17 00:00:00 2001 From: Florian Ritterhoff Date: Wed, 10 Jul 2024 16:55:59 +0200 Subject: [PATCH] feat: add functionality to allow resolver setting --- main.go | 1 + types.go | 1 + 2 files changed, 2 insertions(+) diff --git a/main.go b/main.go index 1882a9a7..21043f4d 100644 --- a/main.go +++ b/main.go @@ -198,6 +198,7 @@ func setupAcme(dnsservers []*DNSServer) *certmagic.Config { Agreed: true, DNS01Solver: &certmagic.DNS01Solver{DNSManager: certmagic.DNSManager{ DNSProvider: &provider, + Resolvers: Config.General.Resolvers, }}, DisableHTTPChallenge: true, DisableTLSALPNChallenge: true, diff --git a/types.go b/types.go index f99b84d1..b31bd48a 100644 --- a/types.go +++ b/types.go @@ -30,6 +30,7 @@ type general struct { Nsadmin string Debug bool StaticRecords []string `toml:"records"` + Resolvers []string `toml:"resolvers"` } type dbsettings struct {