First draft for matrix server setup
This commit is contained in:
7
config/Caddyfile
Normal file
7
config/Caddyfile
Normal file
@@ -0,0 +1,7 @@
|
||||
matrix.{$DOMAIN} {
|
||||
reverse_proxy conduit:6167
|
||||
}
|
||||
|
||||
element.{$DOMAIN} {
|
||||
reverse_proxy element:80
|
||||
}
|
||||
17
config/conduit.toml
Normal file
17
config/conduit.toml
Normal 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}
|
||||
11
config/element_config.template.json
Normal file
11
config/element_config.template.json
Normal 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"
|
||||
}
|
||||
Reference in New Issue
Block a user