[Unit]
Description=Matrix IRC Bridge
Wants=synapse.service
After=network.target synapse.service

[Service]
User=synapse
WorkingDirectory=/var/lib/synapse/matrix-appservice-irc
ExecStart=/usr/bin/node app.js \
  -c /etc/synapse/irc-bridge.yaml \
  -f /etc/synapse/appservice-registration-irc.yaml
AmbientCapabilities=CAP_NET_BIND_SERVICE

[Install]
WantedBy=multi-user.target
