feat: add jwt
This commit is contained in:
@@ -9,6 +9,7 @@ type ServerConfig struct {
|
||||
LogPath string `yaml:"logPath"`
|
||||
MySQL MySQLConfig `yaml:"mysql"`
|
||||
Redis RedisConfig `yaml:"redis"`
|
||||
Jwt JwtConfig `yaml:"jwt"`
|
||||
}
|
||||
|
||||
type MySQLConfig struct {
|
||||
@@ -24,3 +25,9 @@ type RedisConfig struct {
|
||||
Port int `yaml:"port"`
|
||||
Password string `yaml:"password"`
|
||||
}
|
||||
|
||||
type JwtConfig struct {
|
||||
Secret string `yaml:"secret"`
|
||||
RenewExpireDays uint `yaml:"renewExpireDays"`
|
||||
RenewAheadDays uint `yaml:"renewAheadDays"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user