Browse Source

Use postgres in example config

Tulir Asokan 3 years ago
parent
commit
7d5aeeaf88
1 changed files with 2 additions and 2 deletions
  1. 2 2
      example-config.yaml

+ 2 - 2
example-config.yaml

@@ -29,12 +29,12 @@ appservice:
     # Database config.
     # Database config.
     database:
     database:
         # The database type. "sqlite3" and "postgres" are supported.
         # The database type. "sqlite3" and "postgres" are supported.
-        type: sqlite3
+        type: postgres
         # The database URI.
         # The database URI.
         #   SQLite: File name is enough. https://github.com/mattn/go-sqlite3#connection-string
         #   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
         #   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
         #             To connect via Unix socket, use something like postgres:///dbname?host=/var/run/postgresql
-        uri: mautrix-whatsapp.db
+        uri: postgres://user:password@host/database?sslmode=disable
         # Maximum number of connections. Mostly relevant for Postgres.
         # Maximum number of connections. Mostly relevant for Postgres.
         max_open_conns: 20
         max_open_conns: 20
         max_idle_conns: 2
         max_idle_conns: 2