diff --git a/roles/matrix-bridge-mautrix-wsproxy/defaults/main.yml b/roles/matrix-bridge-mautrix-wsproxy/defaults/main.yml index 73a0cf16f..59446ad2c 100644 --- a/roles/matrix-bridge-mautrix-wsproxy/defaults/main.yml +++ b/roles/matrix-bridge-mautrix-wsproxy/defaults/main.yml @@ -21,7 +21,7 @@ matrix_mautrix_wsproxy_appservice_address: "http://matrix-mautrix-wsproxy:{{ mat # A list of extra arguments to pass to the container -matrix_mautrix_wsproxy_container_extra_arguments: ["/usr/bin/mautrix-wsproxy -config /data/config.yaml"] +matrix_mautrix_wsproxy_container_extra_arguments: [] # List of systemd services that matrix-mautrix-wsproxy.service depends on. matrix_mautrix_wsproxy_systemd_required_services_list: ['docker.service'] diff --git a/roles/matrix-bridge-mautrix-wsproxy/templates/systemd/matrix-mautrix-wsproxy.service.j2 b/roles/matrix-bridge-mautrix-wsproxy/templates/systemd/matrix-mautrix-wsproxy.service.j2 index 807adea85..1dd17982a 100644 --- a/roles/matrix-bridge-mautrix-wsproxy/templates/systemd/matrix-mautrix-wsproxy.service.j2 +++ b/roles/matrix-bridge-mautrix-wsproxy/templates/systemd/matrix-mautrix-wsproxy.service.j2 @@ -24,14 +24,13 @@ ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-mautrix-wsprox --user={{ matrix_user_uid }}:{{ matrix_user_gid }} \ --cap-drop=ALL \ --network={{ matrix_docker_network }} \ - -v {{ matrix_mautrix_wsproxy_config_path }}:/config:z \ - -v {{ matrix_mautrix_wsproxy_data_path }}:/data:z \ + -v {{ matrix_mautrix_wsproxy_config_path }}:/data:z \ -p 29331:29331 \ {% for arg in matrix_mautrix_wsproxy_container_extra_arguments %} {{ arg }} \ {% endfor %} {{ matrix_mautrix_wsproxy_docker_image }} \ - /usr/bin/mautrix-wsproxy -config /config/config.yaml + /usr/bin/mautrix-wsproxy -config /data/config.yaml ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} kill matrix-mautrix-wsproxy 2>/dev/null' ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} rm matrix-mautrix-wsproxy 2>/dev/null'