[acme.sh] Add pre-defined `.acmeenv`

This commit is contained in:
Alex Thomassen 2021-01-25 13:46:25 +01:00
parent 138e33f054
commit 854b06b9e7
Signed by: Alex
GPG Key ID: 10BD786B5F6FF5DE
2 changed files with 10 additions and 0 deletions

4
.acmeenv Normal file
View File

@ -0,0 +1,4 @@
. "/root/.acme.sh/acme.sh.env"
export CF_Account_ID=""
export CF_Token=""

View File

@ -16,6 +16,12 @@ chmod -R 600 $SSL_BASE
# Now the fun starts
# I have bash scripts that interact with acme.sh
# But I use zsh as the main shell
# Therefore I need a shared "environment file" that loads acme.sh
# And related environment variables
curl -L "$GIST/.acmeenv" > "/root/.acmeenv"
# Get the alias config for Let's Encrypt challenges:
curl -L "$GIST/letsencrypt.conf" > "$NGINX/letsencrypt.conf"