Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

allow setting extra parameter for dsn

John Doedbab1bad5557
diff --git a/server/pkg/utils/config/config.go b/server/pkg/utils/config/config.go
index a12381e455..1bbd3707ac 100644
--- a/server/pkg/utils/config/config.go
+++ b/server/pkg/utils/config/config.go
@@ -103,13 +103,14 @@ func doesFileExist(path string) (bool, error) {
func GetPGInfo() string {
return fmt.Sprintf("host=%s port=%d user=%s "+
- "password=%s dbname=%s sslmode=%s",
+ "password=%s dbname=%s sslmode=%s %s",
viper.GetString("db.host"),
viper.GetInt("db.port"),
viper.GetString("db.user"),
viper.GetString("db.password"),
viper.GetString("db.name"),
- viper.GetString("db.sslmode"))
+ viper.GetString("db.sslmode"),
+ viper.GetString("db.extra"))
}
func IsLocalEnvironment() bool {