mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-infect.git
synced 2025-01-15 13:26:38 +00:00
feat: Add support for staging ACME
This commit is contained in:
parent
ccb337f6d4
commit
389e23a161
|
@ -11,6 +11,10 @@ makeConf() {
|
|||
export PASSWORD=$(printf $ENCODED_PASSWORD | base64 --decode)
|
||||
fi
|
||||
|
||||
if [[ $STAGING_ACME == null ]]; then
|
||||
export STAGING_ACME='false'
|
||||
fi
|
||||
|
||||
export ESCAPED_PASSWORD=$(printf $ENCODED_PASSWORD | base64 --decode | jq -Rs .)
|
||||
export HASHED_PASSWORD=$( mkpasswd -m sha-512 "$PASSWORD" )
|
||||
|
||||
|
@ -47,7 +51,8 @@ makeConf() {
|
|||
},
|
||||
"dns": {
|
||||
"provider": "CLOUDFLARE",
|
||||
"apiKey": "$CF_TOKEN"
|
||||
"apiKey": "$CF_TOKEN",
|
||||
"useStagingACME": $STAGING_ACME
|
||||
},
|
||||
"server": {
|
||||
"provider": "DIGITALOCEAN"
|
||||
|
|
Loading…
Reference in a new issue