Open volga629-1 opened 4 years ago
Hello Everyone, I need assistant with following issues.
1 PgSQL driver set to sslmode=disable is possible it make configurable with values according postgres ssl client.
In database/database.go
dsn = "sslmode=disable connect_timeout=4" + " host=" + addr[0] + " port=" + addr[1] + " dbname=" + dbName + " user=" + config.Setting.DBUser + " password=" + config.Setting.DBPass
2 FQDN is correct form in database connection in dsn, but connection is rejected . In database/database.go
func ConnectString(dbName string) (string, error) { var dsn string driver := config.Setting.DBDriver addr := strings.Split(config.Setting.DBAddr, ":") if len(addr) != 2 { return "", fmt.Errorf("wrong database connection format: %v, it should be localhost:3306", config.Setting.DBAddr) }
Oct 06 02:23:17 voice-diag /usr/bin/heplify-server[64948]: rotator.go:352: dial tcp [::1]:5432: connect: connection refused Oct 06 02:23:17 voice-diag /usr/bin/heplify-server[64948]: rotator.go:355: dial tcp [::1]:5432: connect: connection refused
+1 on this, our db requires ssl which is preventing us form using homer atm. Thanks
Hello Everyone, I need assistant with following issues.
1 PgSQL driver set to sslmode=disable is possible it make configurable with values according postgres ssl client.
In database/database.go
2 FQDN is correct form in database connection in dsn, but connection is rejected . In database/database.go