mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Fix auth default PGHOST
This commit is contained in:
parent
39dcfb4418
commit
1fca8957a2
@ -80,7 +80,7 @@ func OpenDatabase() (*pgxpool.Pool, error) {
|
||||
}
|
||||
|
||||
// Set default values
|
||||
if config.ConnConfig.Host == "" {
|
||||
if config.ConnConfig.Host == "/tmp" {
|
||||
config.ConnConfig.Host = "postgres"
|
||||
}
|
||||
if config.ConnConfig.Database == "" {
|
||||
@ -113,7 +113,7 @@ func OpenDatabase() (*pgxpool.Pool, error) {
|
||||
|
||||
db, err := pgxpool.NewWithConfig(ctx, config)
|
||||
if err != nil {
|
||||
fmt.Printf("Could not connect to database, check your env variables!")
|
||||
fmt.Printf("Could not connect to database, check your env variables!\n")
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user