Correction of database connector string

Signed-off-by: Maximilian Seifert <max.seifert@drglitch.net>
This commit is contained in:
Maximilian Seifert 2019-03-27 22:00:44 +01:00
parent db50a1d69e
commit 8b8b55d0a6
2 changed files with 2 additions and 2 deletions

View file

@ -28,7 +28,7 @@ func init() {
} }
if insideCi { if insideCi {
dataSource = "postgres://postgres@postgres/dendrite_device?sslmode=disable" dataSource = "postgres://postgres@localhost/dendrite_device?sslmode=disable"
} else if insideDocker { } else if insideDocker {
dataSource = "postgres://dendrite:itsasecret@postgres/dendrite_device?sslmode=disable" dataSource = "postgres://dendrite:itsasecret@postgres/dendrite_device?sslmode=disable"
} else { } else {

View file

@ -29,7 +29,7 @@ func init() {
} }
if insideCi { if insideCi {
dataSource = "postgres://postgres@postgres/dendrite_syncapi?sslmode=disable" dataSource = "postgres://postgres@localhost/dendrite_syncapi?sslmode=disable"
} else if insideDocker { } else if insideDocker {
dataSource = "postgres://dendrite:itsasecret@postgres/dendrite_syncapi?sslmode=disable" dataSource = "postgres://dendrite:itsasecret@postgres/dendrite_syncapi?sslmode=disable"
} else { } else {