From c9761e53dd8bb6563b05f0ee12551b334f2617c1 Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Tue, 12 Mar 2019 18:33:32 +0100 Subject: [PATCH] Connect to Synapse --- roles/matrix-appservice-webhooks/tasks/main.yml | 8 ++++++-- .../systemd/matrix-appservice-webhooks.service.j2 | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/roles/matrix-appservice-webhooks/tasks/main.yml b/roles/matrix-appservice-webhooks/tasks/main.yml index cab48fb..a96c75b 100644 --- a/roles/matrix-appservice-webhooks/tasks/main.yml +++ b/roles/matrix-appservice-webhooks/tasks/main.yml @@ -4,7 +4,7 @@ - name: Clone matrix-appservice-webhooks project git: - repo: https://github.com/matrix-org/matrix-appservice-webhooks.git + repo: https://github.com/turt2live/matrix-appservice-webhooks.git dest: /var/local/matrix-appservice-webhooks/matrix-appservice-webhooks version: master become: true @@ -40,7 +40,11 @@ mode: 0644 notify: Reload systemd daemons -# TODO: See https://github.com/turt2live/matrix-appservice-webhooks +# TODO +# node index.js -r -u "http://localhost:9000" -c config/config.yaml +# cp /var/local/matrix-appservice-webhooks/matrix-appservice-webhooks/appservice-registration-webhooks.yaml /etc/matrix-synapse/appservice-registration-webhooks.yaml +# chown matrix-synapse:nogroup /etc/matrix-synapse/appservice-registration-webhooks.yaml 440 +# /etc/matrix-synapse/conf.d/app_service_config_files.yaml # Run #- name: Ensure that matrix-appservice-webhooks is started diff --git a/roles/matrix-appservice-webhooks/templates/systemd/matrix-appservice-webhooks.service.j2 b/roles/matrix-appservice-webhooks/templates/systemd/matrix-appservice-webhooks.service.j2 index 50614c2..9d8c6b6 100644 --- a/roles/matrix-appservice-webhooks/templates/systemd/matrix-appservice-webhooks.service.j2 +++ b/roles/matrix-appservice-webhooks/templates/systemd/matrix-appservice-webhooks.service.j2 @@ -10,7 +10,7 @@ Type=simple User=matrix-appservice-webhooks Group=matrix-appservice-webhooks WorkingDirectory=/var/local/matrix-appservice-webhooks/matrix-appservice-webhooks -ExecStart=/usr/bin/nodejs /var/local/matrix-appservice-webhooks/matrix-appservice-webhooks/app.js -c config.yaml -f my_registration_file.yaml -p 9999 +ExecStart=/usr/bin/nodejs index.js -p 9000 -c config/config.yaml -f appservice-registration-webhooks.yaml Restart=always [Install]