Configure IRC Matrix appservice
This commit is contained in:
parent
84694900e4
commit
1b3a6f7bf8
3 changed files with 22 additions and 33 deletions
|
@ -40,19 +40,20 @@
|
||||||
notify: Reload systemd daemons
|
notify: Reload systemd daemons
|
||||||
|
|
||||||
# TODO generate registration
|
# TODO generate registration
|
||||||
|
# node app.js -r -f irc-registration.yaml -u "http://localhost:9999" -c config.yaml -l ircbot
|
||||||
|
|
||||||
#- name: Copy appservice registration file
|
- name: Copy appservice registration file
|
||||||
# copy:
|
copy:
|
||||||
# src: "{{ service_path }}/discord-registration.yaml"
|
src: "{{ service_path }}/irc-registration.yaml"
|
||||||
# dest: "/etc/matrix-synapse/{{ service_name }}-registration.yaml"
|
dest: "/etc/matrix-synapse/{{ service_name }}-registration.yaml"
|
||||||
# owner: matrix-synapse
|
owner: matrix-synapse
|
||||||
# group: nogroup
|
group: nogroup
|
||||||
# mode: 0600
|
mode: 0600
|
||||||
# remote_src: yes
|
remote_src: yes
|
||||||
|
|
||||||
# Run
|
# Run
|
||||||
#- name: "Ensure that {{ service_name }} is started"
|
- name: "Ensure that {{ service_name }} is started"
|
||||||
# service:
|
service:
|
||||||
# name: "{{ service_name }}"
|
name: "{{ service_name }}"
|
||||||
# state: started
|
state: started
|
||||||
# enabled: true
|
enabled: true
|
||||||
|
|
|
@ -3,13 +3,13 @@
|
||||||
homeserver:
|
homeserver:
|
||||||
# The URL to the home server for client-server API calls, also used to form the
|
# The URL to the home server for client-server API calls, also used to form the
|
||||||
# media URLs as displayed in bridged IRC channels:
|
# media URLs as displayed in bridged IRC channels:
|
||||||
url: "https://auro.re"
|
url: "http://auro.re"
|
||||||
#
|
#
|
||||||
# The URL of the homeserver hosting media files. This is only used to transform
|
# The URL of the homeserver hosting media files. This is only used to transform
|
||||||
# mxc URIs to http URIs when bridging m.room.[file|image] events. Optional. By
|
# mxc URIs to http URIs when bridging m.room.[file|image] events. Optional. By
|
||||||
# default, this is the homeserver URL, specified above.
|
# default, this is the homeserver URL, specified above.
|
||||||
#
|
#
|
||||||
# media_url: "http://media.repo:8008"
|
media_url: "https://auro.re"
|
||||||
|
|
||||||
# Drop Matrix messages which are older than this number of seconds, according to
|
# Drop Matrix messages which are older than this number of seconds, according to
|
||||||
# the event's origin_server_ts.
|
# the event's origin_server_ts.
|
||||||
|
@ -62,7 +62,7 @@ ircService:
|
||||||
# Whether to use SSL or not. Default: false.
|
# Whether to use SSL or not. Default: false.
|
||||||
ssl: true
|
ssl: true
|
||||||
# Whether or not IRC server is using a self-signed cert or not providing CA Chain
|
# Whether or not IRC server is using a self-signed cert or not providing CA Chain
|
||||||
sslselfsign: false
|
sslselfsign: true
|
||||||
# Should the connection attempt to identify via SASL (if a server or user password is given)
|
# Should the connection attempt to identify via SASL (if a server or user password is given)
|
||||||
# If false, this will use PASS instead. If SASL fails, we do not fallback to PASS.
|
# If false, this will use PASS instead. If SASL fails, we do not fallback to PASS.
|
||||||
sasl: false
|
sasl: false
|
||||||
|
@ -127,7 +127,7 @@ ircService:
|
||||||
# it can service bridge-specific queries from the IRC-side e.g. so
|
# it can service bridge-specific queries from the IRC-side e.g. so
|
||||||
# real IRC clients have a way to change their Matrix display name.
|
# real IRC clients have a way to change their Matrix display name.
|
||||||
# See https://github.com/matrix-org/matrix-appservice-irc/issues/55
|
# See https://github.com/matrix-org/matrix-appservice-irc/issues/55
|
||||||
enabled: true
|
enabled: false
|
||||||
# The nickname to give the AS bot.
|
# The nickname to give the AS bot.
|
||||||
nick: "AuroreBot"
|
nick: "AuroreBot"
|
||||||
# The password to give to NickServ or IRC Server for this nick. Optional.
|
# The password to give to NickServ or IRC Server for this nick. Optional.
|
||||||
|
@ -165,7 +165,7 @@ ircService:
|
||||||
createAlias: true
|
createAlias: true
|
||||||
# Should the AS publish the new Matrix room to the public room list so
|
# Should the AS publish the new Matrix room to the public room list so
|
||||||
# anyone can see it? Default: true.
|
# anyone can see it? Default: true.
|
||||||
published: false
|
published: true
|
||||||
# What should the join_rule be for the new Matrix room? If 'public',
|
# What should the join_rule be for the new Matrix room? If 'public',
|
||||||
# anyone can join the room. If 'invite', only users with an invite can
|
# anyone can join the room. If 'invite', only users with an invite can
|
||||||
# join the room. Note that if an IRC channel has +k or +i set on it,
|
# join the room. Note that if an IRC channel has +k or +i set on it,
|
||||||
|
@ -217,7 +217,7 @@ ircService:
|
||||||
ircToMatrix:
|
ircToMatrix:
|
||||||
# Get a snapshot of all real IRC users on a channel (via NAMES) and
|
# Get a snapshot of all real IRC users on a channel (via NAMES) and
|
||||||
# join their virtual matrix clients to the room.
|
# join their virtual matrix clients to the room.
|
||||||
initial: false
|
initial: true
|
||||||
# Make virtual matrix clients join and leave rooms as their real IRC
|
# Make virtual matrix clients join and leave rooms as their real IRC
|
||||||
# counterparts join/part channels. Default: false.
|
# counterparts join/part channels. Default: false.
|
||||||
incremental: true
|
incremental: true
|
||||||
|
@ -225,24 +225,12 @@ ircService:
|
||||||
matrixToIrc:
|
matrixToIrc:
|
||||||
# Get a snapshot of all real Matrix users in the room and join all of
|
# Get a snapshot of all real Matrix users in the room and join all of
|
||||||
# them to the mapped IRC channel on startup. Default: false.
|
# them to the mapped IRC channel on startup. Default: false.
|
||||||
initial: false
|
initial: true
|
||||||
# Make virtual IRC clients join and leave channels as their real Matrix
|
# Make virtual IRC clients join and leave channels as their real Matrix
|
||||||
# counterparts join/leave rooms. Make sure your 'maxClients' value is
|
# counterparts join/leave rooms. Make sure your 'maxClients' value is
|
||||||
# high enough! Default: false.
|
# high enough! Default: false.
|
||||||
incremental: true
|
incremental: true
|
||||||
|
|
||||||
# Apply specific rules to Matrix rooms. Only matrix-to-IRC takes effect.
|
|
||||||
rooms:
|
|
||||||
|
|
||||||
# Apply specific rules to IRC channels. Only IRC-to-matrix takes effect.
|
|
||||||
channels:
|
|
||||||
|
|
||||||
mappings:
|
|
||||||
# 1:many mappings from IRC channels to room IDs on this IRC server.
|
|
||||||
# The matrix room must already exist. Your matrix client should expose
|
|
||||||
# the room ID in a "settings" page for the room.
|
|
||||||
# "#thepub": ["!kieouiJuedJoxtVdaG:localhost"]
|
|
||||||
|
|
||||||
# Configuration for virtual matrix users. The following variables are
|
# Configuration for virtual matrix users. The following variables are
|
||||||
# exposed:
|
# exposed:
|
||||||
# $NICK => The IRC nick
|
# $NICK => The IRC nick
|
||||||
|
|
|
@ -9,7 +9,7 @@ Conflicts=shutdown.target
|
||||||
Type=simple
|
Type=simple
|
||||||
User={{ service_user }}
|
User={{ service_user }}
|
||||||
WorkingDirectory={{ service_path }}
|
WorkingDirectory={{ service_path }}
|
||||||
ExecStart=/usr/bin/nodejs ./app.js -c config.yaml -f my_registration_file.yaml -p 9999
|
ExecStart=/usr/bin/nodejs ./app.js -c config.yaml -f irc-registration.yaml -p 9999
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=3
|
RestartSec=3
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue