Browse Source

Merge pull request #351 from flipped-aurora/gva_gormv2_dev

紧急修复bug
SliverHorn 4 years ago
parent
commit
503380bd58
3 changed files with 6 additions and 3 deletions
  1. 4 1
      .docker-compose/shell/server-handle.sh
  2. 1 1
      server/Makefile
  3. 1 1
      server/model/request/common.go

+ 4 - 1
.docker-compose/shell/server-handle.sh

@@ -10,6 +10,8 @@ cat>"${filename}"<<EOF
 # jwt configuration
 jwt:
   signing-key: 'qmPlus'
+  expires-time: 604800
+  buffer-time: 86400
 
 # zap logger configuration
 zap:
@@ -65,8 +67,9 @@ mysql:
   username: 'root'
   password: 'Aa@6447985'
   max-idle-conns: 10
-  max-open-conns: 10
+  max-open-conns: 100
   log-mode: false
+  log-zap: ""
 
 # local configuration
 local:

+ 1 - 1
server/Makefile

@@ -7,7 +7,7 @@ all: check gva initdb run
 
 gva:
 	go env -w GO111MODULE=on
-    go env -w GOPROXY=https://goproxy.io,direct
+	go env -w GOPROXY=https://goproxy.io,direct
 	go build -o ${GVA} cmd/main.go
 
 initdb:

+ 1 - 1
server/model/request/common.go

@@ -20,4 +20,4 @@ type GetAuthorityId struct {
 	AuthorityId string
 }
 
-type Empty struct {}
+type Empty struct{}