{"id":22018397,"url":"https://github.com/flavienbwk/synapse-element-chat-docker","last_synced_at":"2026-04-29T14:04:33.126Z","repository":{"id":124243408,"uuid":"366848041","full_name":"flavienbwk/synapse-element-chat-docker","owner":"flavienbwk","description":"Start your own self-hosted, privacy-respectful, end-to-end encrypted chat and call application.","archived":false,"fork":false,"pushed_at":"2023-12-21T14:47:33.000Z","size":31,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-23T12:45:32.310Z","etag":null,"topics":["chat","docker","encryption","mobile-app","privacy","web-app"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flavienbwk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-12T20:39:47.000Z","updated_at":"2024-11-09T12:32:26.000Z","dependencies_parsed_at":"2023-12-21T16:35:38.286Z","dependency_job_id":"1ccdf2f1-3417-46a8-bb1a-31630576e7c7","html_url":"https://github.com/flavienbwk/synapse-element-chat-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/flavienbwk/synapse-element-chat-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavienbwk%2Fsynapse-element-chat-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavienbwk%2Fsynapse-element-chat-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavienbwk%2Fsynapse-element-chat-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavienbwk%2Fsynapse-element-chat-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flavienbwk","download_url":"https://codeload.github.com/flavienbwk/synapse-element-chat-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavienbwk%2Fsynapse-element-chat-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32428622,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T13:34:34.882Z","status":"ssl_error","status_checked_at":"2026-04-29T13:34:29.830Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chat","docker","encryption","mobile-app","privacy","web-app"],"created_at":"2024-11-30T05:12:06.243Z","updated_at":"2026-04-29T14:04:33.095Z","avatar_url":"https://github.com/flavienbwk.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# synapse-element-chat-docker\n\nStart your own self-hosted, privacy-respectful, end-to-end encrypted chat and call application.\n\n- Web app (included)\n- Mobile app ([Google Play](https://play.google.com/store/apps/details?id=im.vector.app) or [build from source](https://github.com/vector-im/element-android))\n- Desktop app ([download](https://element.io/get-started) or [build from source](https://github.com/vector-im/element-desktop))\n\n## Install\n\n### Initialization\n\nGenerating fresh config file and certificates (edit `SYNAPSE_SERVER_NAME` according to your configuration below) :\n\n```bash\ndocker-compose run --rm -e SYNAPSE_SERVER_NAME=localhost -e SYNAPSE_REPORT_STATS=no synapse generate\n\n# Temporary changing permissions for editing conf files\nsudo chown -R $USER ./synapse_data\nsudo chmod -R 755 ./synapse_data\n```\n\n3 files are generated under `synapse_data/` :\n\n- `homeserver.yaml` : synapse global config (including SSL)\n- `localhost.log.config` : logging strategy\n- `localhost.signing.key` : signing key\n\n**Append** the following lines in `homeserver.yaml` :\n\n```bash\nenable_registration: true\nenable_registration_without_verification: true\n```\n\nYou may want to disable it later.\n\n### SSL certificates\n\nWe're going to enable SSL certificates\n\n```bash\nopenssl genrsa -out ./synapse_data/localhost.tls.key 2048\nopenssl req -new -x509 -sha256 -days 1095 -subj \"/C=FR/ST=IDF/L=PARIS/O=EXAMPLE/CN=Synapse\" -key ./synapse_data/localhost.tls.key -out ./synapse_data/localhost.tls.crt\n```\n\nIn `./synapse_data/homeserver.yaml`, **append** the following lines :\n\n```bash\ntls_certificate_path: \"/data/localhost.tls.crt\"\ntls_private_key_path: \"/data/localhost.tls.key\"\n```\n\n**Remove** these lines :\n\n```yml\ntrusted_key_servers:\n  - server_name: \"matrix.org\"\n\n- port: 8008\n  tls: false\n  type: http\n  x_forwarded: true\n  \n  resources:\n    - names: [client, federation]\n      compress: false\n```\n\n**Append** these lines and edit content :\n\n  ```yml\n  trusted_key_servers:\n    - server_name: \"localhost\"\n      verify_keys:\n        \"ed25519:xxxxxxx\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        # Replace accordingly to `cat ./synapse_data/*.signing.key`\n  ```\n\n  ```yml\n  listeners:\n    - port: 8448\n      type: http\n      tls: true\n      resources:\n        - names: [client, federation]\n    - port: 8008\n      type: http\n      tls: false\n      resources:\n        - names: [client, federation]\n  ```\n\n  ```yml\n  # If using multiple Synapse instances\n  trusted_key_servers:\n    - server_name: \"localhost\"\n    - server_name: \"mydomain2\"\n    - server_name: \"mydomain3\"\n  ```\n\n:information_source: If you're using Cloudflare and getting 521 error, set Cloudflare's SSL policy to \"strict\".\n\n**Update** the value of synapse-admin's `REACT_APP_SERVER` variable to match the URL of your Matrix server. Ex: `https://localhost:8443` (without quotation marks)\n\n**Update** the value of synapse-admin's `PUBLIC_URL` variable to match the URL of your publicly-exposed Synapse endpoint. Ex: `https://localhost:8443/synapse-admin` (without quotation marks)\n\n### Postgres configuration\n\n**Remove** these lines :\n\n```yml\ndatabase:\n  name: sqlite3\n  args:\n    database: /data/homeserver.db\n```\n\n**Add** these lines :\n\n```yml\ndatabase:\n  name: psycopg2\n  args:\n    user: synapse_user\n    password: synapse_password\n    database: synapse\n    host: database\n    cp_min: 5\n    cp_max: 10\n```\n\n### Start\n\n```bash\n# Final conf file permissions\nsudo chmod -R 711 ./synapse_data\nsudo chown -R 991 ./synapse_data\n\ndocker-compose up -d\n```\n\nAdd a user as server admin :\n\n```bash\ndocker-compose exec synapse register_new_matrix_user -u \u003cUSERNAME\u003e -p \u003cPASSWORD\u003e -a http://localhost:8008 -c /data/homeserver.yaml\n```\n\nAccess the UI at `https://localhost:8443`\n\n## Administrate\n\nYou can access the Synapse Admin interface to manage users at `http://localhost:8999`\n\nMake sure to restrict access to this UI only to your administration network.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflavienbwk%2Fsynapse-element-chat-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflavienbwk%2Fsynapse-element-chat-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflavienbwk%2Fsynapse-element-chat-docker/lists"}