1
0
Fork 0
1Panel-Appstore/synapse
renovate[bot] b26141af44 chore(deps): update matrixdotorg/synapse docker tag to v1.128.0 (#3645)
* chore(deps): update matrixdotorg/synapse docker tag to v1.128.0

* Update app version [skip ci]

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-action update-app-version <githubaction@githubaction.com>
2025-04-09 22:45:42 +08:00
..
1.128.0 chore(deps): update matrixdotorg/synapse docker tag to v1.128.0 (#3645) 2025-04-09 22:45:42 +08:00
README.md feat: 修改应用 README 2023-09-21 16:22:29 +08:00
README_en.md Add various translations for i18n apps (#3475) 2025-03-25 16:59:32 +08:00
data.yml Add various translations for i18n apps (#3475) 2025-03-25 16:59:32 +08:00
logo.png feat:添加adguardhome、memcached、qiandao、lsky-pro、bitwarden、rustdesk、synapse (#187) 2023-07-04 10:01:00 +08:00

README_en.md

Synapse

Synapse is an open-source Matrix home server written and maintained by the Matrix.org Foundation.

Generate Configuration File

  • Before creating, use the following terminal command to generate the required configuration file. Modify the parameter my.matrix.host as needed:
docker run -it --rm \
  -v synapse-data:/data \  # Mount a volume to map the /data directory inside the container to the synapse-data volume
  -e SYNAPSE_SERVER_NAME=my.matrix.host \  # Set the public hostname of the Synapse server
  -e SYNAPSE_REPORT_STATS=no \  # Disable anonymous statistics reporting
  -e SYNAPSE_HTTP_PORT=8008 \  # Set the HTTP port Synapse listens on to 8008
  -e SYNAPSE_CONFIG_DIR=/data \  # Set the storage location for configuration files to /data
  -e SYNAPSE_DATA_DIR=/data \  # Set the storage location for persistent data to /data
  -e TZ=Asia/Shanghai \  # Set the container's timezone to Asia/Shanghai
  -e UID=1000 \  # Set the user ID running Synapse
  -e GID=1000 \  # Set the group ID running Synapse
  matrixdotorg/synapse:latest generate  # Run the latest version of the matrixdotorg/synapse image and execute the generate command to create configuration files

The default storage path for configuration files is in the synapse-data volume at /var/lib/docker/volumes/synapse-data/_data.

Create Application

Create Users

  • Create an admin account:
register_new_matrix_user  http://localhost:8008 -c /data/homeserver.yaml  -a -u <admin-username> -p <password>
  • Create a regular user account:
register_new_matrix_user  http://localhost:8008 -c /data/homeserver.yaml   --no-admin -u <username> -p <password>
  • View more commands and help:
register_new_matrix_user http://localhost:8008 -c /data/homeserver.yaml --help

Notes

All data is stored in the synapse-data volume. When deleting the application, if you need to completely clear the data, you must also delete the synapse-data volume.