-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathlocal.yml
46 lines (38 loc) · 1.19 KB
/
local.yml
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
# Nakama configuration file refrenece: https://heroiclabs.com/docs/nakama/getting-started/configuration/
name: nakama
data_dir: "./data/"
session:
# Set a session duration of about 2-3 times the length of game’s average play session
token_expiry_sec: 3600 # 1 hour
refresh_token_expiry_sec: 86400 # 1 day
# Must change before you deploy Nakama to your live production environment
encryption_key: "defaultencryptionkey"
refresh_encryption_key: "defaultrefreshencryptionkey"
logger:
stdout: true
level: "debug"
database:
conn_max_lifetime_ms: 0 # indefinite, always reuse conn
max_open_conns: 250
max_idle_conns: 100
runtime:
# Must change before you deploy Nakama to your live production environment
http_key: "defaulthttpkey"
socket:
port: 7350
protocol: tcp
read_timeout_ms: 10000
write_timeout_ms: 30000
idle_timeout_ms: 60000
outgoing_queue_size: 32
# Must change before you deploy Nakama to your live production environment
server_key: "defaultkey"
console:
port: 7351
# Must change before you deploy Nakama to your live production environment
username: "admin"
password: "password"
metrics:
reporting_freq_sec: 60
namespace: ""
prometheus_port: 7354