mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-infect.git
synced 2025-01-15 21:36:36 +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)
|
export PASSWORD=$(printf $ENCODED_PASSWORD | base64 --decode)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $STAGING_ACME == null ]]; then
|
||||||
|
export STAGING_ACME='false'
|
||||||
|
fi
|
||||||
|
|
||||||
export ESCAPED_PASSWORD=$(printf $ENCODED_PASSWORD | base64 --decode | jq -Rs .)
|
export ESCAPED_PASSWORD=$(printf $ENCODED_PASSWORD | base64 --decode | jq -Rs .)
|
||||||
export HASHED_PASSWORD=$( mkpasswd -m sha-512 "$PASSWORD" )
|
export HASHED_PASSWORD=$( mkpasswd -m sha-512 "$PASSWORD" )
|
||||||
|
|
||||||
|
@ -47,7 +51,8 @@ makeConf() {
|
||||||
},
|
},
|
||||||
"dns": {
|
"dns": {
|
||||||
"provider": "CLOUDFLARE",
|
"provider": "CLOUDFLARE",
|
||||||
"apiKey": "$CF_TOKEN"
|
"apiKey": "$CF_TOKEN",
|
||||||
|
"useStagingACME": $STAGING_ACME
|
||||||
},
|
},
|
||||||
"server": {
|
"server": {
|
||||||
"provider": "DIGITALOCEAN"
|
"provider": "DIGITALOCEAN"
|
||||||
|
|
Loading…
Reference in a new issue