From 7c811247ecf143e08c576986a884bedadc57dd66 Mon Sep 17 00:00:00 2001 From: liuxiaolong <liuxiaolong@aiotlink.com> Date: 星期五, 05 六月 2020 18:29:41 +0800 Subject: [PATCH] add refresh token to resp --- extend/config/config.go | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/extend/config/config.go b/extend/config/config.go index 64baeb5..48af440 100644 --- a/extend/config/config.go +++ b/extend/config/config.go @@ -11,6 +11,7 @@ Color string `mapstructure: "color"` } type server struct { + ServerName string `mapstructure: "serverName"` Runmode string `mapstructure: "runmode"` JwtSecret string `mapstructure: "jwtSecret"` JwtExpire string `mapstructure: "jwtExpire"` @@ -92,7 +93,7 @@ var err error viper.SetConfigType("yaml") viper.SetConfigName(env) - viper.AddConfigPath("/opt/vasystem/config/") + viper.AddConfigPath("../config/") err = viper.ReadInConfig() if err != nil { log.Fatal("error on parsing configuration file", err) -- Gitblit v1.8.0