Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Arch Linux
infrastructure
Commits
ccf39d78
Verified
Commit
ccf39d78
authored
Feb 14, 2021
by
Jan Alexander Steffens (heftig)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
matrix: Use more consistent variable names for IRC config
parent
d4449415
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
roles/matrix/templates/irc-bridge.yaml.j2
roles/matrix/templates/irc-bridge.yaml.j2
+13
-13
No files found.
roles/matrix/templates/irc-bridge.yaml.j2
View file @
ccf39d78
...
...
@@ -43,7 +43,7 @@ homeserver:
# Configuration specific to the IRC service
ircService:
servers:
{% for address,
s
et
tings
in vault_matrix_secrets.irc_networks.items() %}
{% for address,
n
et
work
in vault_matrix_secrets.irc_networks.items() %}
# The address of the server to connect to.
"{{ address }}":
# A human-readable short name. This is used to label IRC status rooms
...
...
@@ -51,7 +51,7 @@ ircService:
# E.g. 'ExampleNet IRC Bridge status'.
# It is also used in the Third Party Lookup API as the instance `desc`
# property, where each server is an instance.
name: "{{ matrix_server_name }}—{{
s
et
tings
.name }}"
name: "{{ matrix_server_name }}—{{
n
et
work
.name }}"
additionalAddresses: []
#
...
...
@@ -67,7 +67,7 @@ ircService:
# icon: https://example.com/images/hash.png
# The port to connect to. Optional.
port: {{
s
et
tings
.port }}
port: {{
n
et
work
.port }}
# Whether to use SSL or not. Default: false.
ssl: true
# Whether or not IRC server is using a self-signed cert or not providing CA Chain
...
...
@@ -139,11 +139,11 @@ ircService:
# See https://github.com/matrix-org/matrix-appservice-irc/issues/55
enabled: true
# The nickname to give the AS bot.
nick: "{{
s
et
tings
.nick }}"
nick: "{{
n
et
work
.nick }}"
# The username to give to the AS bot. Defaults to "matrixbot"
username: "{{
s
et
tings
.username }}"
username: "{{
n
et
work
.username }}"
# The password to give to NickServ or IRC Server for this nick. Optional.
password: "{{
s
et
tings
.password }}"
password: "{{
n
et
work
.password }}"
#
# Join channels even if there are no Matrix users on the other side of
# the bridge. Set to false to prevent the bot from joining channels which have no
...
...
@@ -189,7 +189,7 @@ ircService:
# This should be set to the same thing as namespaces.users.group_id in irc_registration.
# This does not alter existing rooms.
# Leaving this option empty will not set the event.
groupId: "+{{
s
et
tings
.name }}:{{ matrix_server_name }}"
groupId: "+{{
n
et
work
.name }}:{{ matrix_server_name }}"
# Should created Matrix rooms be federated? If false, only users on the
# HS attached to this AS will be able to interact with this room.
# Default: true.
...
...
@@ -203,7 +203,7 @@ ircService:
# $CHANNEL => The IRC channel (e.g. "#python")
# This MUST have $CHANNEL somewhere in it.
# Default: '#irc_$SERVER_$CHANNEL'
aliasTemplate: "#{{
s
et
tings
.name }}_$CHANNEL"
aliasTemplate: "#{{
n
et
work
.name }}_$CHANNEL"
# A list of user IDs which the AS bot will send invites to in response
# to a !join. Only applies if joinRule is 'invite'. Default: []
# whitelist:
...
...
@@ -270,10 +270,10 @@ ircService:
# 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.
{% for channel,
confi
g in
s
et
tings
.mappings.items() %}
{% for channel,
mappin
g in
n
et
work
.mappings.items() %}
"{{ channel }}":
roomIds: ["{{
confi
g.room }}"]
key: "{{
confi
g.key }}"
roomIds: ["{{
mappin
g.room }}"]
key: "{{
mappin
g.key }}"
{% endfor %}
# Configuration for virtual matrix users. The following variables are
...
...
@@ -285,7 +285,7 @@ ircService:
# MUST have $NICK somewhere in it.
# Optional. Default: "@$SERVER_$NICK".
# Example: "@irc.example.com_Alice:example.com"
userTemplate: "@{{
s
et
tings
.name }}_$NICK"
userTemplate: "@{{
n
et
work
.name }}_$NICK"
# The display name to use for created matrix clients. This should have
# $NICK somewhere in it if it is specified. Can also use $SERVER to
# insert the IRC domain.
...
...
@@ -363,7 +363,7 @@ ircService:
# so check before setting this value. Some modes may not work as intended
# through the bridge e.g. caller ID as there is no way to /ACCEPT.
# Default: "" (no user modes)
userModes: "{{
s
et
tings
.user_modes }}"
userModes: "{{
n
et
work
.user_modes }}"
{% endfor %}
# Set information about the bridged channel in the room state, so that client's may
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment