Pull mautrix config

- Include server name in discord channel room name
- Enable setting room info in gmessages
This commit is contained in:
Jade Ellis
2024-10-26 22:08:11 +01:00
parent 5cf2ca2400
commit d39001a081
6 changed files with 43 additions and 27 deletions
+3
View File
@@ -53,6 +53,9 @@
ansible.posix.synchronize: ansible.posix.synchronize:
src: ../stalwart/ src: ../stalwart/
dest: /etc/stalwart dest: /etc/stalwart
# Pull mautrix config:
# rsync --rsync-path="sudo rsync" -r -t -z -P --include "*/" --include="*.yaml" --exclude="*" ansible@213.32.25.24:/var/opt/mautrix/ ./mautrix
# - name: install linux-system-roles # - name: install linux-system-roles
# package: # package:
# name: linux-system-roles # name: linux-system-roles
+3
View File
@@ -0,0 +1,3 @@
*.db
*.db-*
*/logs/
+1 -10
View File
@@ -2,7 +2,6 @@
homeserver: homeserver:
# The address that this appservice can use to connect to the homeserver. # The address that this appservice can use to connect to the homeserver.
address: https://matrix.ellis.link address: https://matrix.ellis.link
# address: http://conduwuit
# The domain of the homeserver (also known as server_name, used for MXIDs, etc). # The domain of the homeserver (also known as server_name, used for MXIDs, etc).
domain: ellis.link domain: ellis.link
@@ -16,7 +15,6 @@ homeserver:
# Endpoint for reporting per-message status. # Endpoint for reporting per-message status.
message_send_checkpoint_endpoint: null message_send_checkpoint_endpoint: null
# Does the homeserver support https://github.com/matrix-org/matrix-spec-proposals/pull/2246? # Does the homeserver support https://github.com/matrix-org/matrix-spec-proposals/pull/2246?
# Doesn't seem to show up in conduwuit source as of 032b199
async_media: false async_media: false
# Should the bridge use a websocket for connecting to the homeserver? # Should the bridge use a websocket for connecting to the homeserver?
# The server side is currently not documented anywhere and is only implemented by mautrix-wsproxy, # The server side is currently not documented anywhere and is only implemented by mautrix-wsproxy,
@@ -30,7 +28,6 @@ homeserver:
appservice: appservice:
# The address that the homeserver can use to connect to this appservice. # The address that the homeserver can use to connect to this appservice.
address: https://mautrix-discord.ellis.link address: https://mautrix-discord.ellis.link
# address: http://mautrix-discord
# The hostname and port where this appservice should listen. # The hostname and port where this appservice should listen.
hostname: 0.0.0.0 hostname: 0.0.0.0
@@ -99,7 +96,7 @@ bridge:
# .GuildName - Guild name. # .GuildName - Guild name.
# .NSFW - Whether the channel is marked as NSFW. # .NSFW - Whether the channel is marked as NSFW.
# .Type - Channel type (see values at https://github.com/bwmarrin/discordgo/blob/v0.25.0/structs.go#L251-L267) # .Type - Channel type (see values at https://github.com/bwmarrin/discordgo/blob/v0.25.0/structs.go#L251-L267)
channel_name_template: '{{if or (eq .Type 3) (eq .Type 4)}}{{.Name}}{{else}}#{{.Name}}{{end}}' channel_name_template: '{{if or (eq .Type 3) (eq .Type 1)}}{{.Name}}{{else}}#{{.Name}} ({{.GuildName}}){{end}}'
# Displayname template for Discord guilds (bridged as spaces). # Displayname template for Discord guilds (bridged as spaces).
# Available variables: # Available variables:
# .Name - Guild name # .Name - Guild name
@@ -359,9 +356,3 @@ logging:
writers: writers:
- type: stdout - type: stdout
format: pretty-colored format: pretty-colored
# - type: file
# format: json
# filename: ./logs/mautrix-discord.log
# max_size: 100
# max_backups: 10
# compress: true
+3 -3
View File
@@ -1,8 +1,8 @@
id: mautrix-discord id: mautrix-discord
url: http://mautrix-discord url: http://mautrix-discord
as_token: 5ngb86SSXij50hLfnt1BC0K7NVmxiXlagCtmcXXVFFTqh76zUkX3FI7NyERXaAFD as_token: BeqHdZlIs5kscUgQG03TxLO6dWjjuFKTL0T0T5CGoBNxUfsAaYMGuNONgzrvXSni
hs_token: 1ni0upPYy21f5GTLvCGCvTqdYrv7d6NWiRvMaC2XahWluAL6fjqLvSCd5S3PiMsv hs_token: IvmSDAdVFV63hR7hjQDEDOptyyNm81JRvkr3l5l653lWG0MLJKlOc7mbNm0extWA
sender_localpart: K3hPufeGniHhdywShci90i8ZGRYu0YRF sender_localpart: zByRv7CUznpsLSEXztOuO05F3qhgRiqG
rate_limited: false rate_limited: false
namespaces: namespaces:
users: users:
+7 -2
View File
@@ -30,9 +30,10 @@ bridge:
personal_filtering_spaces: true personal_filtering_spaces: true
# Whether the bridge should set names and avatars explicitly for DM portals. # Whether the bridge should set names and avatars explicitly for DM portals.
# This is only necessary when using clients that don't support MSC4171. # This is only necessary when using clients that don't support MSC4171.
private_chat_portal_meta: false private_chat_portal_meta: true
# Should events be handled asynchronously within portal rooms? # Should events be handled asynchronously within portal rooms?
# If true, events may end up being out of order, but slow events won't block other ones. # If true, events may end up being out of order, but slow events won't block other ones.
# This is not yet safe to use.
async_events: false async_events: false
# Should every user have their own portals rather than sharing them? # Should every user have their own portals rather than sharing them?
# By default, users who are in the same group on the remote network will be # By default, users who are in the same group on the remote network will be
@@ -182,8 +183,12 @@ homeserver:
# Changing these values requires regeneration of the registration (except when noted otherwise) # Changing these values requires regeneration of the registration (except when noted otherwise)
appservice: appservice:
# The address that the homeserver can use to connect to this appservice. # The address that the homeserver can use to connect to this appservice.
# Like the homeserver address, a local non-https address is recommended when the bridge is on the same machine.
# If the bridge is elsewhere, you must secure the connection yourself (e.g. with https or wireguard)
# If you want to use https, you need to use a reverse proxy. The bridge does not have TLS support built in.
address: https://mautrix-gmessages.ellis.link address: https://mautrix-gmessages.ellis.link
# A public address that external services can use to reach this appservice. # A public address that external services can use to reach this appservice.
# This is only needed for things like public media. A reverse proxy is generally necessary when using this field.
# This value doesn't affect the registration file. # This value doesn't affect the registration file.
public_address: https://mautrix-gmessages.ellis.link public_address: https://mautrix-gmessages.ellis.link
@@ -312,7 +317,7 @@ backfill:
# Settings for backfilling threads within other backfills. # Settings for backfilling threads within other backfills.
threads: threads:
# Maximum number of messages to backfill in a new thread. # Maximum number of messages to backfill in a new thread.
max_initial_messages: 5000 max_initial_messages: 50000
# Settings for the backwards backfill queue. This only applies when connecting to # Settings for the backwards backfill queue. This only applies when connecting to
# Beeper as standard Matrix servers don't support inserting messages into history. # Beeper as standard Matrix servers don't support inserting messages into history.
queue: queue:
@@ -0,0 +1,14 @@
id: gmessages
url: https://mautrix-gmessages.ellis.link
as_token: APWnNkbbzv0qLd9ipuK7r6uYpSZz7p9PrbNU77YSPor6zaXAL8InKxPkgMpKH6KP
hs_token: Q8Ide055pQfvQwfDXusifJSscHkbB07DRaGoHQN39oj50DCbXiGXmTAYyCb61spa
sender_localpart: IDSTAgz6EZUIU4rLdnGkbeCT0fFUH14E
rate_limited: false
namespaces:
users:
- regex: ^@gmessagesbot:ellis\.link$
exclusive: true
- regex: ^@gmessages_mautrix_.*:ellis\.link$
exclusive: true
de.sorunome.msc2409.push_ephemeral: true
push_ephemeral: true