mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
Pull mautrix config
- Include server name in discord channel room name - Enable setting room info in gmessages
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
*.db
|
||||||
|
*.db-*
|
||||||
|
*/logs/
|
||||||
@@ -2,10 +2,9 @@
|
|||||||
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
|
||||||
|
|
||||||
# What software is the homeserver running?
|
# What software is the homeserver running?
|
||||||
# Standard Matrix homeservers like Synapse, Dendrite and Conduit should just use "standard" here.
|
# Standard Matrix homeservers like Synapse, Dendrite and Conduit should just use "standard" here.
|
||||||
software: standard
|
software: standard
|
||||||
@@ -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,12 +28,11 @@ 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
|
||||||
port: 29334
|
port: 29334
|
||||||
|
|
||||||
# Database config.
|
# Database config.
|
||||||
database:
|
database:
|
||||||
# The database type. "sqlite3-fk-wal" and "postgres" are supported.
|
# The database type. "sqlite3-fk-wal" and "postgres" are supported.
|
||||||
@@ -53,7 +50,7 @@ appservice:
|
|||||||
# Parsed with https://pkg.go.dev/time#ParseDuration
|
# Parsed with https://pkg.go.dev/time#ParseDuration
|
||||||
max_conn_idle_time: null
|
max_conn_idle_time: null
|
||||||
max_conn_lifetime: null
|
max_conn_lifetime: null
|
||||||
|
|
||||||
# The unique ID of this appservice.
|
# The unique ID of this appservice.
|
||||||
id: mautrix-discord
|
id: mautrix-discord
|
||||||
# Appservice bot details.
|
# Appservice bot details.
|
||||||
@@ -71,7 +68,7 @@ appservice:
|
|||||||
# This may be necessary for large public instances with lots of messages going through.
|
# This may be necessary for large public instances with lots of messages going through.
|
||||||
# However, messages will not be guaranteed to be bridged in the same order they were sent in.
|
# However, messages will not be guaranteed to be bridged in the same order they were sent in.
|
||||||
async_transactions: false
|
async_transactions: false
|
||||||
|
|
||||||
# Authentication tokens for AS <-> HS communication. Autogenerated; do not modify.
|
# Authentication tokens for AS <-> HS communication. Autogenerated; do not modify.
|
||||||
as_token: "BeqHdZlIs5kscUgQG03TxLO6dWjjuFKTL0T0T5CGoBNxUfsAaYMGuNONgzrvXSni"
|
as_token: "BeqHdZlIs5kscUgQG03TxLO6dWjjuFKTL0T0T5CGoBNxUfsAaYMGuNONgzrvXSni"
|
||||||
hs_token: "IvmSDAdVFV63hR7hjQDEDOptyyNm81JRvkr3l5l653lWG0MLJKlOc7mbNm0extWA"
|
hs_token: "IvmSDAdVFV63hR7hjQDEDOptyyNm81JRvkr3l5l653lWG0MLJKlOc7mbNm0extWA"
|
||||||
@@ -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
|
||||||
@@ -213,10 +210,10 @@ bridge:
|
|||||||
login_shared_secret_map:
|
login_shared_secret_map:
|
||||||
ellis.link: "as_token:fR52cysNJ2s7MbQ7PscEfHIyiW"
|
ellis.link: "as_token:fR52cysNJ2s7MbQ7PscEfHIyiW"
|
||||||
pissing.dev: "as_token:fR52cysNJ2s7MbQ7PscEfHIyiW"
|
pissing.dev: "as_token:fR52cysNJ2s7MbQ7PscEfHIyiW"
|
||||||
|
|
||||||
# The prefix for commands. Only required in non-management rooms.
|
# The prefix for commands. Only required in non-management rooms.
|
||||||
command_prefix: '!discord'
|
command_prefix: '!discord'
|
||||||
|
|
||||||
# Messages sent upon joining a management room.
|
# Messages sent upon joining a management room.
|
||||||
# Markdown is supported. The defaults are listed below.
|
# Markdown is supported. The defaults are listed below.
|
||||||
management_room_text:
|
management_room_text:
|
||||||
@@ -251,7 +248,7 @@ bridge:
|
|||||||
# This can be used as a rough heuristic to disable backfilling in channels that are too active.
|
# This can be used as a rough heuristic to disable backfilling in channels that are too active.
|
||||||
# Currently only applies to missed message backfill.
|
# Currently only applies to missed message backfill.
|
||||||
max_guild_members: -1
|
max_guild_members: -1
|
||||||
|
|
||||||
# End-to-bridge encryption support options.
|
# End-to-bridge encryption support options.
|
||||||
#
|
#
|
||||||
# See https://docs.mau.fi/bridges/general/end-to-bridge-encryption.html for more info.
|
# See https://docs.mau.fi/bridges/general/end-to-bridge-encryption.html for more info.
|
||||||
@@ -328,7 +325,7 @@ bridge:
|
|||||||
# Disable rotating keys when a user's devices change?
|
# Disable rotating keys when a user's devices change?
|
||||||
# You should not enable this option unless you understand all the implications.
|
# You should not enable this option unless you understand all the implications.
|
||||||
disable_device_change_key_rotation: false
|
disable_device_change_key_rotation: false
|
||||||
|
|
||||||
# Settings for provisioning API
|
# Settings for provisioning API
|
||||||
provisioning:
|
provisioning:
|
||||||
# Prefix for the provisioning API paths.
|
# Prefix for the provisioning API paths.
|
||||||
@@ -338,7 +335,7 @@ bridge:
|
|||||||
shared_secret: KC4cswhfFcp59TP0Bdv1IEuw8lVPk7GXcyigzF8UBNAkPavCuiV6Khdg9dmcxD0W
|
shared_secret: KC4cswhfFcp59TP0Bdv1IEuw8lVPk7GXcyigzF8UBNAkPavCuiV6Khdg9dmcxD0W
|
||||||
# Enable debug API at /debug with provisioning authentication.
|
# Enable debug API at /debug with provisioning authentication.
|
||||||
debug_endpoints: false
|
debug_endpoints: false
|
||||||
|
|
||||||
# Permissions for using the bridge.
|
# Permissions for using the bridge.
|
||||||
# Permitted values:
|
# Permitted values:
|
||||||
# relay - Talk through the relaybot (if enabled), no access otherwise
|
# relay - Talk through the relaybot (if enabled), no access otherwise
|
||||||
@@ -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
|
|
||||||
@@ -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:
|
||||||
@@ -11,4 +11,4 @@ namespaces:
|
|||||||
- regex: ^@discord_mautrix_.*:ellis\.link$
|
- regex: ^@discord_mautrix_.*:ellis\.link$
|
||||||
exclusive: true
|
exclusive: true
|
||||||
de.sorunome.msc2409.push_ephemeral: true
|
de.sorunome.msc2409.push_ephemeral: true
|
||||||
push_ephemeral: true
|
push_ephemeral: true
|
||||||
|
|||||||
@@ -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:
|
||||||
@@ -425,4 +430,4 @@ logging:
|
|||||||
min_level: debug
|
min_level: debug
|
||||||
writers:
|
writers:
|
||||||
- type: stdout
|
- type: stdout
|
||||||
format: pretty-colored
|
format: pretty-colored
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user