Add (Postgres + SQLite) support to matrix-mautrix-telegram bridge

I don't use this bridge, so this is completely untested.
This commit is contained in:
Slavi Pantaleev
2020-12-14 12:06:23 +02:00
parent a3406a182b
commit 9bf8ce878e
3 changed files with 50 additions and 1 deletions

View File

@ -27,7 +27,7 @@ appservice:
# Format examples:
# SQLite: sqlite:///filename.db
# Postgres: postgres://username:password@hostname/dbname
database: postgres://mautrix_bridge_telegram:{{ matrix_addtional_databases | selectattr('name', 'equalto', 'matrix_bridge_telegram') | map(attribute='pass') | first }}@{{ matrix_postgres_connection_hostname }}/mautrix_bridge_telegram
database: {{ matrix_mautrix_telegram_appservice_database|to_json }}
# Public part of web server for out-of-Matrix interaction with the bridge.
# Used for things like login if the user wants to make sure the 2FA password isn't stored in