aboutsummaryrefslogtreecommitdiff
path: root/app/im/config/litestream.yml
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-12-30 00:03:41 +0100
committerAlex Auvolat <alex@adnab.me>2021-12-30 00:03:41 +0100
commit424e7ae22ca6c2c44574821eff9600997ab96252 (patch)
tree05228e9147b8f3377077117048c71a24fdae2fcf /app/im/config/litestream.yml
parent7c775e601700505d8cc6d2ab809ea0f459a6257b (diff)
downloadnixcfg-424e7ae22ca6c2c44574821eff9600997ab96252.tar.gz
nixcfg-424e7ae22ca6c2c44574821eff9600997ab96252.zip
Synapse sqlite db with litestream
Diffstat (limited to 'app/im/config/litestream.yml')
-rw-r--r--app/im/config/litestream.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/im/config/litestream.yml b/app/im/config/litestream.yml
new file mode 100644
index 0000000..a80b41b
--- /dev/null
+++ b/app/im/config/litestream.yml
@@ -0,0 +1,10 @@
+dbs:
+ - path: /ephemeral/homeserver.db
+ replicas:
+ - url: s3://synapse-db/homeserver.db
+ region: garage-staging
+ endpoint: https://garage-staging.home.adnab.me
+ access-key-id: {{ key "secrets/synapse/s3_db_access_key" | trimSpace }}
+ secret-access-key: {{ key "secrets/synapse/s3_db_secret_key" | trimSpace }}
+ force-path-style: true
+ sync-interval: 60s