-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathconfig.example.yml
22 lines (22 loc) · 1.33 KB
/
config.example.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
gateway: # gateway config
mode: private # gateway mode (public - allow anonymous device registration, private - protected registration) [GATEWAY__MODE]
private_token: 123456789 # access token for device registration in private mode [GATEWAY__PRIVATE_TOKEN]
http: # http server config
listen: 127.0.0.1:3000 # listen address [HTTP__LISTEN]
proxies:
- "127.0.0.1" # proxy address [HTTP__PROXIES]
database: # database
dialect: mysql # database dialect (only mysql supported at the moment) [DATABASE__DIALECT]
host: localhost # database host [DATABASE__HOST]
port: 3306 # database port [DATABASE__PORT]
user: root # database user [DATABASE__USER]
password: root # database password [DATABASE__PASSWORD]
database: sms # database name [DATABASE__DATABASE]
timezone: UTC # database timezone (important for message TTL calculation) [DATABASE__TIMEZONE]
fcm: # firebase cloud messaging config
credentials_json: "{}" # firebase credentials json (for public mode only) [FCM__CREDENTIALS_JSON]
timeout_seconds: 1 # push notification send timeout [FCM__DEBOUNCE_SECONDS]
debounce_seconds: 5 # push notification debounce (>= 5s) [FCM__TIMEOUT_SECONDS]
tasks: # tasks config
hashing: # hashing task (hashes processed messages for privacy purposes)
interval_seconds: 15 # hashing interval in seconds [TASKS__HASHING__INTERVAL_SECONDS]