-
Notifications
You must be signed in to change notification settings - Fork 6
/
sample.toml
61 lines (51 loc) · 1.38 KB
/
sample.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
[log]
level = "Debug"
dir = "/var/log/replited/"
[[database]]
db = "/var/sqlite/test.db"
# each database has at least one replicate backend,
# each replication config in one db MUST has different name
# sample of azure blob replicate config
[[database.replicate]]
name = "name of azure blob"
params.type = "Azb"
params.endpoint = "xxx"
params.container = "xxx"
params.root = ""
params.account_name = "xxx"
params.account_key = "xxx"
# sample of file system replicate config
[[database.replicate]]
name = "name of fs"
params.type = "Fs"
params.root = "/var/replited"
# sample of ftp replicate config
[[database.replicate]]
name = "name of ftp"
params.type = "Ftp"
params.endpoint = "https://storage.googleapis.com"
params.root = "/var/replited"
params.username = "username"
params.password = "password"
# sample of gcs replicate config
[[database.replicate]]
name = "name of gcs"
params.type = "Gcs"
params.endpoint = "https://storage.googleapis.com"
params.bucket = "sqlite"
params.root = ""
params.credential = "xxx"
# sample of s3 replicate config
[[database.replicate]]
name = "name of s3"
params.type = "S3"
params.endpoint = "http://127.0.0.1:9900"
params.bucket = "sqlite"
params.region = ""
params.root = ""
params.access_key_id = "minioadmin"
params.secret_access_key = "minioadmin"
# can add more than one database config
#[[database]]
#db = "/var/sqlite/test2.db"
#[[database.replicate]]