Signed-off-by: Suguru Hirahara <did🔑z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5>
pull/4695/head
| @@ -25,7 +25,7 @@ To enable the Zulip bridge, add the following configuration to your `inventory/h | |||||
| ```yaml | ```yaml | ||||
| matrix_zulip_bridge_enabled: true | matrix_zulip_bridge_enabled: true | ||||
| # Setting the owner is optional as the first local user to DM `@matrixzulipbridge:example.com` will be made the owner. | |||||
| # Setting the owner is optional as the first local user to DM `@zulipbridge:example.com` will be made the owner. | |||||
| # If you are not using a local user you must set it as otherwise you can't DM it at all. | # If you are not using a local user you must set it as otherwise you can't DM it at all. | ||||
| matrix_zulip_bridge_owner: "@alice:{{ matrix_domain }}" | matrix_zulip_bridge_owner: "@alice:{{ matrix_domain }}" | ||||
| ``` | ``` | ||||
| @@ -69,7 +69,7 @@ The shortcut commands with the [`just` program](just.md) are also available: `ju | |||||
| ## Usage | ## Usage | ||||
| To use the bridge, you need to start a chat with `@matrixzulipbridge:example.com` (where `example.com` is your base domain, not the `matrix.` domain). If the bridge ignores you and a DM is not accepted then the owner setting may be wrong. | |||||
| To use the bridge, you need to start a chat with `@zulipbridge:example.com` (where `example.com` is your base domain, not the `matrix.` domain). If the bridge ignores you and a DM is not accepted then the owner setting may be wrong. | |||||
| If you encounter issues or feel lost you can join the project room at [#matrixzulipbridge:shema.lv](https://matrix.to/#/#matrixzulipbridge:shema.lv) for help. | If you encounter issues or feel lost you can join the project room at [#matrixzulipbridge:shema.lv](https://matrix.to/#/#matrixzulipbridge:shema.lv) for help. | ||||
| @@ -343,7 +343,7 @@ devture_systemd_service_manager_services_list_auto: | | |||||
| + | + | ||||
| ([{'name': 'matrix-hookshot.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'hookshot', 'bridge-hookshot']}] if matrix_hookshot_enabled else []) | ([{'name': 'matrix-hookshot.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'hookshot', 'bridge-hookshot']}] if matrix_hookshot_enabled else []) | ||||
| + | + | ||||
| ([{'name': 'matrix-bridge-zulip.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'matrixzulipbridge']}] if matrix_zulip_bridge_enabled else []) | |||||
| ([{'name': 'matrix-zulip-bridge.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'zulip']}] if matrix_zulip_bridge_enabled else []) | |||||
| + | + | ||||
| ([{'name': 'matrix-mautrix-bluesky.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'mautrix-bluesky']}] if matrix_mautrix_bluesky_enabled else []) | ([{'name': 'matrix-mautrix-bluesky.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'mautrix-bluesky']}] if matrix_mautrix_bluesky_enabled else []) | ||||
| + | + | ||||
| @@ -2387,6 +2387,9 @@ matrix_zulip_bridge_enabled: false | |||||
| matrix_zulip_bridge_scheme: "{{ 'https' if matrix_playbook_ssl_enabled else 'http' }}" | matrix_zulip_bridge_scheme: "{{ 'https' if matrix_playbook_ssl_enabled else 'http' }}" | ||||
| # Set this to your Matrix ID if you want to enforce the owner, otherwise first _local_ user becomes one | |||||
| matrix_zulip_bridge_owner: "{{ matrix_admin if matrix_admin else '' }}" | |||||
| matrix_zulip_bridge_systemd_required_services_list_auto: | | matrix_zulip_bridge_systemd_required_services_list_auto: | | ||||
| {{ | {{ | ||||
| matrix_addons_homeserver_systemd_services_list | matrix_addons_homeserver_systemd_services_list | ||||
| @@ -26,9 +26,6 @@ matrix_zulip_bridge_docker_image_registry_prefix_upstream: "{{ matrix_zulip_brid | |||||
| matrix_zulip_bridge_docker_image_registry_prefix_upstream_default: ghcr.io/ | matrix_zulip_bridge_docker_image_registry_prefix_upstream_default: ghcr.io/ | ||||
| matrix_zulip_bridge_docker_image_force_pull: "{{ matrix_zulip_bridge_docker_image.endswith(':latest') }}" | matrix_zulip_bridge_docker_image_force_pull: "{{ matrix_zulip_bridge_docker_image.endswith(':latest') }}" | ||||
| # Set this to your Matrix ID if you want to enforce the owner, otherwise first _local_ user becomes one | |||||
| matrix_zulip_bridge_owner: "{{ matrix_admin if matrix_admin else '' }}" | |||||
| matrix_zulip_bridge_base_path: "{{ matrix_base_data_path }}/zulip" | matrix_zulip_bridge_base_path: "{{ matrix_base_data_path }}/zulip" | ||||
| matrix_zulip_bridge_container_network: "" | matrix_zulip_bridge_container_network: "" | ||||
| @@ -109,7 +106,7 @@ matrix_zulip_bridge_registration_yaml_bridge_zulip: | |||||
| # Besides registration information, it contains configuration (see the Zulip bridge key). | # Besides registration information, it contains configuration (see the Zulip bridge key). | ||||
| matrix_zulip_bridge_registration_yaml: | matrix_zulip_bridge_registration_yaml: | ||||
| id: zulipbridge | id: zulipbridge | ||||
| url: http://matrix-bridge-zulip:{{ matrix_zulip_bridge_container_http_port }} | |||||
| url: http://matrix-zulip-bridge:{{ matrix_zulip_bridge_container_http_port }} | |||||
| as_token: "{{ matrix_zulip_bridge_appservice_token }}" | as_token: "{{ matrix_zulip_bridge_appservice_token }}" | ||||
| hs_token: "{{ matrix_zulip_bridge_homeserver_token }}" | hs_token: "{{ matrix_zulip_bridge_homeserver_token }}" | ||||
| rate_limited: false | rate_limited: false | ||||
| @@ -55,8 +55,8 @@ | |||||
| driver: bridge | driver: bridge | ||||
| driver_options: "{{ devture_systemd_docker_base_container_networks_driver_options }}" | driver_options: "{{ devture_systemd_docker_base_container_networks_driver_options }}" | ||||
| - name: Ensure matrix-bridge-zulip.service installed | |||||
| - name: Ensure matrix-zulip-bridge.service installed | |||||
| ansible.builtin.template: | ansible.builtin.template: | ||||
| src: "{{ role_path }}/templates/systemd/matrix-bridge-zulip.service.j2" | |||||
| dest: "{{ devture_systemd_docker_base_systemd_path }}/matrix-bridge-zulip.service" | |||||
| src: "{{ role_path }}/templates/systemd/matrix-zulip-bridge.service.j2" | |||||
| dest: "{{ devture_systemd_docker_base_systemd_path }}/matrix-zulip-bridge.service" | |||||
| mode: "0644" | mode: "0644" | ||||
| @@ -8,7 +8,7 @@ | |||||
| --- | --- | ||||
| - name: Check existence of matrix-bridge-zulip service | - name: Check existence of matrix-bridge-zulip service | ||||
| ansible.builtin.stat: | ansible.builtin.stat: | ||||
| path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-bridge-zulip.service" | |||||
| path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-zulip-bridge.service" | |||||
| register: matrix_zulip_bridge_service_stat | register: matrix_zulip_bridge_service_stat | ||||
| - when: matrix_zulip_bridge_service_stat.stat.exists | bool | - when: matrix_zulip_bridge_service_stat.stat.exists | bool | ||||
| @@ -20,7 +20,7 @@ | |||||
| enabled: false | enabled: false | ||||
| daemon_reload: true | daemon_reload: true | ||||
| - name: Ensure matrix-bridge-zulip.service doesn't exist | |||||
| - name: Ensure matrix-zulip-bridge.service doesn't exist | |||||
| ansible.builtin.file: | ansible.builtin.file: | ||||
| path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-bridge-zulip.service" | |||||
| path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-zulip-bridge.service" | |||||
| state: absent | state: absent | ||||
| @@ -11,7 +11,7 @@ traefik.enable=true | |||||
| traefik.docker.network={{ matrix_zulip_bridge_container_labels_traefik_docker_network }} | traefik.docker.network={{ matrix_zulip_bridge_container_labels_traefik_docker_network }} | ||||
| {% endif %} | {% endif %} | ||||
| traefik.http.services.matrix-bridge-zulip.loadbalancer.server.port={{ matrix_zulip_bridge_container_http_port }} | |||||
| traefik.http.services.matrix-zulip-bridge.loadbalancer.server.port={{ matrix_zulip_bridge_container_http_port }} | |||||
| {% set middlewares = [] %} | {% set middlewares = [] %} | ||||