48 行
1.0 KiB
YAML
48 行
1.0 KiB
YAML
|
|
# 《洪荒大陆》Nakama 3.x 本地开发配置
|
|||
|
|
# 详见:https://heroiclabs.com/docs/nakama/getting-started/configuration/
|
|||
|
|
|
|||
|
|
name: honghuang-nakama
|
|||
|
|
|
|||
|
|
data_dir: "./data/"
|
|||
|
|
|
|||
|
|
logger:
|
|||
|
|
stdout: true
|
|||
|
|
level: "debug"
|
|||
|
|
|
|||
|
|
database:
|
|||
|
|
address:
|
|||
|
|
- "postgres:postgres@postgres:5432/nakama"
|
|||
|
|
conn_max_lifetime_ms: 0
|
|||
|
|
max_open_conns: 0
|
|||
|
|
max_idle_conns: 100
|
|||
|
|
|
|||
|
|
runtime:
|
|||
|
|
# 插件扫描目录
|
|||
|
|
path: "/nakama/data/modules"
|
|||
|
|
http_key: "defaulthttpkey"
|
|||
|
|
# 透传给 Go 插件的环境变量
|
|||
|
|
env:
|
|||
|
|
- "DATABASE_URL=postgres://postgres:postgres@postgres:5432/honghuang?sslmode=disable"
|
|||
|
|
- "NACOS_SERVER=honghuang-nacos"
|
|||
|
|
- "NACOS_NAMESPACE=honghuang"
|
|||
|
|
|
|||
|
|
socket:
|
|||
|
|
server_key: "defaultkey"
|
|||
|
|
port: 7350
|
|||
|
|
max_message_size_bytes: 4096
|
|||
|
|
read_timeout_ms: 10000
|
|||
|
|
write_timeout_ms: 10000
|
|||
|
|
idle_timeout_ms: 60000
|
|||
|
|
outgoing_queue_size: 16
|
|||
|
|
|
|||
|
|
session:
|
|||
|
|
encryption_key: "defaultencryptionkey"
|
|||
|
|
token_expiry_sec: 7200
|
|||
|
|
refresh_encryption_key: "defaultrefreshencryptionkey"
|
|||
|
|
refresh_token_expiry_sec: 3600
|
|||
|
|
|
|||
|
|
console:
|
|||
|
|
port: 7351
|
|||
|
|
username: "admin"
|
|||
|
|
password: "password"
|