mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-infect.git
synced 2024-11-26 05:21:26 +00:00
feat: Implement dns provider type variable for infecting
This commit is contained in:
parent
389e23a161
commit
512ff0a218
|
@ -11,6 +11,10 @@ makeConf() {
|
||||||
export PASSWORD=$(printf $ENCODED_PASSWORD | base64 --decode)
|
export PASSWORD=$(printf $ENCODED_PASSWORD | base64 --decode)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $DNS_PROVIDER_TYPE == null ]]; then
|
||||||
|
export DNS_PROVIDER_TYPE='CLOUDFLARE'
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $STAGING_ACME == null ]]; then
|
if [[ $STAGING_ACME == null ]]; then
|
||||||
export STAGING_ACME='false'
|
export STAGING_ACME='false'
|
||||||
fi
|
fi
|
||||||
|
@ -50,7 +54,7 @@ makeConf() {
|
||||||
"location": "sda"
|
"location": "sda"
|
||||||
},
|
},
|
||||||
"dns": {
|
"dns": {
|
||||||
"provider": "CLOUDFLARE",
|
"provider": "$DNS_PROVIDER_TYPE",
|
||||||
"apiKey": "$CF_TOKEN",
|
"apiKey": "$CF_TOKEN",
|
||||||
"useStagingACME": $STAGING_ACME
|
"useStagingACME": $STAGING_ACME
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue