-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.toml
66 lines (58 loc) · 1.77 KB
/
config.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
62
63
64
65
66
s3domain = ["localhost:3000"]
region = "sfo3"
log_path = "/var/log/rust-gateway/rust-gateway.log"
access_log_path = "/var/log/rust-gateway/access.log"
access_log_format = "{combined}"
panic_log_path = "/var/log/rust-gateway/panic.log"
log_level = "debug"
pid_file = "/var/run/rust-gateway/rust-gateway.pid"
bind_api_address = "127.0.0.1:3000"
bind_admin_http_address = "127.0.0.1:9000"
bind_admin_grpc_address = "127.0.0.1:9001"
iam_address = "http://127.0.0.1:8000"
admin_key = "secret"
ssl_key_path = ""
ssl_cert_path = ""
piggyback_update_usage = true
debug_mode = true
enable_pprof = false
pprof_listener = "0.0.0.0:8730"
reserved_origins = "s3.test.com,s3-internal.test.com"
# Meta Config
meta_cache_type = 2
meta_store = "postgresdb"
postgresdb_info = "postgres://postgres:password@postgres:5432/defaultdb?sslmode=disable"
keepalive = true
enable_compression = false
enable_usage_push = false
redis_address = "redis://127.0.0.1"
redis_username = "default"
redis_password = "password"
redis_connection_number = 10
memory_cache_max_entry_count = 100000
enable_data_cache = true
redis_connect_timeout = 1
redis_read_timeout = 3
redis_write_timeout = 1
cache_circuit_check_interval = 3
cache_circuit_close_sleep_window = 1
cache_circuit_close_required_count = 3
cache_circuit_open_threshold = 1
cache_circuit_exec_timeout = 5
cache_circuit_exec_max_concurrent = -1
db_max_open_conns = 10240
db_max_idle_conns = 1024
db_conn_max_life_seconds = 300
download_buf_pool_size = 8388608 #8MB
upload_min_chunk_size = 524288 #512KB
upload_max_chunk_size = 8388608 #8MB
# Storage Config
[storage.do]
endpoint = "https://digitaloceanspaces.com"
regions = ["sfo3", "nyc3"]
[storage.ceph-a]
endpoint = "http://ceph-a:7480"
zonename = "default"
[storage.ceph-b]
endpoint = "http://ceph-b:7480"
zonename = "default"