mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-11 22:30:44 +01:00
Feature suggestion: couple per-domain configuration with domains.txt #196
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jbergstroem on GitHub (Feb 14, 2017).
Need to dig into the oneliner for parsing
domains.txt; but I'd like to add a way to set per-domain specific configuration bundled as part of the same source (instead of having it stored with the certificates). This way, things like #354 would be very powerful -- one can read it from a database or whatever source.The idea is to do something in style with bash env variables;
Thoughts?
@lukas2511 commented on GitHub (Feb 14, 2017):
I'd like this too but I didn't really find a nice way to do this. It would be possible to split the line at a predefined marker (like
bar.com foo.bar.com | CHALLENGETYPE=dns-01) and just execute that, but I really don't want to add even more ugly config parsing code... the current "parser" is ugly enough for one bash script...For now you can partly solve this with a small wrapper script which sets the parameters, like this one:
You could easily make a few helper functions to make it a bit more readable, maybe something like this (untested):
I want to put a bit more work into command line options since they make the script really powerful, especially in combination with automation tools like Ansible and Puppet, but even with small wrapper scripts like the examples above.
@jbergstroem commented on GitHub (Feb 14, 2017):
Thanks for your quick reply. I agree with all you said and are personally fighting with arguments against why two different configs isn't a better solution.
I guess a major version bump could introduce a new config format making things like this easier.
@jbergstroem commented on GitHub (Feb 22, 2017):
Going to close this. Splitting domains up in your cronjob is clearly a better approach.