Closed RinkAttendant6 closed 1 year ago
In the docs there is an option to use certalias in domains.txt like this example.net example.org > certalias https://github.com/dehydrated-io/dehydrated/blob/v0.7.1/docs/examples/domains.txt#L13
example.net example.org > certalias
It would be nice for the certalias value to be passed to the deploy_cert (and maybe unchanged_cert) hooks.
certalias
deploy_cert
unchanged_cert
My current workaround works to some extent, but it will get the CERTDIR if there was no alias:
# bash local CERTALIAS = basename "$(dirname "${3}")"
// JavaScript const CERTALIAS = path.basename(path.dirname(process.argv[3]))
I suppose that I can mitigate this in my case by adding some kind of validation/lint script to ensure all entries in domains.txt have an alias.
In the bigger picture, I'm using the certalias values to determine where the files are supposed to be deployed to.
There is an alias environment variable that should be accessible in the hook scripts. In cases where no alias is defined it's content will be the default name (first domain).
alias
In the docs there is an option to use certalias in domains.txt like this
example.net example.org > certalias
https://github.com/dehydrated-io/dehydrated/blob/v0.7.1/docs/examples/domains.txt#L13It would be nice for the
certalias
value to be passed to thedeploy_cert
(and maybeunchanged_cert
) hooks.My current workaround works to some extent, but it will get the CERTDIR if there was no alias:
I suppose that I can mitigate this in my case by adding some kind of validation/lint script to ensure all entries in domains.txt have an alias.
In the bigger picture, I'm using the certalias values to determine where the files are supposed to be deployed to.