Fix NeDB to Postgres importing task for matrix-bridge-appservice-slack
Same as 250b91a40968e, but for Slack
This commit is contained in:
parent
6b73073012
commit
c86cff2708
@ -650,6 +650,7 @@ matrix_appservice_slack_id_token: "{{ '%s' | format(matrix_homeserver_generic_se
|
|||||||
matrix_appservice_slack_database_engine: "{{ 'postgres' if devture_postgres_enabled else 'nedb' }}"
|
matrix_appservice_slack_database_engine: "{{ 'postgres' if devture_postgres_enabled else 'nedb' }}"
|
||||||
matrix_appservice_slack_database_hostname: "{{ devture_postgres_connection_hostname if devture_postgres_enabled else '' }}"
|
matrix_appservice_slack_database_hostname: "{{ devture_postgres_connection_hostname if devture_postgres_enabled else '' }}"
|
||||||
matrix_appservice_slack_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'as.slack.db', rounds=655555) | to_uuid }}"
|
matrix_appservice_slack_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'as.slack.db', rounds=655555) | to_uuid }}"
|
||||||
|
matrix_appservice_slack_database_container_network: "{{ devture_postgres_container_network if devture_postgres_enabled else '' }}"
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
#
|
#
|
||||||
|
@ -105,6 +105,10 @@ matrix_appservice_slack_database_port: 5432
|
|||||||
matrix_appservice_slack_database_name: matrix_appservice_slack
|
matrix_appservice_slack_database_name: matrix_appservice_slack
|
||||||
matrix_appservice_slack_database_sslmode: disable
|
matrix_appservice_slack_database_sslmode: disable
|
||||||
|
|
||||||
|
# The name of the container network to use when importing a NeDB database into Postgres.
|
||||||
|
# For Postgres not working in a container, this can be left empty.
|
||||||
|
matrix_appservice_slack_database_container_network: ''
|
||||||
|
|
||||||
# This is just the Postgres connection string, if Postgres is used.
|
# This is just the Postgres connection string, if Postgres is used.
|
||||||
# Naming clashes with `matrix_appservice_slack_database_connectionString` somewhat.
|
# Naming clashes with `matrix_appservice_slack_database_connectionString` somewhat.
|
||||||
matrix_appservice_slack_database_connection_string: 'postgresql://{{ matrix_appservice_slack_database_username }}:{{ matrix_appservice_slack_database_password }}@{{ matrix_appservice_slack_database_hostname }}:{{ matrix_appservice_slack_database_port }}/{{ matrix_appservice_slack_database_name }}?sslmode={{ matrix_appservice_slack_database_sslmode }}'
|
matrix_appservice_slack_database_connection_string: 'postgresql://{{ matrix_appservice_slack_database_username }}:{{ matrix_appservice_slack_database_password }}@{{ matrix_appservice_slack_database_hostname }}:{{ matrix_appservice_slack_database_port }}/{{ matrix_appservice_slack_database_name }}?sslmode={{ matrix_appservice_slack_database_sslmode }}'
|
||||||
|
@ -40,7 +40,9 @@
|
|||||||
--rm
|
--rm
|
||||||
--user={{ matrix_user_uid }}:{{ matrix_user_gid }}
|
--user={{ matrix_user_uid }}:{{ matrix_user_gid }}
|
||||||
--cap-drop=ALL
|
--cap-drop=ALL
|
||||||
--network={{ matrix_docker_network }}
|
{% if matrix_appservice_slack_database_container_network %}
|
||||||
|
--network={{ matrix_appservice_irc_database_container_network }}
|
||||||
|
{% endif %}
|
||||||
--mount type=bind,src={{ matrix_appservice_slack_data_path }},dst=/data
|
--mount type=bind,src={{ matrix_appservice_slack_data_path }},dst=/data
|
||||||
--entrypoint=/bin/sh
|
--entrypoint=/bin/sh
|
||||||
{{ matrix_appservice_slack_docker_image }}
|
{{ matrix_appservice_slack_docker_image }}
|
||||||
|
Loading…
Reference in New Issue
Block a user