services-garbaye/podman-matrix
2021-06-13 19:03:38 +02:00
..
README.md Ajout des notes du service matrix en qualif 2021-06-13 19:03:38 +02:00

#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
# 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
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)