Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more database config options and other cleanup #1

Merged
merged 2 commits into from
Jul 9, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions roles/matrix-bot-maubot/templates/config/config.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
# Format examples:
# SQLite: sqlite:///filename.db
# Postgres: postgresql://username:password@hostname/dbname
database: sqlite:////data/maubot.db
database: {{ matrix_bot_maubot_storage_database|to_json }}

# Separate database URL for the crypto database. "default" means use the same database as above.
crypto_database: default
crypto_database:
type: default
postgres_uri: {{ matrix_bot_maubot_storage_database|to_json }}
moan0s marked this conversation as resolved.
Show resolved Hide resolved

# Additional arguments for asyncpg.create_pool() or sqlite3.connect()
# https://magicstack.github.io/asyncpg/current/api/index.html#asyncpg.pool.create_pool
Expand Down