From f05e7df8622c794bd59bdba21609c197d1afd7d7 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Fri, 8 Jul 2022 22:26:46 +0300 Subject: [PATCH] Use postgres in example config --- example-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example-config.yaml b/example-config.yaml index 674b788..465c67d 100644 --- a/example-config.yaml +++ b/example-config.yaml @@ -29,12 +29,12 @@ appservice: # Database config. database: # The database type. "sqlite3" and "postgres" are supported. - type: sqlite3 + type: postgres # The database URI. # SQLite: File name is enough. https://github.com/mattn/go-sqlite3#connection-string # Postgres: Connection string. For example, postgres://user:password@host/database?sslmode=disable # To connect via Unix socket, use something like postgres:///dbname?host=/var/run/postgresql - uri: mautrix-discord.db + uri: postgres://user:password@host/database?sslmode=disable # Maximum number of connections. Mostly relevant for Postgres. max_open_conns: 20 max_idle_conns: 2