Commit b6823572 authored by Your Name's avatar Your Name

fix redis passwd

parent 3c1479e0
......@@ -303,10 +303,13 @@ type ResponseJson struct {
func newCache(redisAddr, redisPass, mysqlIP, dbName, user, passwd string, port int) *cachedata.CacheData {
fmt.Println("mysqlIP-------------", mysqlIP)
fmt.Println("redisAddr-------", redisAddr)
_cache := cachedata.NewCacheData(context.Background(), cachedata.RedisConnParam{
//Addr: "192.168.1.10:6379",
Addr: redisAddr,
Password: "",
Password: redisPass,
DbIndex: 0,
}, model.DbConfig{
//Host: "192.168.1.211",
......@@ -501,7 +504,7 @@ func main() {
return c.SendStatus(200)
})
log.Fatal(app.Listen("0.0.0.0:6001"))
log.Fatal(app.Listen(listenIpPort))
}
func ApiAndJWT(c *fiber.Ctx) error {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment