Blog del Podcast
podcast      GitHub      Twitter   Telegram

Conduit. El matrix escrito en rust

Tiempo estimado de lectura: 2 minutos. 311 palabras. matrix

Conduit es un servidor de Matrix rápido y fácil de configurar, que simplemente funciona. 

Consume muy pocos recursos, así que puedes instalarlo en una  Raspberry Pi y alojar Matrix para tu familia, como sistema de notificaciones, amigos o empresa.

 

El objetivo de este proyecto es simplificar al máximo la creación de un servidor de matrix. No necesitas como en su versión original del proyecto en python, crear archivos de configuración.

 

Recuerda que este servidor a día de hoy, está en versión Beta, lo que quiere decir que puedes encontrar errores.

 

Docker Compose

Solo edita añadiendo la url de tu servidor, la variable CONDUIT_SERVER_NAME: matrix.dominio.duckdns.org

 

version: '3'

services:
homeserver:
### If you already built the Conduit image with 'docker build' or want to use a registry image,
### then you are ready to go.
image: matrixconduit/matrix-conduit:next #:next-alpine #latest #next-alpine # latest
container_name: matrix-conduit
### If you want to build a fresh image from the sources, then comment the image line and uncomment the
### build lines. If you want meaningful labels in your built Conduit image, you should run docker-compose like this:
### CREATED=$(date -u +'%Y-%m-%dT%H:%M:%SZ') VERSION=$(grep -m1 -o '[0-9].[0-9].[0-9]' Cargo.toml) docker-compose up -d
# build:
#     context: .
#     args:
#         CREATED: '2021-03-16T08:18:27Z'
#         VERSION: '0.1.0'
#         LOCAL: 'false'
#         GIT_REF: origin/master
restart: unless-stopped
ports:
- 8448:6167
networks:
- DockerLAN
volumes:
- db:/var/lib/matrix-conduit/
environment:
CONDUIT_SERVER_NAME: matrix.dominio.duckdns.org # EDIT THIS
CONDUIT_DATABASE_PATH: /var/lib/matrix-conduit/
CONDUIT_DATABASE_BACKEND: rocksdb
CONDUIT_PORT: 6167
CONDUIT_MAX_REQUEST_SIZE: 20_000_000 # in bytes, ~20 MB
CONDUIT_ALLOW_REGISTRATION: 'true'
CONDUIT_ALLOW_FEDERATION: 'false'
CONDUIT_TRUSTED_SERVERS: '["matrix.org"]'
#CONDUIT_MAX_CONCURRENT_REQUESTS: 100
#CONDUIT_LOG: info,rocket=off,_=off,sled=off
CONDUIT_ADDRESS: 0.0.0.0
CONDUIT_CONFIG: '' # Ignore this
#
### Uncomment if you want to use your own Element-Web App.
### Note: You need to provide a config.json for Element and you also need a second
###       Domain or Subdomain for the communication between Element and Conduit
### Config-Docs: https://github.com/vector-im/element-web/blob/develop/docs/config.md
# element-web:
#     image: vectorim/element-web:latest
#     restart: unless-stopped
#     ports:
#         - 8009:80
#     volumes:
#         - ./element_config.json:/app/config.json
#     depends_on:
#         - homeserver
volumes:
db:

Ahora levanta el docker-compose.yml

Iniciando en Matrix

Para crear las cuentas de matrix, lo haremos logeandonos en el servidor y creando la nueva cuenta desde el cliente. En el docker-compose anterior aparece la siguiente variable: CONDUIT_ALLOW_REGISTRATION: ‘true’

Una vez no quieras que se registre nadie más en tu servidor, cambia el true por false.

Logearte con Element

Para conectarte a tu servidor de matrix con element, es necesario añadir la ruta del servidor del siguiente modo:

No pongas la doble barra tras el https. En el resto de cliente si funciona

 

Fuentes


Publicado por Angel el Monday 11 July del 2022



También te puede interesar:




Powered by org-bash-blog

Written in OrgMode with Emacs and converted to HTML with Pandoc

Licencia de Creative Commons
Este obra está bajo una licencia de Creative Commons Reconocimiento-NoComercial-CompartirIgual 4.0 Internacional.