debian.ansible.matrix.server/README.md

29 lines
857 B
Markdown
Raw Normal View History

2023-08-02 16:07:55 +02:00
# Dependencies
2023-08-02 16:09:42 +02:00
- debian.ansible.basics
- debian.ansible.docker
- debian.ansible.traefik.server
2023-08-04 11:23:09 +02:00
# Installation
2023-08-24 09:29:26 +02:00
```
2023-08-04 11:23:09 +02:00
ansible-playbook --connection=local --inventory $(hostname), --limit $(hostname) matrix.yml
2023-08-24 09:29:26 +02:00
```
2023-08-04 11:23:09 +02:00
# User Administration
Admin User is created while installation.
Username: mx-admin
Password can be found with
2023-08-24 09:29:26 +02:00
```
2023-08-04 11:23:09 +02:00
cat /home/docker/matrix.$(hostname)/env
2023-08-24 09:29:26 +02:00
```
2023-08-04 11:23:09 +02:00
Create a new user with
2023-08-24 09:29:26 +02:00
```
2023-08-04 11:23:09 +02:00
docker compose -f /home/docker/matrix.$(hostname)/docker-compose.yml exec -ti matrix.defiant.dedyn.io register_new_matrix_user -c /data/homeserver.yaml --no-admin http://localhost:8008
2023-08-24 09:29:26 +02:00
```
2023-08-04 11:23:09 +02:00
List users
. /home/docker/matrix.$(hostname)/env ; docker compose -f /home/docker/matrix.$(hostname)/docker-compose.yml exec -ti matrix.defiant.dedyn.io--db psql -U $POSTGRES_USER -d synapse -c "SELECT name from users"
# Debugging
https://federationtester.matrix.org
2023-08-24 09:29:26 +02:00