-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi_config.example.yaml
More file actions
59 lines (49 loc) · 1.22 KB
/
api_config.example.yaml
File metadata and controls
59 lines (49 loc) · 1.22 KB
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
# App
app_name: "GoChat"
base_url: "http://example.com"
content_hosts:
- "https://cdn.example.com"
- "https://storage.example.com"
# API
swagger: true
api_log: true
server_address: ":3100"
rate_limit_time: 1
rate_limit_requests: 10
idempotency_storage_lifetime: 10 # seconds
# Auth
auth_secret: "change_me_before_use_it_in_production"
# Cassandra
cluster: ["scylla"]
cluster_keyspace: "gochat"
# Redis
keydb: "keydb:6379"
# PostgreSQL
pg_dsn: "host=citus-master port=5432 user=postgres dbname=gochat sslmode=disable"
pg_retries: 5
# OpenSearch
os_insecure_skip_verify: true
os_addresses: ["http://opensearch:9200"]
os_username: "admin"
os_password: "CustOM-Pa55w0Rd"
# NATS
nats_conn_string: "nats://nats:4222"
indexer_nats_conn_string: "nats://indexer-nats:4222"
# Uploads / Attachments
upload_limit: 50000000 # bytes
attachment_ttl_minutes: 10
voice_region: global # default region id
voice_regions:
- id: global
name: Global
- id: eu
name: Europe (Frankfurt)
- id: us-east
name: US East (Ashburn)
# Discovery (required by API to select SFU routes)
etcd_endpoints:
- "http://etcd:2379"
etcd_prefix: "/gochat/sfu"
# Optional etcd auth (recommended in production)
etcd_username: "root"
etcd_password: "changeme"