Is it possible to configure multiple wildcard domains in a SWAG docker-compose config ?
ie. domain1.com, domain2.net and domain3.gov
- URL=domain1.com, domain2.net,domain3.gov
- SUBDOMAINS=wildcard
- EXTRA DOMAINS=
- VALIDATION=dns
- DNSPLUGIN=rfc2136
Is it possible to configure multiple wildcard domains in a SWAG docker-compose config ?
ie. domain1.com, domain2.net and domain3.gov
Yes, read about EXTRA_DOMAINS
in the readme.
It should thus be as simple as:
compose config:
URL=domain1.com
SUBDOMAINS=wildcard
EXTRA DOMAINS=*.domain2.net,*domain3.gov
VALIDATION=dns
DNSPLUGIN=rfc2136
with rfc2136.ini
dns_rfc2136_server = 10.0.0.1
dns_rfc2136_port = 53
dns_rfc2136_name = domain1.com
dns_rfc2136_secret = 7EQ==
dns_rfc2136_name = domain2.net
dns_rfc2136_secret = m4F==
dns_rfc2136_name = domain3.gov
dns_rfc2136_secret = Ane==
dns_rfc2136_algorithm = HMAC-SHA512
Yet I’m stuck at:
Error parsing credentials configuration '/config/dns-conf/rfc2136.ini': Parsing failed with several errors.
First error at line 11.
Line 11 being where the next dns_rfc2136_secret is at
You probably have an invalid character at line 11, I can’t see it since you redacted the value.
Also, I don’t think the ini files support multiple settings like that unless specified otherwise, you need to create a singe key for all domains.
Okay,
So the rfc2136.ini config specifying the name & key pair to multiple domains in the same file is correct.
I’ve removed all comments and spaces. Applied new RETURNS after each line and used only the delete key for the follow info:
dns_rfc2136_server=10.0.0.1
dns_rfc2136_port=53
dns_rfc2136_name=domain1.com
dns_rfc2136_secret=7EQ==
dns_rfc2136_algorithm=HMAC-SHA512
dns_rfc2136_name=domain2.net
dns_rfc2136_secret=m4F==
dns_rfc2136_algorithm=HMAC-SHA512
dns_rfc2136_name=domain3.gov
dns_rfc2136_secret=Ane==
dns_rfc2136_algorithm=HMAC-SHA512
Yet, I still get the dreaded parsing issue: “Error parsing credentials configuration ‘/config/dns-conf/rfc2136.ini’: Parsing failed with several errors.
First error at line 6.”
Cutting even more out:
dns_rfc2136_server=10.0.0.1
dns_rfc2136_port=53
dns_rfc2136_name=domain1.com
dns_rfc2136_secret=7EQ==
dns_rfc2136_name=domain2.net
dns_rfc2136_secret=m4F==
dns_rfc2136_name=domain3.gov
dns_rfc2136_secret=Ane==
dns_rfc2136_algorithm=HMAC-SHA512
Error parsing credentials configuration ‘/config/dns-conf/rfc2136.ini’: Parsing failed with several errors.
First error at line 5.
Sorry, I misread that in the moment. Would this be a valid feature request ? …
No, there is no plans to add it.
Would it be a valid feature request, or has it already been ruled against ? …
If you get it working feel free to submit a PR, we have no plans to do this ourselves