30 lines
654 B
YAML
30 lines
654 B
YAML
Name: chat-api
|
|
Host: 0.0.0.0
|
|
Port: 8888
|
|
|
|
Redis:
|
|
Host: localhost
|
|
Port: 6379
|
|
Password: ""
|
|
DB: 0
|
|
|
|
Centrifugo:
|
|
APIURL: http://localhost:8000/api
|
|
APIKey: "api-key"
|
|
|
|
Cassandra:
|
|
Hosts:
|
|
- localhost
|
|
Port: 9042
|
|
Keyspace: chat
|
|
Username: "cassandra"
|
|
Password: "cassandra"
|
|
UseAuth: false
|
|
|
|
JWT:
|
|
Secret: "your-secret-key-change-in-production"
|
|
Expire: 86400 # API token 和 Centrifugo token 共用此過期時間(秒)
|
|
# CentrifugoSecret: "" # 如果為空或未設置,會自動使用與 Secret 相同的值(簡化配置)
|
|
# 如果需要分開管理(例如安全隔離),可以設置不同的值
|
|
CentrifugoSecret: ""
|