diff --git a/nixos-infect b/nixos-infect index 1356455..919a246 100755 --- a/nixos-infect +++ b/nixos-infect @@ -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"