First draft for matrix server setup

This commit is contained in:
DrHaid
2026-02-14 15:58:18 +01:00
parent 05acfad916
commit 65d27b0ec0
7 changed files with 135 additions and 1 deletions

7
config/Caddyfile Normal file
View File

@@ -0,0 +1,7 @@
matrix.{$DOMAIN} {
reverse_proxy conduit:6167
}
element.{$DOMAIN} {
reverse_proxy element:80
}

17
config/conduit.toml Normal file
View File

@@ -0,0 +1,17 @@
[global]
server_name = "matrix.${DOMAIN}"
database_backend = "rocksdb"
database_path = "/var/lib/matrix-conduit/"
address = "0.0.0.0"
port = 6167
# Turn on only long enough to create your first accounts
allow_registration = true
allow_federation = false
# TURN configuration
turn_uris = ["turn:${DOMAIN}:3478?transport=udp","turns:${DOMAIN}:5349?transport=tcp"]
turn_secret = ${COTURN_AUTH_SECRET}

View File

@@ -0,0 +1,11 @@
{
"default_server_config": {
"m.homeserver": {
"base_url": "https://matrix.${DOMAIN}",
"server_name": "matrix.${DOMAIN}"
}
},
"disable_custom_urls": true,
"disable_guests": true,
"brand": "My Matrix"
}