Ajout des notes du service matrix en qualif

This commit is contained in:
Loïc 2021-06-13 19:03:38 +02:00
parent f4f8bb92fe
commit 15cfb5cfe4

30
podman-matrix/README.md Normal file
View file

@ -0,0 +1,30 @@
``` bash
#export HTTPS_PROXY=socks5://localhost:XXXX
podman pull docker://matrixdotorg/synapse
podman volume create matrixdotorg_synapse-data
podman volume inspect --format '{{ .Mountpoint }}' matrixdotorg_synapse-data
podman unshare chown -R 991:991 `podman volume inspect --format '{{ .Mountpoint }}' matrixdotorg_synapse-data`
# 991 est l'UID/GID par défaut de matrix-synapse
podman run -it --name synapse-generate --mount type=volume,src=matrixdotorg_synapse-data,dst=/data -e SYNAPSE_SERVER_NAME=garbaye.fr -e SYNAPSE_REPORT_STATS=no matrixdotorg/synapse generate
podman rm synapse-generate
```
``` bash
# En root :
vim /home/podman-matrix/.local/share/containers/storage/volumes/matrixdotorg_synapse-data/_data/homeserver.yaml
53d52
< public_baseurl: https://qlf-matrix.garbaye.fr
1142d1140
< enable_registration: false
```
``` bash
podman run -d --name synapse --mount type=volume,src=matrixdotorg_synapse-data,dst=/data -p 8086:8008 matrixdotorg/synapse
podman stop synapse
podman start synapse
podman exec -ti synapse register_new_matrix_user -c /data/homeserver.yaml http://localhost:8008
```
Reste à faire:
Passer à Postgres
Password policy ?
Fédération+redis l 2831
Mettre en place l'enregistrement srv : `_matrix._tcp 86400 IN SRV 5 5 443 matrix` ou le /.well-known/matrix/server (cf https://github.com/matrix-org/synapse/blob/master/docs/delegate.md)