feat: file storage config
This commit is contained in:
+5
-1
@@ -26,7 +26,11 @@ jwt:
|
|||||||
signingKey: z3d6k8v0n3w7m9sa1fd0u09h
|
signingKey: z3d6k8v0n3w7m9sa1fd0u09h
|
||||||
expiredTime: 604800
|
expiredTime: 604800
|
||||||
|
|
||||||
# 邮件服务
|
# 文件存储配置
|
||||||
|
file:
|
||||||
|
path: /home/ubuntu/crm/source/
|
||||||
|
|
||||||
|
# 邮件服务配置
|
||||||
mail:
|
mail:
|
||||||
smtp: smtp.qq.com
|
smtp: smtp.qq.com
|
||||||
secret: dhsepilzlvoaceij
|
secret: dhsepilzlvoaceij
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ type Config struct {
|
|||||||
Mysql Mysql `mapstructure:"mysql"`
|
Mysql Mysql `mapstructure:"mysql"`
|
||||||
Redis Redis `mapstructure:"redis"`
|
Redis Redis `mapstructure:"redis"`
|
||||||
Jwt Jwt `mapstructure:"jwt"`
|
Jwt Jwt `mapstructure:"jwt"`
|
||||||
|
File File `mapstructure:"file"`
|
||||||
Mail Mail `mapstructure:"mail"`
|
Mail Mail `mapstructure:"mail"`
|
||||||
Alipay Alipay `mapstructure:"alipay"`
|
Alipay Alipay `mapstructure:"alipay"`
|
||||||
}
|
}
|
||||||
@@ -42,6 +43,11 @@ type Jwt struct {
|
|||||||
ExpiredTime int `mapstructure:"expiredTime"`
|
ExpiredTime int `mapstructure:"expiredTime"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 文件存储配置
|
||||||
|
type File struct {
|
||||||
|
Path string `mapstructure:"path"`
|
||||||
|
}
|
||||||
|
|
||||||
// 邮件服务配置
|
// 邮件服务配置
|
||||||
type Mail struct {
|
type Mail struct {
|
||||||
Smtp string `mapstructure:"smtp"`
|
Smtp string `mapstructure:"smtp"`
|
||||||
|
|||||||
Reference in New Issue
Block a user