services-garbaye/podman-matrix
Gitouche 8ad3710f2e Matrix : fix creation/suppression du reseau (2) 2022-11-13 14:52:14 +01:00
..
.gitlab-ci.yml Fix CI 2022-11-05 19:55:06 +01:00
00_status.sh refactoring scripts identiques : pod status 2022-01-28 13:37:31 +01:00
05_freshinstall.sh Synapse : image to gitea? 2022-08-12 20:34:42 +02:00
10_install.sh Matrix : fix creation/suppression du reseau 2022-11-13 14:49:38 +01:00
20_enable.sh refactoring scripts identiques : pod enable 2022-01-28 13:15:48 +01:00
30_start.sh refactoring scripts identiques : pod start 2022-01-28 13:19:53 +01:00
40_stop.sh refactoring scripts identiques : pod stop 2022-01-28 13:23:34 +01:00
70_disable.sh refactoring scripts identiques : pod disable 2022-01-28 13:25:15 +01:00
80_destroy.sh Matrix : fix creation/suppression du reseau (2) 2022-11-13 14:52:14 +01:00
90_prune.sh mutualisation scripts prune 2022-02-10 22:18:42 +01:00
README.md Update README.md 2022-11-08 21:26:38 +00:00
ci_build-images.sh Synapse : image to gitea? 2 2022-08-12 20:43:45 +02:00
vars.sh Migration matrix podman 4.1 2022-11-05 19:11:16 +01:00

README.md

Matrix (Synapse)

Créer un utilisateur après le ./30_start.sh

podman exec -ti synapse register_new_matrix_user -c /data/homeserver.yaml http://localhost:8008

Accéder à l'administration de l'instance pour gérer les utilisateurs, salons, medias...

podman run --rm --rmi -p 8080:80 docker://awesometechnologies/synapse-admin

Se connecter ensuite à l'interface web avec un compte disposant des permissions "admistrateur serveur" sur http://localhost:8080

Reste à faire:

  • gérer les UID/GID et comptes utilisés dans les containers ?
  • Password policy ?
  • Fédération+redis l 2831

Restauration

À partir d'une copie des home utilisateur (volumes podman compris) dans /backup :

  • En tant qu'utilisateur podman-matrix :
podman volume create matrixdotorg_synapse-data
podman volume create matrixdotorg_synapse-pgsql
  • En tant que root :
rsync -a /backup/home/podman-matrix/.local/share/containers/storage/volumes/matrixdotorg_synapse-data/_data ~podman-matrix/.local/share/containers/storage/volumes/matrixdotorg_synapse-data/
rsync -a /backup/home/podman-matrix/.local/share/containers/storage/volumes/matrixdotorg_synapse-pgsql/_data ~podman-matrix/.local/share/containers/storage/volumes/matrixdotorg_synapse-pgsql/
chown -R podman-matrix:podman-users ~podman-matrix/.local/share/containers/storage/volumes/matrixdotorg_synapse-data/_data
chown -R podman-matrix:podman-users ~podman-matrix/.local/share/containers/storage/volumes/matrixdotorg_synapse-pgsql/_data
  • En tant qu'utilisateur podman-matrix :
podman unshare chown -R 999:999 ~/.local/share/containers/storage/volumes/matrixdotorg_synapse-pgsql/_data
podman unshare chown -R 991:991 ~/.local/share/containers/storage/volumes/matrixdotorg_synapse-data/_data
  • Exporter les variables d'environnement et procéder à l'installation normale (10_install.sh)