project shared

This commit is contained in:
geek
2017-11-23 19:33:19 +09:00
commit 181562a5c1
24 changed files with 866 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
#!/bin/sh
set -e
/opt/bin/overflow_gateway_probe -config=/opt/config/
exec "$@"

View File

@@ -0,0 +1,67 @@
{
"server": {
"name": "Gateway Probe",
"network": "tcp4",
"addr": ":80",
"tls": false,
"concurrency": 262144,
"maxStopWaitTime": 0
},
"auth": {
"signingKey": "tWB0lUXiCwX4U3qsJZcZ10mKvEH793RHkTJDbDuZVshQTk4uNB6ck59UQ96lhsRi4XNUiEnlIbP8XYQMPabeNtERX3iyHeDcwocgUVAor1nkAajYeq1gNyJszGpMhEOT"
},
"websocket": {
"handshakeTimeout": 0,
"readBufferSize": 8192,
"writeBufferSize": 8192,
"enableCompression": false
},
"gRPC": {
"addr": "192.168.1.50:50006",
"tls": false,
"pool": {
"maxIdle": 1,
"maxCapacity": 3,
"idleTimeout": 240,
"wait": false
}
},
"redis": {
"network": "tcp",
"addr": "192.168.1.50:6379",
"tls": false,
"pool": {
"maxIdle": 1,
"maxCapacity": 3,
"idleTimeout": 240,
"wait": false
}
},
"servlets": {
"web": {
"entry": "/web",
"socket": {
"maxMessageSize": 8192,
"writeTimeout": 0,
"readTimeout": 0,
"pongTimeout": 60,
"pingTimeout": 10,
"pingPeriod": 10,
"binaryMessage": false
}
},
"file": {
"entry": "/file",
"socket": {
"maxMessageSize": 8192,
"writeTimeout": 0,
"readTimeout": 0,
"pongTimeout": 60,
"pingTimeout": 10,
"pingPeriod": 10,
"binaryMessage": false
}
}
}
}

View File

@@ -0,0 +1,27 @@
{
"level": "debug",
"development": true,
"disableCaller": true,
"disableStacktrace": true,
"sampling": {
"initial": 100,
"thereafter": 100
},
"encoding": "console",
"encoderConfig": {
"messageKey": "message",
"levelKey": "level",
"timeKey": "time",
"nameKey": "name",
"callerKey": "caller",
"stacktraceKey": "stacktrace",
"lineEnding": "\n",
"levelEncoder": "color",
"timeEncoder": "ISO8601",
"durationEncoder": "string",
"callerEncoder": "full",
"nameEncoder": "full"
},
"outputPaths": ["/opt/logs/log"],
"errorOutputPaths": ["stderr"]
}