init
This commit is contained in:
30
config/server.json
Normal file
30
config/server.json
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"http": {
|
||||
"addr": ":8080",
|
||||
"allowedOrigins": ["*"]
|
||||
},
|
||||
"redis": {
|
||||
"addr": "redis:6379",
|
||||
"password": "",
|
||||
"db": 0
|
||||
},
|
||||
"room": {
|
||||
"codeLength": 6,
|
||||
"emptyTtl": "30m",
|
||||
"ownerReconnectHold": "30s"
|
||||
},
|
||||
"proxy": {
|
||||
"enabled": true,
|
||||
"requestTimeout": "0s",
|
||||
"maxIdleConns": 256,
|
||||
"responseHeaderBytes": 1048576
|
||||
},
|
||||
"websocket": {
|
||||
"pingInterval": "25s",
|
||||
"pongTimeout": "60s",
|
||||
"writeTimeout": "10s"
|
||||
},
|
||||
"source": {
|
||||
"defaultMode": "direct"
|
||||
}
|
||||
}
|
||||
30
config/server.local.json
Normal file
30
config/server.local.json
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"http": {
|
||||
"addr": ":8080",
|
||||
"allowedOrigins": ["*"]
|
||||
},
|
||||
"redis": {
|
||||
"addr": "localhost:6379",
|
||||
"password": "",
|
||||
"db": 0
|
||||
},
|
||||
"room": {
|
||||
"codeLength": 6,
|
||||
"emptyTtl": "30m",
|
||||
"ownerReconnectHold": "30s"
|
||||
},
|
||||
"proxy": {
|
||||
"enabled": true,
|
||||
"requestTimeout": "0s",
|
||||
"maxIdleConns": 256,
|
||||
"responseHeaderBytes": 1048576
|
||||
},
|
||||
"websocket": {
|
||||
"pingInterval": "25s",
|
||||
"pongTimeout": "60s",
|
||||
"writeTimeout": "10s"
|
||||
},
|
||||
"source": {
|
||||
"defaultMode": "direct"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user