wp
workabee 7 months ago
parent d843145c0e
commit ee9737442f

@ -5,7 +5,7 @@ system:
port: 9025 port: 9025
key: key:
cert: cert:
is_https: false is_https: true
cron: false cron: false
key_path: "" key_path: ""
cert_path: "" cert_path: ""

@ -10,79 +10,6 @@ import (
var Data = new(AppConfig) 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 { type AppConfig struct {
System struct { System struct {
Domain string Domain string

@ -117,7 +117,7 @@ func ExportRegister(c *gin.Context) {
return return
} }
var httpType string var httpType string
if config.IsHttps { if config.Data.System.IsHttps {
httpType = model.HttpsType httpType = model.HttpsType
} else { } else {
httpType = model.HttpType httpType = model.HttpType

Loading…
Cancel
Save