WIP: postgres: create databases for all services
If a service is enabled, a database for it is created in postgres with a uniqque password. The service can then use this database for data storage instead of relying on sqlite.
This commit is contained in:
@ -889,6 +889,70 @@ matrix_postgres_connection_username: "synapse"
|
||||
matrix_postgres_connection_password: "synapse-password"
|
||||
matrix_postgres_db_name: "homeserver"
|
||||
|
||||
matrix_postgres_additional_databases: |
|
||||
{{
|
||||
([{
|
||||
name: 'matrix_appservice_discord',
|
||||
pass: matrix_synapse_macaroon_secret_key | password_hash('sha512', 'app_discord.db.secret') | string
|
||||
}] if matrix_appservice_discord_enabled else [])
|
||||
+ ([{
|
||||
name: 'matrix_appservice_slack'
|
||||
pass: matrix_synapse_macaroon_secret_key | password_hash('sha512', 'app_slack.db.secret') | string
|
||||
}] if matrix_appservice_slack_enabled else [])
|
||||
+ ([{
|
||||
name: 'matrix_appservice_irc'
|
||||
pass: matrix_synapse_macaroon_secret_key | password_hash('sha512', 'app_irc.db.secret') | string
|
||||
}] if matrix_appservice_irc_enabled else [])
|
||||
+ ([{
|
||||
name: 'mautrix-bridge-facebook'
|
||||
pass: matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mautrix_facebook.db.secret') | string
|
||||
}] if matrix_mautrix_facebook_enabled else [])
|
||||
+ ([{
|
||||
name: 'mautrix_bridge_hangouts'
|
||||
pass: matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mautrix_hangouts.db.secret') | string
|
||||
}] if matrix_mautrix_hangouts_enabled else [])
|
||||
+ ([{
|
||||
name: 'mautrix_bridge_telegram'
|
||||
pass: matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mautrix_telegram.db.secret') | string
|
||||
}] if matrix_mautrix_telegram_enabled else [])
|
||||
+ ([{
|
||||
name: 'mautrix_bridge_whatsapp'
|
||||
pass: matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mautrix_whatsapp.db.secret') | string
|
||||
}] if matrix_mautrix_whatsapp_enabled else [])
|
||||
+ ([{
|
||||
name: 'matrix_bridge_sms'
|
||||
pass: matrix_synapse_macaroon_secret_key | password_hash('sha512', 'bridge_sms.db.secret') | string
|
||||
}] if matrix_sms_bridge_enabled else [])
|
||||
+ ([{
|
||||
name: 'matrix_puppet_skype'
|
||||
pass: matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mx_skype.db.secret') | string
|
||||
}] if matrix_mx_puppet_skype_enabled else [])
|
||||
+ ([{
|
||||
name: 'matrix_puppet_slack'
|
||||
pass: matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mx_slack.db.secret') | string
|
||||
}] if matrix_mx_puppet_slack_enabled else [])
|
||||
+ ([{
|
||||
name: 'matrix_puppet_twitter'
|
||||
pass: matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mx_twitter.db.secret') | string
|
||||
}] if matrix_mx_puppet_twitter_enabled else [])
|
||||
+ ([{
|
||||
name: 'matrix_puppet_instagram'
|
||||
pass: matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mx_insta.db.secret') | string
|
||||
] if matrix_mx_puppet_instagram_enabled else [])
|
||||
+ ([{
|
||||
name: 'matrix_puppet_discord'
|
||||
pass: matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mx_puppet.db.secret') | string
|
||||
}] if matrix_mx_puppet_discord_enabled else [])
|
||||
+ ([{
|
||||
name: 'matrix_puppet_steam'
|
||||
pass: matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mx_steam.db.secret') | string
|
||||
}] if matrix_mx_puppet_steam_enabled else [])
|
||||
+ ([{
|
||||
name: 'matrix_dimension'
|
||||
pass: matrix_synapse_macaroon_secret_key | password_hash('sha512', 'dimension.db.secret') | string
|
||||
}] if matrix_dimension_enabled else [])
|
||||
}}
|
||||
|
||||
######################################################################
|
||||
#
|
||||
# /matrix-postgres
|
||||
|
Reference in New Issue
Block a user