aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.go b/config.go
index 65e15ba..b7149a6 100644
--- a/config.go
+++ b/config.go
@@ -22,9 +22,9 @@ type Config struct {
22func (c *Config) DBConnectionString() string { 22func (c *Config) DBConnectionString() string {
23 var sslmode string 23 var sslmode string
24 if c.Database.SSLEnabled { 24 if c.Database.SSLEnabled {
25 sslmode = "enabled" 25 sslmode = "require"
26 } else { 26 } else {
27 sslmode = "disabled" 27 sslmode = "disable"
28 } 28 }
29 return fmt.Sprintf("host=%s user=%s dbname=%s password=%s sslmode=%s", 29 return fmt.Sprintf("host=%s user=%s dbname=%s password=%s sslmode=%s",
30 c.Database.Hostname, 30 c.Database.Hostname,