Skip to content

Commit 70fe091

Browse files
committed
feat: make bucket configurable
1 parent b3c0b5c commit 70fe091

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
REPLICA_URL=<REPLICA_URL>
2+
REPLICA_BUCKET_NAME=<REPLICA_BUCKET_NAME>
23
LITESTREAM_ACCESS_KEY_ID=<LITESTREAM_ACCESS_KEY_ID>
34
LITESTREAM_SECRET_ACCESS_KEY=<LITESTREAM_SECRET_ACCESS_KEY>

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,19 @@ source .env
2727
OR export individual variables:
2828

2929
```bash
30-
export REPLICA_URL=https://<account_id>.r2.cloudflarestorage.com
30+
export REPLICA_URL=https://<bucket_id>.r2.cloudflarestorage.com
31+
export REPLICA_BUCKET_NAME=bucket_name
3132
export LITESTREAM_ACCESS_KEY_ID=access_key_id
3233
export LITESTREAM_SECRET_ACCESS_KEY=secret_access_key
3334
```
3435

3536
3. Run the Docker image
3637

3738
```bash
38-
docker run \
39+
docker run \
3940
-p 4321:4321 \
4041
-e REPLICA_URL \
42+
-e REPLICA_BUCKET_NAME \
4143
-e LITESTREAM_ACCESS_KEY_ID \
4244
-e LITESTREAM_SECRET_ACCESS_KEY \
4345
-v $(pwd)/data:/data \

litestream.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ dbs:
33
replicas:
44
- type: s3
55
endpoint: ${REPLICA_URL}
6-
bucket: sqlite
6+
bucket: ${REPLICA_BUCKET_NAME}

0 commit comments

Comments
 (0)