Connect to Synapse

This commit is contained in:
Alexandre Iooss 2019-03-12 18:33:32 +01:00
parent 1a447b3807
commit c9761e53dd
2 changed files with 7 additions and 3 deletions

View file

@ -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

View file

@ -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]