~ knotless Search/
↑↓ move↵ open⇧↵ all results

zat.dev/zds

atproto pds · mirror of https://tangled.org/zat.dev/zds

0
0
21 lines · 832 B Raw History
# Streams the zds database to an S3-compatible bucket with Litestream.
# tools/container-start.sh uses this file only when ZDS_LITESTREAM_BUCKET is
# set, and fills in the defaults below before Litestream expands them. See
# https://tangled.org/zat.dev/zds/blob/main/docs/backups.md.
#
# Credentials come from AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY, and the
# endpoint and region from AWS_ENDPOINT_URL_S3 and AWS_REGION. For Cloudflare
# R2 that is https://<account_id>.r2.cloudflarestorage.com and region auto.
dbs:
  - path: ${ZDS_DB}
    replica:
      type: s3
      bucket: ${ZDS_LITESTREAM_BUCKET}
      path: ${ZDS_LITESTREAM_PATH}
      endpoint: ${AWS_ENDPOINT_URL_S3}
      region: ${AWS_REGION}
      sync-interval: ${ZDS_LITESTREAM_SYNC_INTERVAL}

snapshot:
  interval: 24h
  retention: ${ZDS_LITESTREAM_RETENTION}