Feature request: specifying alternative domains.txt file #180

Closed
opened 2025-12-29 00:26:40 +01:00 by adam · 2 comments
Owner

Originally created by @aijanai on GitHub (Jan 2, 2017).

Hey,

first of all, thanks for this great script.

I have some domains on CloudFlare and others on Route53. This forces me to rotate the file domains.txt to use different hooks.

It would be nice if I could just specify as a parameter the right domains.txt file

Originally created by @aijanai on GitHub (Jan 2, 2017). Hey, first of all, thanks for this great script. I have some domains on CloudFlare and others on Route53. This forces me to rotate the file domains.txt to use different hooks. It would be nice if I could just specify as a parameter the right domains.txt file
adam closed this issue 2025-12-29 00:26:40 +01:00
Author
Owner

@lukas2511 commented on GitHub (Jan 6, 2017):

That is already implemented, see docs/examples/config:

# File containing the list of domains to request certificates for (default: $BASEDIR/domains.txt)
#DOMAINS_TXT="${BASEDIR}/domains.txt"

If you want to select by CLI parameter you could just add a second config file, sourcing everything from your original config and just changing DOMAINS_TXT, and then just specify the path to the alternative config file. e.g.:

source /etc/dehydrated/config
DOMAINS_TXT="/etc/dehydrated/domains_route53.txt"

Another option would be to call dehydrated using dehydrated -d your.domain -d www.your.domain to directly sign certain domains instead of using domains.txt for that.

@lukas2511 commented on GitHub (Jan 6, 2017): That is already implemented, see `docs/examples/config`: ``` # File containing the list of domains to request certificates for (default: $BASEDIR/domains.txt) #DOMAINS_TXT="${BASEDIR}/domains.txt" ``` If you want to select by CLI parameter you could just add a second config file, sourcing everything from your original config and just changing DOMAINS_TXT, and then just specify the path to the alternative config file. e.g.: ``` source /etc/dehydrated/config DOMAINS_TXT="/etc/dehydrated/domains_route53.txt" ``` Another option would be to call dehydrated using `dehydrated -d your.domain -d www.your.domain` to directly sign certain domains instead of using domains.txt for that.
Author
Owner

@aijanai commented on GitHub (Jan 6, 2017):

great, let's make it more visible in the client help :)

@aijanai commented on GitHub (Jan 6, 2017): great, let's make it more visible in the client help :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dehydrated#180