修改es服务端地址
This commit is contained in:
parent
e0682ed122
commit
36a085eccb
@ -80,14 +80,14 @@ func GenAliConfig(level Level) *AliLSConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func GenEsConfig(level Level) *EsConfig {
|
func GenEsConfig(level Level) *EsConfig {
|
||||||
dsn := "http://es-cn-0pp1mm3hq000dnbh4.public.elasticsearch.aliyuncs.com:9200/"
|
dsn := "http://es-cn-tl32xlfmu00015h34.public.elasticsearch.aliyuncs.com:9200/"
|
||||||
if os.Getenv(envkey) == "prod" || os.Getenv(envkey) == "" || os.Getenv(envkey) == "gray" {
|
if os.Getenv(envkey) == "prod" || os.Getenv(envkey) == "" || os.Getenv(envkey) == "gray" {
|
||||||
dsn = "http://es-cn-0pp1mm3hq000dnbh4.elasticsearch.aliyuncs.com:9200/"
|
dsn = "http://es-cn-tl32xlfmu00015h34.elasticsearch.aliyuncs.com:9200/"
|
||||||
}
|
}
|
||||||
|
|
||||||
c := &EsConfig{
|
c := &EsConfig{
|
||||||
Username: "elastic",
|
Username: "elastic",
|
||||||
Password: "Hellogaore@",
|
Password: "f0zCXxh6",
|
||||||
Dsn: dsn,
|
Dsn: dsn,
|
||||||
Level: level,
|
Level: level,
|
||||||
Index: os.Getenv("GRLOG_APP_NAME"),
|
Index: os.Getenv("GRLOG_APP_NAME"),
|
||||||
|
Loading…
Reference in New Issue
Block a user