diff --git a/config/app.yml b/config/app.yml new file mode 100644 index 0000000..c8ab0ab --- /dev/null +++ b/config/app.yml @@ -0,0 +1,23 @@ +mysql: + dns: root:1234@tcp(192.168.137.131:3308)/ginchat?charset=utf8mb4&parseTime=True&loc=Local +redis: + addr: "192.168.137.131:6379" + password: "" + DB: 0 + poolSize: 30 + minIdleConn: 30 +oss: + Endpoint: "oss-cn-hangzhou.aliyuncs.com" + AccessKeyId: "LTAI5tNCXPJwS3MstKoKgixh" + AccessKeySecret: "YhHE8OyCMsqfjwOnxQ1oO7paYlDjVHX" + Bucket : "ginchat" + +timeout: + DelayHeartbeat: 3 #延迟心跳时间 单位秒 + HeartbeatHz: 30 #每隔多少秒心跳时间 + HeartbeatMaxTime: 30000 #最大心跳时间 ,超过此就下线 + RedisOnlineTime: 4 #缓存的在线用户时长 单位H + +port: + server: ":8082" + udp: 3001