mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-infect.git
synced 2024-11-25 21:11:27 +00:00
feat: Add support for staging ACME
This commit is contained in:
parent
bb59d623c5
commit
6bfe91dee4
14
nixos-infect
14
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" )
|
||||
|
||||
|
@ -35,7 +39,8 @@ makeConf() {
|
|||
"token": "$API_TOKEN",
|
||||
"skippedMigrations": ["migrate_to_selfprivacy_channel", "mount_volume"]
|
||||
},
|
||||
"backblaze": {
|
||||
"backup": {
|
||||
"provider": "BACKBLAZE",
|
||||
"accountId": "$BACKBLAZE_KEY_ID",
|
||||
"accountKey": "$BACKBLAZE_ACCOUNT_KEY",
|
||||
"bucket": "$BACKBLAZE_BUCKET_NAME"
|
||||
|
@ -44,8 +49,13 @@ makeConf() {
|
|||
"enable": true,
|
||||
"location": "sdb"
|
||||
},
|
||||
"cloudflare": {
|
||||
"dns": {
|
||||
"provider": "CLOUDFLARE",
|
||||
"apiKey": "$CF_TOKEN"
|
||||
"useStagingACME": $STAGING_ACME
|
||||
},
|
||||
"server": {
|
||||
"provider": "HETZNER",
|
||||
},
|
||||
"databasePassword": "$DB_PASSWORD",
|
||||
"domain": "$DOMAIN",
|
||||
|
|
Loading…
Reference in a new issue