.. | ||
README.md |
#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
#postgres
podman pull docker://postgres
podman volume create matrixdotorg_synapse-pgsql
# En root :
vim /home/podman-matrix/.local/share/containers/storage/volumes/matrixdotorg_synapse-data/_data/homeserver.yaml
< public_baseurl: https://qlf-matrix.garbaye.fr
< enable_registration: false
< database:
< name: psycopg2
< user: synapse
< password: mysecretpass
< database: synapse
< host: synapse-db
< port: 5432
< cp_min: 5
< cp_max: 10
podman pod create --publish 8086:8008 --name matrix
podman run -d --name synapse-db --pod matrix --mount type=volume,src=matrixdotorg_synapse-pgsql,dst=/var/lib/postgresql/data/synapse -e POSTGRES_PASSWORD=mysecretpass -e POSTGRES_USER=synapse -e POSTGRES_DB=synapse -e POSTGRES_INITDB_ARGS="--encoding=UTF8 --locale=C" -e PGDATA=/var/lib/postgresql/data/synapse postgres
podman run -d --name synapse --pod matrix --mount type=volume,src=matrixdotorg_synapse-data,dst=/data matrixdotorg/synapse
podman pod stop matrix
podman pod start matrix
podman exec -ti synapse register_new_matrix_user -c /data/homeserver.yaml http://localhost:8008
Reste à faire:
Un volume se attaché à synapse-db se crée avec un id unique mais je ne sais pas à quoi il correspond
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)