5
0
mirror of https://github.com/spantaleev/matrix-docker-ansible-deploy.git synced 2026-07-18 23:59:34 +00:00

Rename matrix_mautrix_googlechat_* variables to matrix_bridge_mautrix_googlechat_*

Part of adopting a uniform naming policy for bridge variables,
where the variable prefix matches the role directory name.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Slavi Pantaleev
2026-07-16 14:51:33 +03:00
parent 5ff45d47c3
commit b2fb403d31
10 changed files with 272 additions and 272 deletions
@@ -2,9 +2,9 @@
# Homeserver details
homeserver:
# The address that this appservice can use to connect to the homeserver.
address: {{ matrix_mautrix_googlechat_homeserver_address }}
address: {{ matrix_bridge_mautrix_googlechat_homeserver_address }}
# The domain of the homeserver (for MXIDs, etc).
domain: {{ matrix_mautrix_googlechat_homeserver_domain }}
domain: {{ matrix_bridge_mautrix_googlechat_homeserver_domain }}
# Whether or not to verify the SSL certificate of the homeserver.
# Only applies if address starts with https://
verify_ssl: true
@@ -13,7 +13,7 @@ homeserver:
# Changing these values requires regeneration of the registration.
appservice:
# The address that the homeserver can use to connect to this appservice.
address: {{ matrix_mautrix_googlechat_appservice_address }}
address: {{ matrix_bridge_mautrix_googlechat_appservice_address }}
# The hostname and port where this appservice should listen.
hostname: 0.0.0.0
@@ -27,24 +27,24 @@ appservice:
# Format examples:
# SQLite: sqlite:///filename.db
# Postgres: postgres://username:password@hostname/dbname
database: {{ matrix_mautrix_googlechat_appservice_database|to_json }}
database: {{ matrix_bridge_mautrix_googlechat_appservice_database|to_json }}
# The unique ID of this appservice.
id: googlechat
# Username of the appservice bot.
bot_username: {{ matrix_mautrix_googlechat_appservice_bot_username|to_json }}
bot_username: {{ matrix_bridge_mautrix_googlechat_appservice_bot_username|to_json }}
# Display name and avatar for bot. Set to "remove" to remove display name/avatar, leave empty
# to leave display name/avatar as-is.
bot_displayname: googlechat bridge bot
bot_avatar: mxc://maunium.net/FBXZnpfORkBEruORbikmleAy
# Authentication tokens for AS <-> HS communication.
as_token: "{{ matrix_mautrix_googlechat_appservice_token }}"
hs_token: "{{ matrix_mautrix_googlechat_homeserver_token }}"
as_token: "{{ matrix_bridge_mautrix_googlechat_appservice_token }}"
hs_token: "{{ matrix_bridge_mautrix_googlechat_homeserver_token }}"
# Prometheus telemetry config. Requires prometheus-client to be installed.
metrics:
enabled: {{ matrix_mautrix_googlechat_metrics_enabled | to_json }}
enabled: {{ matrix_bridge_mautrix_googlechat_metrics_enabled | to_json }}
listen_port: 8000
# Bridge config
@@ -67,7 +67,7 @@ bridge:
- name
# The prefix for commands. Only required in non-management rooms.
command_prefix: "{{ matrix_mautrix_googlechat_command_prefix }}"
command_prefix: "{{ matrix_bridge_mautrix_googlechat_command_prefix }}"
# Number of chats to sync (and create portals for) on startup/login.
# Maximum 20, set 0 to disable automatic syncing.
@@ -83,7 +83,7 @@ bridge:
# If set, custom puppets will be enabled automatically for local users
# instead of users having to find an access token and run `login-matrix`
# manually.
login_shared_secret: {{ matrix_mautrix_googlechat_login_shared_secret|to_json }}
login_shared_secret: {{ matrix_bridge_mautrix_googlechat_login_shared_secret|to_json }}
# Whether or not to update avatars when syncing all contacts at startup.
update_avatar_initial_sync: true
# End-to-bridge encryption support options. These require matrix-nio to be installed with pip
@@ -93,14 +93,14 @@ bridge:
# application service.
encryption:
# Allow encryption, work in group chat rooms with e2ee enabled
allow: {{ matrix_mautrix_googlechat_bridge_encryption_allow|to_json }}
allow: {{ matrix_bridge_mautrix_googlechat_bridge_encryption_allow|to_json }}
# Default to encryption, force-enable encryption in all portals the bridge creates
# This will cause the bridge bot to be in private chats for the encryption to work properly.
default: {{ matrix_mautrix_googlechat_bridge_encryption_default|to_json }}
default: {{ matrix_bridge_mautrix_googlechat_bridge_encryption_default|to_json }}
# Whether or not created rooms should have federation enabled.
# If false, created portal rooms will never be federated.
federate_rooms: {{ matrix_mautrix_googlechat_federate_rooms|to_json }}
federate_rooms: {{ matrix_bridge_mautrix_googlechat_federate_rooms|to_json }}
# Public website and API configs
web:
# Auth server config
@@ -110,8 +110,8 @@ bridge:
# or otherwise pointed to the appservice's webserver to the path specified below (prefix).
# This path should usually include a trailing slash.
# Internal prefix in the appservice web server for the login endpoints.
public: "{{ matrix_homeserver_url }}{{ matrix_mautrix_googlechat_public_endpoint }}/login"
prefix: "{{ matrix_mautrix_googlechat_public_endpoint }}/login"
public: "{{ matrix_homeserver_url }}{{ matrix_bridge_mautrix_googlechat_public_endpoint }}/login"
prefix: "{{ matrix_bridge_mautrix_googlechat_public_endpoint }}/login"
# Permissions for using the bridge.
@@ -122,7 +122,7 @@ bridge:
# * - All Matrix users
# domain - All users on that homeserver
# mxid - Specific user
permissions: {{ matrix_mautrix_googlechat_bridge_permissions|to_json }}
permissions: {{ matrix_bridge_mautrix_googlechat_bridge_permissions|to_json }}
# Python logging configuration.
#
@@ -142,11 +142,11 @@ logging:
formatter: colored
loggers:
mau:
level: {{ matrix_mautrix_googlechat_logging_level|to_json }}
level: {{ matrix_bridge_mautrix_googlechat_logging_level|to_json }}
hangups:
level: {{ matrix_mautrix_googlechat_logging_level|to_json }}
level: {{ matrix_bridge_mautrix_googlechat_logging_level|to_json }}
aiohttp:
level: {{ matrix_mautrix_googlechat_logging_level|to_json }}
level: {{ matrix_bridge_mautrix_googlechat_logging_level|to_json }}
root:
level: {{ matrix_mautrix_googlechat_logging_level|to_json }}
level: {{ matrix_bridge_mautrix_googlechat_logging_level|to_json }}
handlers: [console]
@@ -4,35 +4,35 @@ SPDX-FileCopyrightText: 2024 Slavi Pantaleev
SPDX-License-Identifier: AGPL-3.0-or-later
#}
{% if matrix_mautrix_googlechat_container_labels_traefik_enabled %}
{% if matrix_bridge_mautrix_googlechat_container_labels_traefik_enabled %}
traefik.enable=true
{% if matrix_mautrix_googlechat_container_labels_traefik_docker_network %}
traefik.docker.network={{ matrix_mautrix_googlechat_container_labels_traefik_docker_network }}
{% if matrix_bridge_mautrix_googlechat_container_labels_traefik_docker_network %}
traefik.docker.network={{ matrix_bridge_mautrix_googlechat_container_labels_traefik_docker_network }}
{% endif %}
traefik.http.services.matrix-mautrix-googlechat-public.loadbalancer.server.port=8080
traefik.http.services.matrix-mautrix-googlechat-metrics.loadbalancer.server.port=8000
{% if matrix_mautrix_googlechat_container_labels_public_endpoint_enabled %}
{% if matrix_bridge_mautrix_googlechat_container_labels_public_endpoint_enabled %}
############################################################
# #
# Public #
# #
############################################################
traefik.http.routers.matrix-mautrix-googlechat-public.rule={{ matrix_mautrix_googlechat_container_labels_public_endpoint_traefik_rule }}
traefik.http.routers.matrix-mautrix-googlechat-public.rule={{ matrix_bridge_mautrix_googlechat_container_labels_public_endpoint_traefik_rule }}
{% if matrix_mautrix_googlechat_container_labels_public_endpoint_traefik_priority | int > 0 %}
traefik.http.routers.matrix-mautrix-googlechat-public.priority={{ matrix_mautrix_googlechat_container_labels_public_endpoint_traefik_priority }}
{% if matrix_bridge_mautrix_googlechat_container_labels_public_endpoint_traefik_priority | int > 0 %}
traefik.http.routers.matrix-mautrix-googlechat-public.priority={{ matrix_bridge_mautrix_googlechat_container_labels_public_endpoint_traefik_priority }}
{% endif %}
traefik.http.routers.matrix-mautrix-googlechat-public.service=matrix-mautrix-googlechat-public
traefik.http.routers.matrix-mautrix-googlechat-public.entrypoints={{ matrix_mautrix_googlechat_container_labels_public_endpoint_traefik_entrypoints }}
traefik.http.routers.matrix-mautrix-googlechat-public.entrypoints={{ matrix_bridge_mautrix_googlechat_container_labels_public_endpoint_traefik_entrypoints }}
traefik.http.routers.matrix-mautrix-googlechat-public.tls={{ matrix_mautrix_googlechat_container_labels_public_endpoint_traefik_tls | to_json }}
{% if matrix_mautrix_googlechat_container_labels_public_endpoint_traefik_tls %}
traefik.http.routers.matrix-mautrix-googlechat-public.tls.certResolver={{ matrix_mautrix_googlechat_container_labels_public_endpoint_traefik_tls_certResolver }}
traefik.http.routers.matrix-mautrix-googlechat-public.tls={{ matrix_bridge_mautrix_googlechat_container_labels_public_endpoint_traefik_tls | to_json }}
{% if matrix_bridge_mautrix_googlechat_container_labels_public_endpoint_traefik_tls %}
traefik.http.routers.matrix-mautrix-googlechat-public.tls.certResolver={{ matrix_bridge_mautrix_googlechat_container_labels_public_endpoint_traefik_tls_certResolver }}
{% endif %}
############################################################
@@ -43,30 +43,30 @@ traefik.http.routers.matrix-mautrix-googlechat-public.tls.certResolver={{ matrix
{% endif %}
{% if matrix_mautrix_googlechat_container_labels_metrics_enabled %}
{% if matrix_bridge_mautrix_googlechat_container_labels_metrics_enabled %}
############################################################
# #
# Metrics #
# #
############################################################
{% if matrix_mautrix_googlechat_container_labels_metrics_middleware_basic_auth_enabled %}
traefik.http.middlewares.matrix-mautrix-googlechat-metrics-basic-auth.basicauth.users={{ matrix_mautrix_googlechat_container_labels_metrics_middleware_basic_auth_users }}
{% if matrix_bridge_mautrix_googlechat_container_labels_metrics_middleware_basic_auth_enabled %}
traefik.http.middlewares.matrix-mautrix-googlechat-metrics-basic-auth.basicauth.users={{ matrix_bridge_mautrix_googlechat_container_labels_metrics_middleware_basic_auth_users }}
traefik.http.routers.matrix-mautrix-googlechat-metrics.middlewares=matrix-mautrix-googlechat-metrics-basic-auth
{% endif %}
traefik.http.routers.matrix-mautrix-googlechat-metrics.rule={{ matrix_mautrix_googlechat_container_labels_metrics_traefik_rule }}
traefik.http.routers.matrix-mautrix-googlechat-metrics.rule={{ matrix_bridge_mautrix_googlechat_container_labels_metrics_traefik_rule }}
{% if matrix_mautrix_googlechat_container_labels_metrics_traefik_priority | int > 0 %}
traefik.http.routers.matrix-mautrix-googlechat-metrics.priority={{ matrix_mautrix_googlechat_container_labels_metrics_traefik_priority }}
{% if matrix_bridge_mautrix_googlechat_container_labels_metrics_traefik_priority | int > 0 %}
traefik.http.routers.matrix-mautrix-googlechat-metrics.priority={{ matrix_bridge_mautrix_googlechat_container_labels_metrics_traefik_priority }}
{% endif %}
traefik.http.routers.matrix-mautrix-googlechat-metrics.service=matrix-mautrix-googlechat-metrics
traefik.http.routers.matrix-mautrix-googlechat-metrics.entrypoints={{ matrix_mautrix_googlechat_container_labels_metrics_traefik_entrypoints }}
traefik.http.routers.matrix-mautrix-googlechat-metrics.entrypoints={{ matrix_bridge_mautrix_googlechat_container_labels_metrics_traefik_entrypoints }}
traefik.http.routers.matrix-mautrix-googlechat-metrics.tls={{ matrix_mautrix_googlechat_container_labels_metrics_traefik_tls | to_json }}
{% if matrix_mautrix_googlechat_container_labels_metrics_traefik_tls %}
traefik.http.routers.matrix-mautrix-googlechat-metrics.tls.certResolver={{ matrix_mautrix_googlechat_container_labels_metrics_traefik_tls_certResolver }}
traefik.http.routers.matrix-mautrix-googlechat-metrics.tls={{ matrix_bridge_mautrix_googlechat_container_labels_metrics_traefik_tls | to_json }}
{% if matrix_bridge_mautrix_googlechat_container_labels_metrics_traefik_tls %}
traefik.http.routers.matrix-mautrix-googlechat-metrics.tls.certResolver={{ matrix_bridge_mautrix_googlechat_container_labels_metrics_traefik_tls_certResolver }}
{% endif %}
############################################################
@@ -79,4 +79,4 @@ traefik.http.routers.matrix-mautrix-googlechat-metrics.tls.certResolver={{ matri
{% endif %}
{{ matrix_mautrix_googlechat_container_labels_additional_labels }}
{{ matrix_bridge_mautrix_googlechat_container_labels_additional_labels }}
@@ -1,11 +1,11 @@
#jinja2: lstrip_blocks: True
[Unit]
Description=Matrix Mautrix googlechat bridge
{% for service in matrix_mautrix_googlechat_systemd_required_services_list %}
{% for service in matrix_bridge_mautrix_googlechat_systemd_required_services_list %}
Requires={{ service }}
After={{ service }}
{% endfor %}
{% for service in matrix_mautrix_googlechat_systemd_wanted_services_list %}
{% for service in matrix_bridge_mautrix_googlechat_systemd_wanted_services_list %}
Wants={{ service }}
{% endfor %}
DefaultDependencies=no
@@ -22,21 +22,21 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \
--log-driver=none \
--user={{ matrix_user_uid }}:{{ matrix_user_gid }} \
--cap-drop=ALL \
--network={{ matrix_mautrix_googlechat_container_network }} \
{% if matrix_mautrix_googlechat_container_http_host_bind_port %}
-p {{ matrix_mautrix_googlechat_container_http_host_bind_port }}:8080 \
--network={{ matrix_bridge_mautrix_googlechat_container_network }} \
{% if matrix_bridge_mautrix_googlechat_container_http_host_bind_port %}
-p {{ matrix_bridge_mautrix_googlechat_container_http_host_bind_port }}:8080 \
{% endif %}
--mount type=bind,src={{ matrix_mautrix_googlechat_config_path }},dst=/config \
--mount type=bind,src={{ matrix_mautrix_googlechat_data_path }},dst=/data \
--label-file={{ matrix_mautrix_googlechat_base_path }}/labels \
{% for arg in matrix_mautrix_googlechat_container_extra_arguments %}
--mount type=bind,src={{ matrix_bridge_mautrix_googlechat_config_path }},dst=/config \
--mount type=bind,src={{ matrix_bridge_mautrix_googlechat_data_path }},dst=/data \
--label-file={{ matrix_bridge_mautrix_googlechat_base_path }}/labels \
{% for arg in matrix_bridge_mautrix_googlechat_container_extra_arguments %}
{{ arg }} \
{% endfor %}
{{ matrix_mautrix_googlechat_container_image }} \
{{ matrix_bridge_mautrix_googlechat_container_image }} \
python3 -m mautrix_googlechat -c /config/config.yaml --no-update
{% if matrix_mautrix_googlechat_container_network != 'host' %}
{% for network in matrix_mautrix_googlechat_container_additional_networks %}
{% if matrix_bridge_mautrix_googlechat_container_network != 'host' %}
{% for network in matrix_bridge_mautrix_googlechat_container_additional_networks %}
ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-mautrix-googlechat
{% endfor %}
{% endif %}