mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-11-14 06:22:51 +01:00
Merge pull request #1 from Cadair/maubot_moanos
Add more database config options and other cleanup
This commit is contained in:
commit
be54af110d
@ -17,11 +17,9 @@ matrix_bot_maubot_bot_server_public: "https://{{ matrix_server_fqn_matrix }}"
|
|||||||
matrix_bot_maubot_proxy_management_interface: false
|
matrix_bot_maubot_proxy_management_interface: false
|
||||||
matrix_bot_maubot_expose_management_interface: true
|
matrix_bot_maubot_expose_management_interface: true
|
||||||
|
|
||||||
|
matrix_bot_database_uri: 'sqlite:///data/maubot.db'
|
||||||
matrix_bot_maubot_secret: ''
|
matrix_bot_maubot_port: 29316
|
||||||
matrix_bot_maubot_admin_user: ''
|
matrix_bot_maubot_secret: 'generate'
|
||||||
matrix_bot_maubot_admin_password: ''
|
|
||||||
matrix_mau_environment_variables_extension: ''
|
|
||||||
|
|
||||||
# A list of extra arguments to pass to the container
|
# A list of extra arguments to pass to the container
|
||||||
matrix_bot_maubot_container_extra_arguments: []
|
matrix_bot_maubot_container_extra_arguments: []
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
{% if matrix_nginx_proxy_enabled|default(False) %}
|
{% if matrix_nginx_proxy_enabled|default(False) %}
|
||||||
{# Use the embedded DNS resolver in Docker containers to discover the service #}
|
{# Use the embedded DNS resolver in Docker containers to discover the service #}
|
||||||
resolver 127.0.0.11 valid=5s;
|
resolver 127.0.0.11 valid=5s;
|
||||||
set $backend "matrix-maubot:{{ matrix_bot_maubot_port }}/$1";
|
set $backend "matrix-bot-maubot:29316/$1";
|
||||||
proxy_pass http://$backend;
|
proxy_pass http://$backend;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection "upgrade";
|
proxy_set_header Connection "upgrade";
|
||||||
|
@ -3,10 +3,12 @@
|
|||||||
# Format examples:
|
# Format examples:
|
||||||
# SQLite: sqlite:///filename.db
|
# SQLite: sqlite:///filename.db
|
||||||
# Postgres: postgresql://username:password@hostname/dbname
|
# Postgres: postgresql://username:password@hostname/dbname
|
||||||
database: sqlite:////data/maubot.db
|
database: {{ matrix_bot_maubot_database_uri|to_json }}
|
||||||
|
|
||||||
# Separate database URL for the crypto database. "default" means use the same database as above.
|
# 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_database_uri|to_json }}
|
||||||
|
|
||||||
# Additional arguments for asyncpg.create_pool() or sqlite3.connect()
|
# Additional arguments for asyncpg.create_pool() or sqlite3.connect()
|
||||||
# https://magicstack.github.io/asyncpg/current/api/index.html#asyncpg.pool.create_pool
|
# https://magicstack.github.io/asyncpg/current/api/index.html#asyncpg.pool.create_pool
|
||||||
|
Loading…
Reference in New Issue
Block a user