Compare commits
No commits in common. "ec76aff4537e76c37d897bc36888a13a398dfa28" and "649293d794ffb21534afc91e924c18e7e2aeed9a" have entirely different histories.
ec76aff453
...
649293d794
@ -5,7 +5,7 @@ system:
|
|||||||
port: 9025
|
port: 9025
|
||||||
key:
|
key:
|
||||||
cert:
|
cert:
|
||||||
is_https: true
|
is_https: false
|
||||||
cron: false
|
cron: false
|
||||||
key_path: ""
|
key_path: ""
|
||||||
cert_path: ""
|
cert_path: ""
|
||||||
|
@ -10,6 +10,79 @@ 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.Data.System.IsHttps {
|
if config.IsHttps {
|
||||||
httpType = model.HttpsType
|
httpType = model.HttpsType
|
||||||
} else {
|
} else {
|
||||||
httpType = model.HttpType
|
httpType = model.HttpType
|
||||||
|
Loading…
Reference in New Issue
Block a user