更新
This commit is contained in:
parent
d843145c0e
commit
ee9737442f
@ -5,7 +5,7 @@ system:
|
||||
port: 9025
|
||||
key:
|
||||
cert:
|
||||
is_https: false
|
||||
is_https: true
|
||||
cron: false
|
||||
key_path: ""
|
||||
cert_path: ""
|
||||
|
@ -10,79 +10,6 @@ import (
|
||||
|
||||
var Data = new(AppConfig)
|
||||
|
||||
var (
|
||||
AppMode string
|
||||
HttpPort string
|
||||
Key string
|
||||
Cert string
|
||||
IsHttps bool
|
||||
RunHttps bool
|
||||
Domain string
|
||||
OssDomain string
|
||||
ServerDM string
|
||||
Env string
|
||||
DriverUrl string
|
||||
AppointUrl string
|
||||
MaterialHost string
|
||||
BosAk string
|
||||
BosSk string
|
||||
BosBucketName string
|
||||
BosBaseDir string
|
||||
BosUrl string
|
||||
BosHttp string
|
||||
BosDomain string
|
||||
ProjectMapDir string
|
||||
JaegerHost string
|
||||
JaegerOpen bool
|
||||
Cron bool
|
||||
DingAccessToken string
|
||||
DingUrl string
|
||||
HolidayID string
|
||||
HolidaySecret string
|
||||
HolidaySingleUrl string
|
||||
HolidayMultiUrl string
|
||||
|
||||
ErpAk string
|
||||
ErpSk string
|
||||
|
||||
// rabbitmq
|
||||
RabbitmqUser string
|
||||
RabbitmqPassword string
|
||||
RabbitmqHost string
|
||||
RabbitmqPort int
|
||||
RabbitmqVhost string
|
||||
RabbitmqVhostArtwork string
|
||||
|
||||
RedisDB int
|
||||
RedisAddr string
|
||||
RedisPw string
|
||||
|
||||
//shop配置
|
||||
ShopHost string
|
||||
//ShopDetail string
|
||||
|
||||
// 地图
|
||||
MapAppCode string
|
||||
// es
|
||||
ElasticHost string
|
||||
SendIndexesUrl string
|
||||
ChatGptHost string
|
||||
|
||||
ApiHost string
|
||||
|
||||
Level string
|
||||
Filename string
|
||||
MaxSize string
|
||||
MaxAge string
|
||||
MaxBackups string
|
||||
|
||||
YearGiftCheckHost string
|
||||
Aliyun struct {
|
||||
AccessKeyId string
|
||||
AccessKeySecret string
|
||||
}
|
||||
)
|
||||
|
||||
type AppConfig struct {
|
||||
System struct {
|
||||
Domain string
|
||||
|
@ -117,7 +117,7 @@ func ExportRegister(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
var httpType string
|
||||
if config.IsHttps {
|
||||
if config.Data.System.IsHttps {
|
||||
httpType = model.HttpsType
|
||||
} else {
|
||||
httpType = model.HttpType
|
||||
|
Loading…
Reference in New Issue
Block a user