diff options
-rw-r--r-- | config.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -22,9 +22,9 @@ type Config struct { | |||
22 | func (c *Config) DBConnectionString() string { | 22 | func (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, |