[WIP] Added DNS-01 challange support #257
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I'm a very rookie with bash, so this PR can't be really called production ready.
For now it works by passing in the environment variables required for each supported DNS provider.
Known issues:
dokku config:set <app> DOKKU_LETSENCRYPT_LEGO_ENV_VARS="MY_SECRET=214;MY_OTHER_SECRET=sdfdsf"
to make the dns challange work.DOKKU_LETSENCRYPT_CHALLANGE_MODE
todns
but if you don't setDOKKU_LETSENCRYPT_DNS_PROVIDER
the script won't notify you that you are doing something wrong.More info about env vars here; https://go-acme.github.io/lego/dns/
Added new env vars for the plugin's configuration:
DOKKU_LETSENCRYPT_CHALLANGE_MODE
http
anddns
.DOKKU_LETSENCRYPT_DNS_PROVIDER
DOKKU_LETSENCRYPT_CHALLANGE_MODE
isdns
.DOKKU_LETSENCRYPT_LEGO_ENV_VARS
I'm opening this here in hope that the community will pitch in some ideas for solving the issues described above. 😸