doc:appunti:linux:sa:matrix
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:appunti:linux:sa:matrix [2026/09/03 11:16] – [Migrazione da virtual environment Python a container Docker] niccolo | doc:appunti:linux:sa:matrix [2026/09/04 15:05] (current) – [Permessi] niccolo | ||
|---|---|---|---|
| Line 429: | Line 429: | ||
| Viene creata la directory **/ | Viene creata la directory **/ | ||
| + | Nella radice di tale volume si devono copiare i file dalla vecchia installazione: | ||
| + | |||
| + | * **homeserver.yaml** | ||
| + | * **homeserver.signing.key** | ||
| + | * **log.yaml** | ||
| + | |||
| + | È consigliabile rinominare il file **homeserver.signing.key** usando il **SYNAPSE_SERVER_NAME**, | ||
| + | |||
| + | Si devono copiare anche il media store e la directory uploads originali nella radice del volume Docker, con questo mapping: | ||
| + | |||
| + | * **/ | ||
| + | * **/ | ||
| + | |||
| + | I parametri che è necessario aggiustare nel file homeserver.yaml sono: | ||
| + | |||
| + | < | ||
| + | log_config: "/ | ||
| + | media_store_path: | ||
| + | uploads_path: | ||
| + | signing_key_path: | ||
| + | bind_addresses: | ||
| + | - ' | ||
| + | database: | ||
| + | name: " | ||
| + | args: | ||
| + | ... | ||
| + | host: host.docker.internal | ||
| + | port: 5432 | ||
| + | </ | ||
| + | |||
| + | Sulla macchina origine si esegue il dump del database: | ||
| + | |||
| + | < | ||
| + | su - postgres -c " | ||
| + | > synapse-$(hostname)-$(date +%Y-%m-%d).dump | ||
| + | </ | ||
| + | |||
| + | Quindi sulla macchina destinazione si esegue il restore: | ||
| + | |||
| + | |||
| + | ==== Permessi ==== | ||
| + | |||
| + | Verificare che i file di configurazione siano leggibili solo dall' | ||
| + | |||
| + | < | ||
| + | cd / | ||
| + | chown 991:991 homeserver.yaml homeserver.signing.key | ||
| + | chmod 0600 homeserver.yaml homeserver.signing.key | ||
| + | </ | ||
| + | |||
| + | FIXME Anche il media_store e la directory uploads devono essere sistemate. | ||
| ===== Web References ===== | ===== Web References ===== | ||
doc/appunti/linux/sa/matrix.1788427003.txt.gz · Last modified: by niccolo
