summaryrefslogtreecommitdiff
path: root/internal/db/pg/pg.go
diff options
context:
space:
mode:
authorLibravatar Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com>2021-07-19 19:31:47 +0200
committerLibravatar GitHub <noreply@github.com>2021-07-19 19:31:47 +0200
commit29bdc41baad96752fc18a1cf73e0a14f153b25d1 (patch)
tree54ca175711d76ad7d20629c9a7ccaf0f1bb59d08 /internal/db/pg/pg.go
parentallow different host + accountDomain (#103) (diff)
downloadgotosocial-29bdc41baad96752fc18a1cf73e0a14f153b25d1.tar.xz
Config bugfix (#104)
* fix some config bugs * go fmt
Diffstat (limited to 'internal/db/pg/pg.go')
-rw-r--r--internal/db/pg/pg.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/db/pg/pg.go b/internal/db/pg/pg.go
index 5301f0410..31312b61e 100644
--- a/internal/db/pg/pg.go
+++ b/internal/db/pg/pg.go
@@ -148,6 +148,7 @@ func derivePGOptions(c *config.Config) (*pg.Options, error) {
case config.DBTLSModeRequire:
tlsConfig = &tls.Config{
InsecureSkipVerify: false,
+ ServerName: c.DBConfig.Address,
}
}