{"id":356,"date":"2024-04-08T20:19:52","date_gmt":"2024-04-08T12:19:52","guid":{"rendered":"https:\/\/jdzhao.com\/?p=356"},"modified":"2024-04-08T20:19:54","modified_gmt":"2024-04-08T12:19:54","slug":"matrix-synapse%e9%83%a8%e7%bd%b2%ef%bc%8c%e6%90%ad%e5%bb%ba%e4%b8%80%e4%b8%aa%e5%8e%bb%e4%b8%ad%e5%bf%83%e5%8c%96%e8%81%8a%e5%a4%a9%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"https:\/\/jdzhao.com\/en\/matrix-synapse%e9%83%a8%e7%bd%b2%ef%bc%8c%e6%90%ad%e5%bb%ba%e4%b8%80%e4%b8%aa%e5%8e%bb%e4%b8%ad%e5%bf%83%e5%8c%96%e8%81%8a%e5%a4%a9%e6%9c%8d%e5%8a%a1%e5%99%a8\/","title":{"rendered":"How to set up a matrix synapse server"},"content":{"rendered":"<p>I recently snagged a bargain on the domain ruoo.de, with an annual renewal cost of just under 2 euros. I've been planning to add a \"Contact the Webmaster\" feature to a couple of sites, but I found traditional email and Telegram options less than ideal. That led me to consider Matrix, making this domain perfect for setting up a server for personal use.<\/p>\n\n\n\n<p>Setting Up Matrix on Synapse :\nSynapse is the server implementation for Matrix. I've opted for a client-server separation approach, with the server preferably running on a robust SSD-equipped machine due to its extensive disk space requirements.<\/p>\n\n\n\n<p>Initial Setup with Docker:\nFirst, you need to install Docker on the server (details on installation are not covered here as they are readily available online).<\/p>\n\n\n\n<p>Next, create a working directory.<br><br>cd \/<br>mkdir -p \/var\/matrix-synapse-data\/<\/p>\n\n\n\n<p>Run the server initially to generate a default configuration file.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>docker run -it --rm -v \/var\/matrix-synapse-data\/:\/data\/ -e SYNAPSE_SERVER_NAME=ruoo.de -e SYNAPSE_REPORT_STATS=no matrixdotorg\/synapse:latest generate\ndocker run -d --name synapse -v \/var\/matrix-synapse-data\/:\/data\/ -p 8008:8008 -p 8009:8009 -p 8448:8448 matrixdotorg\/synapse:latest<\/code><\/pre>\n\n\n\n<p>After this, create an administrative user for easier management going forward.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>docker exec -it synapse register_new_matrix_user http:\/\/localhost:8008 -c \/data\/homeserver.yaml -a -u \u4f60\u60f3\u8981\u7684\u7528\u6237\u540d -p \u4f60\u60f3\u8981\u7684\u5bc6\u7801\n<\/code><\/pre>\n\n\n\n<p>Now, you can edit the server configuration file located at \/var\/matrix-synapse-data\/homeserver.yaml. The most critical settings are the database and registration configurations. For simplicity, I used SQLite3 as the database, but you can find configurations using PostgreSQL online. Here is an example of my server configuration for your reference.<code>homeserver.yaml<\/code>\u00a0.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>erver_name: \"ruoo.de\"\npid_file: \/data\/homeserver.pid\nlisteners:\n  - port: 8008\n    tls: false\n    type: http\n    x_forwarded: true\n    resources:\n      - names: &#91;client, federation]\n        compress: false\ndatabase:\n  name: sqlite3\n  args:\n    database: \/data\/homeserver.db\nlog_config: \"\/data\/ruoo.de.log.config\"\nmedia_store_path: \/data\/media_store\nregistration_shared_secret:\"xxxxxxxxxxxxxxx\"\nreport_stats: false\nmacaroon_secret_key: \"xxxxxxxxxxxxxxxx\"\nform_secret: \"xxxxxxxxx\"\nsigning_key_path: \"\/data\/ruoo.de.signing.key\"\ntrusted_key_servers:\n  - server_name: \"matrix.org\"\n\npresence:\n  enabled: true\n\nemail:\n  smtp_host: xxxxxxxxxxxxx #\u4f60\u7684smtp\u670d\u52a1\u5668\n  smtp_port: 465 #\u4e00\u822c\u662f465\n  smtp_user: \"xxxxxxxxxxx\" #\u81ea\u884c\u586b\u5199\n  smtp_pass: \"xxxxxxxxxxxxx\" #\u81ea\u884c\u586b\u5199\n  force_tls: true\n  require_transport_security: true\n  enable_tls: true\n  notif_from: \"xxxxxxxxxxxxxxx\" #\u4fee\u6539\u4e3a\u4f60\u60f3\u8981\u8bbe\u7f6e\u7684\u53d1\u4ef6\u4eba\u540d\u79f0\n  enable_notifs: true\n  notif_for_new_users: false\n  client_base_url: \"https:\/\/ruoo.de\" #\u4fee\u6539\u4e3a\u4f60\u7684\u5ba2\u6237\u7aef\u57df\u540d\n  validation_token_lifetime: 15m\n  invite_client_location: \"https:\/\/ruoo.de\" #\u4fee\u6539\u4e3a\u4f60\u7684\u5ba2\u6237\u7aef\u57df\u540d\nsuppress_key_server_warning: true\n\ndatabase:\n  name: sqlite3  #\u8fd9\u91cc\u4e3a\u4e86\u65b9\u4fbf\u8d77\u89c1\uff0c\u9009\u7528sqlite3\u4f5c\u4e3a\u6570\u636e\u5e93\u3002\u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528PostgreSQL\u6570\u636e\u5e93\uff0c\u53c2\u8003\u5b98\u65b9\u6587\u6863\u81ea\u884c\u914d\u7f6e\n  args:\n    database: \/data\/homeserver.db\n\nenable_registration: true\nenable_registration_without_verification: true<\/code><\/pre>\n\n\n\n<p>Restart and Verify : \nAfter saving your configurations, restart the server.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>docker ps\ndocker restart synapse<\/code><\/pre>\n\n\n\n<p>If you access your server using the IP or domain followed by port 8008 and see a specific page, it indicates everything is set up correctly.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"765\" src=\"https:\/\/jdzhao.com\/wp-content\/uploads\/2024\/04\/\u622a\u5c4f2024-04-08-20.13.47-1024x765.png?v=1712578433\" alt=\"\" class=\"wp-image-357\" style=\"width:462px;height:auto\" srcset=\"https:\/\/jdzhao.com\/wp-content\/uploads\/2024\/04\/\u622a\u5c4f2024-04-08-20.13.47-1024x765.png?v=1712578433 1024w, https:\/\/jdzhao.com\/wp-content\/uploads\/2024\/04\/\u622a\u5c4f2024-04-08-20.13.47-300x224.png?v=1712578433 300w, https:\/\/jdzhao.com\/wp-content\/uploads\/2024\/04\/\u622a\u5c4f2024-04-08-20.13.47-768x573.png?v=1712578433 768w, https:\/\/jdzhao.com\/wp-content\/uploads\/2024\/04\/\u622a\u5c4f2024-04-08-20.13.47-16x12.png?v=1712578433 16w, https:\/\/jdzhao.com\/wp-content\/uploads\/2024\/04\/\u622a\u5c4f2024-04-08-20.13.47.png?v=1712578433 1468w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Reverse Proxy Setup : \nThe backend configuration is now complete. Next, set up a reverse proxy using Nginx or Apache. If you are using a control panel like Baota or AMH, you can simply use the built-in reverse proxy feature to target the 127.0.0.1:8008 port.<\/p>\n\n\n\n<p>Client Setup : \nAt this point, any Matrix client can set the main server to ruoo.de for successful registration and use. Out of curiosity and to compare the speeds of different servers, I set up two different web clients, which you can try:<\/p>\n\n\n\n<p>Elements (Cloudflare proxy): https:\/\/room.ruoo.de<\/p>\n\n\n\n<p>Elements\uff08Cloudflare\u4ee3\u7406\uff09:  <a href=\"https:\/\/room.ruoo.de\">https:\/\/room.ruoo.de<\/a><\/p>\n\n\n\n<p>Cinny (Hong Kong server proxy): https:\/\/chat.ruoo.de <a href=\"https:\/\/chat.ruoo.de\">https:\/\/chat.ruoo.de<\/a><\/p>\n\n\n\n<p>I hope to write more about using Matrix at a later time. Meanwhile, feel free to register and use the web portals I've set up.<\/p>","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u64b8\u4e86\u4e00\u4e2aruoo.de\u7684\u4fbf\u5b9c\u7c73\uff0c\u4e00\u5e74\u7eed\u8d39\u4e5f\u624d\u4e0d\u52302\u6b27\uff0c\u6b63\u597d\u6700\u8fd1\u6709\u4e00\u4e24\u4e2a\u7ad9\u60f3\u52a0\u5165\u201c\u8054\u7cfb\u7ad9\u957f\u201d\u7684\u529f\u80fd\uff0c\u4f46\u662f\u53c8\u89c9 [&hellip;]<\/p>","protected":false},"author":1,"featured_media":357,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[5],"tags":[17],"class_list":["post-356","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-5","tag-matrix"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Matrix Synapse\u90e8\u7f72\uff0c\u642d\u5efa\u4e00\u4e2a\u53bb\u4e2d\u5fc3\u5316\u804a\u5929\u670d\u52a1\u5668 - \u91cd\u5149\u9601-Jundong&#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jdzhao.com\/en\/matrix-synapse\u90e8\u7f72\uff0c\u642d\u5efa\u4e00\u4e2a\u53bb\u4e2d\u5fc3\u5316\u804a\u5929\u670d\u52a1\u5668\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Matrix Synapse\u90e8\u7f72\uff0c\u642d\u5efa\u4e00\u4e2a\u53bb\u4e2d\u5fc3\u5316\u804a\u5929\u670d\u52a1\u5668 - \u91cd\u5149\u9601-Jundong&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"\u6700\u8fd1\u64b8\u4e86\u4e00\u4e2aruoo.de\u7684\u4fbf\u5b9c\u7c73\uff0c\u4e00\u5e74\u7eed\u8d39\u4e5f\u624d\u4e0d\u52302\u6b27\uff0c\u6b63\u597d\u6700\u8fd1\u6709\u4e00\u4e24\u4e2a\u7ad9\u60f3\u52a0\u5165\u201c\u8054\u7cfb\u7ad9\u957f\u201d\u7684\u529f\u80fd\uff0c\u4f46\u662f\u53c8\u89c9 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jdzhao.com\/en\/matrix-synapse\u90e8\u7f72\uff0c\u642d\u5efa\u4e00\u4e2a\u53bb\u4e2d\u5fc3\u5316\u804a\u5929\u670d\u52a1\u5668\/\" \/>\n<meta property=\"og:site_name\" content=\"\u91cd\u5149\u9601-Jundong&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2024-04-08T12:19:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-08T12:19:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/jdzhao.com\/wp-content\/uploads\/2024\/04\/\u622a\u5c4f2024-04-08-20.13.47.png?v=1712578433\" \/>\n\t<meta property=\"og:image:width\" content=\"1468\" \/>\n\t<meta property=\"og:image:height\" content=\"1096\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"MR.Zhao\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"MR.Zhao\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/jdzhao.com\/en\/matrix-synapse%e9%83%a8%e7%bd%b2%ef%bc%8c%e6%90%ad%e5%bb%ba%e4%b8%80%e4%b8%aa%e5%8e%bb%e4%b8%ad%e5%bf%83%e5%8c%96%e8%81%8a%e5%a4%a9%e6%9c%8d%e5%8a%a1%e5%99%a8\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/jdzhao.com\/en\/matrix-synapse%e9%83%a8%e7%bd%b2%ef%bc%8c%e6%90%ad%e5%bb%ba%e4%b8%80%e4%b8%aa%e5%8e%bb%e4%b8%ad%e5%bf%83%e5%8c%96%e8%81%8a%e5%a4%a9%e6%9c%8d%e5%8a%a1%e5%99%a8\/\"},\"author\":{\"name\":\"MR.Zhao\",\"@id\":\"https:\/\/jdzhao.com\/#\/schema\/person\/532d6b7e3c1da655148aba19b550ae62\"},\"headline\":\"Matrix Synapse\u90e8\u7f72\uff0c\u642d\u5efa\u4e00\u4e2a\u53bb\u4e2d\u5fc3\u5316\u804a\u5929\u670d\u52a1\u5668\",\"datePublished\":\"2024-04-08T12:19:52+00:00\",\"dateModified\":\"2024-04-08T12:19:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/jdzhao.com\/en\/matrix-synapse%e9%83%a8%e7%bd%b2%ef%bc%8c%e6%90%ad%e5%bb%ba%e4%b8%80%e4%b8%aa%e5%8e%bb%e4%b8%ad%e5%bf%83%e5%8c%96%e8%81%8a%e5%a4%a9%e6%9c%8d%e5%8a%a1%e5%99%a8\/\"},\"wordCount\":43,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/jdzhao.com\/#\/schema\/person\/532d6b7e3c1da655148aba19b550ae62\"},\"image\":{\"@id\":\"https:\/\/jdzhao.com\/en\/matrix-synapse%e9%83%a8%e7%bd%b2%ef%bc%8c%e6%90%ad%e5%bb%ba%e4%b8%80%e4%b8%aa%e5%8e%bb%e4%b8%ad%e5%bf%83%e5%8c%96%e8%81%8a%e5%a4%a9%e6%9c%8d%e5%8a%a1%e5%99%a8\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/jdzhao.com\/wp-content\/uploads\/2024\/04\/\u622a\u5c4f2024-04-08-20.13.47.png?v=1712578433\",\"keywords\":[\"matrix\"],\"articleSection\":[\"\u4e92\u8054\u7f51\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/jdzhao.com\/en\/matrix-synapse%e9%83%a8%e7%bd%b2%ef%bc%8c%e6%90%ad%e5%bb%ba%e4%b8%80%e4%b8%aa%e5%8e%bb%e4%b8%ad%e5%bf%83%e5%8c%96%e8%81%8a%e5%a4%a9%e6%9c%8d%e5%8a%a1%e5%99%a8\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jdzhao.com\/en\/matrix-synapse%e9%83%a8%e7%bd%b2%ef%bc%8c%e6%90%ad%e5%bb%ba%e4%b8%80%e4%b8%aa%e5%8e%bb%e4%b8%ad%e5%bf%83%e5%8c%96%e8%81%8a%e5%a4%a9%e6%9c%8d%e5%8a%a1%e5%99%a8\/\",\"url\":\"https:\/\/jdzhao.com\/en\/matrix-synapse%e9%83%a8%e7%bd%b2%ef%bc%8c%e6%90%ad%e5%bb%ba%e4%b8%80%e4%b8%aa%e5%8e%bb%e4%b8%ad%e5%bf%83%e5%8c%96%e8%81%8a%e5%a4%a9%e6%9c%8d%e5%8a%a1%e5%99%a8\/\",\"name\":\"Matrix Synapse\u90e8\u7f72\uff0c\u642d\u5efa\u4e00\u4e2a\u53bb\u4e2d\u5fc3\u5316\u804a\u5929\u670d\u52a1\u5668 - \u91cd\u5149\u9601-Jundong&#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\/\/jdzhao.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/jdzhao.com\/en\/matrix-synapse%e9%83%a8%e7%bd%b2%ef%bc%8c%e6%90%ad%e5%bb%ba%e4%b8%80%e4%b8%aa%e5%8e%bb%e4%b8%ad%e5%bf%83%e5%8c%96%e8%81%8a%e5%a4%a9%e6%9c%8d%e5%8a%a1%e5%99%a8\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/jdzhao.com\/en\/matrix-synapse%e9%83%a8%e7%bd%b2%ef%bc%8c%e6%90%ad%e5%bb%ba%e4%b8%80%e4%b8%aa%e5%8e%bb%e4%b8%ad%e5%bf%83%e5%8c%96%e8%81%8a%e5%a4%a9%e6%9c%8d%e5%8a%a1%e5%99%a8\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/jdzhao.com\/wp-content\/uploads\/2024\/04\/\u622a\u5c4f2024-04-08-20.13.47.png?v=1712578433\",\"datePublished\":\"2024-04-08T12:19:52+00:00\",\"dateModified\":\"2024-04-08T12:19:54+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/jdzhao.com\/en\/matrix-synapse%e9%83%a8%e7%bd%b2%ef%bc%8c%e6%90%ad%e5%bb%ba%e4%b8%80%e4%b8%aa%e5%8e%bb%e4%b8%ad%e5%bf%83%e5%8c%96%e8%81%8a%e5%a4%a9%e6%9c%8d%e5%8a%a1%e5%99%a8\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jdzhao.com\/en\/matrix-synapse%e9%83%a8%e7%bd%b2%ef%bc%8c%e6%90%ad%e5%bb%ba%e4%b8%80%e4%b8%aa%e5%8e%bb%e4%b8%ad%e5%bf%83%e5%8c%96%e8%81%8a%e5%a4%a9%e6%9c%8d%e5%8a%a1%e5%99%a8\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jdzhao.com\/en\/matrix-synapse%e9%83%a8%e7%bd%b2%ef%bc%8c%e6%90%ad%e5%bb%ba%e4%b8%80%e4%b8%aa%e5%8e%bb%e4%b8%ad%e5%bf%83%e5%8c%96%e8%81%8a%e5%a4%a9%e6%9c%8d%e5%8a%a1%e5%99%a8\/#primaryimage\",\"url\":\"https:\/\/jdzhao.com\/wp-content\/uploads\/2024\/04\/\u622a\u5c4f2024-04-08-20.13.47.png?v=1712578433\",\"contentUrl\":\"https:\/\/jdzhao.com\/wp-content\/uploads\/2024\/04\/\u622a\u5c4f2024-04-08-20.13.47.png?v=1712578433\",\"width\":1468,\"height\":1096},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jdzhao.com\/en\/matrix-synapse%e9%83%a8%e7%bd%b2%ef%bc%8c%e6%90%ad%e5%bb%ba%e4%b8%80%e4%b8%aa%e5%8e%bb%e4%b8%ad%e5%bf%83%e5%8c%96%e8%81%8a%e5%a4%a9%e6%9c%8d%e5%8a%a1%e5%99%a8\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/jdzhao.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Matrix Synapse\u90e8\u7f72\uff0c\u642d\u5efa\u4e00\u4e2a\u53bb\u4e2d\u5fc3\u5316\u804a\u5929\u670d\u52a1\u5668\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jdzhao.com\/#website\",\"url\":\"https:\/\/jdzhao.com\/\",\"name\":\"\u91cd\u5149\u9601-Jundong's Blog\",\"description\":\"\u4e00\u4e2a\u5206\u4eab\u751f\u6d3b\u7684\u81ea\u7559\u5730\",\"publisher\":{\"@id\":\"https:\/\/jdzhao.com\/#\/schema\/person\/532d6b7e3c1da655148aba19b550ae62\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jdzhao.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/jdzhao.com\/#\/schema\/person\/532d6b7e3c1da655148aba19b550ae62\",\"name\":\"MR.Zhao\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jdzhao.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/jdzhao.com\/wp-content\/uploads\/2024\/01\/cropped-4de75d49-562b-4335-a7d0-57a27272e5a3.webp\",\"contentUrl\":\"https:\/\/jdzhao.com\/wp-content\/uploads\/2024\/01\/cropped-4de75d49-562b-4335-a7d0-57a27272e5a3.webp\",\"width\":536,\"height\":525,\"caption\":\"MR.Zhao\"},\"logo\":{\"@id\":\"https:\/\/jdzhao.com\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/jdzhao.com\"],\"url\":\"https:\/\/jdzhao.com\/en\/author\/zhaojundong\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Matrix Synapse\u90e8\u7f72\uff0c\u642d\u5efa\u4e00\u4e2a\u53bb\u4e2d\u5fc3\u5316\u804a\u5929\u670d\u52a1\u5668 - \u91cd\u5149\u9601-Jundong&#039;s Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jdzhao.com\/en\/matrix-synapse\u90e8\u7f72\uff0c\u642d\u5efa\u4e00\u4e2a\u53bb\u4e2d\u5fc3\u5316\u804a\u5929\u670d\u52a1\u5668\/","og_locale":"en_US","og_type":"article","og_title":"Matrix Synapse\u90e8\u7f72\uff0c\u642d\u5efa\u4e00\u4e2a\u53bb\u4e2d\u5fc3\u5316\u804a\u5929\u670d\u52a1\u5668 - \u91cd\u5149\u9601-Jundong&#039;s Blog","og_description":"\u6700\u8fd1\u64b8\u4e86\u4e00\u4e2aruoo.de\u7684\u4fbf\u5b9c\u7c73\uff0c\u4e00\u5e74\u7eed\u8d39\u4e5f\u624d\u4e0d\u52302\u6b27\uff0c\u6b63\u597d\u6700\u8fd1\u6709\u4e00\u4e24\u4e2a\u7ad9\u60f3\u52a0\u5165\u201c\u8054\u7cfb\u7ad9\u957f\u201d\u7684\u529f\u80fd\uff0c\u4f46\u662f\u53c8\u89c9 [&hellip;]","og_url":"https:\/\/jdzhao.com\/en\/matrix-synapse\u90e8\u7f72\uff0c\u642d\u5efa\u4e00\u4e2a\u53bb\u4e2d\u5fc3\u5316\u804a\u5929\u670d\u52a1\u5668\/","og_site_name":"\u91cd\u5149\u9601-Jundong&#039;s Blog","article_published_time":"2024-04-08T12:19:52+00:00","article_modified_time":"2024-04-08T12:19:54+00:00","og_image":[{"width":1468,"height":1096,"url":"https:\/\/jdzhao.com\/wp-content\/uploads\/2024\/04\/\u622a\u5c4f2024-04-08-20.13.47.png?v=1712578433","type":"image\/png"}],"author":"MR.Zhao","twitter_card":"summary_large_image","twitter_misc":{"Written by":"MR.Zhao","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jdzhao.com\/en\/matrix-synapse%e9%83%a8%e7%bd%b2%ef%bc%8c%e6%90%ad%e5%bb%ba%e4%b8%80%e4%b8%aa%e5%8e%bb%e4%b8%ad%e5%bf%83%e5%8c%96%e8%81%8a%e5%a4%a9%e6%9c%8d%e5%8a%a1%e5%99%a8\/#article","isPartOf":{"@id":"https:\/\/jdzhao.com\/en\/matrix-synapse%e9%83%a8%e7%bd%b2%ef%bc%8c%e6%90%ad%e5%bb%ba%e4%b8%80%e4%b8%aa%e5%8e%bb%e4%b8%ad%e5%bf%83%e5%8c%96%e8%81%8a%e5%a4%a9%e6%9c%8d%e5%8a%a1%e5%99%a8\/"},"author":{"name":"MR.Zhao","@id":"https:\/\/jdzhao.com\/#\/schema\/person\/532d6b7e3c1da655148aba19b550ae62"},"headline":"Matrix Synapse\u90e8\u7f72\uff0c\u642d\u5efa\u4e00\u4e2a\u53bb\u4e2d\u5fc3\u5316\u804a\u5929\u670d\u52a1\u5668","datePublished":"2024-04-08T12:19:52+00:00","dateModified":"2024-04-08T12:19:54+00:00","mainEntityOfPage":{"@id":"https:\/\/jdzhao.com\/en\/matrix-synapse%e9%83%a8%e7%bd%b2%ef%bc%8c%e6%90%ad%e5%bb%ba%e4%b8%80%e4%b8%aa%e5%8e%bb%e4%b8%ad%e5%bf%83%e5%8c%96%e8%81%8a%e5%a4%a9%e6%9c%8d%e5%8a%a1%e5%99%a8\/"},"wordCount":43,"commentCount":0,"publisher":{"@id":"https:\/\/jdzhao.com\/#\/schema\/person\/532d6b7e3c1da655148aba19b550ae62"},"image":{"@id":"https:\/\/jdzhao.com\/en\/matrix-synapse%e9%83%a8%e7%bd%b2%ef%bc%8c%e6%90%ad%e5%bb%ba%e4%b8%80%e4%b8%aa%e5%8e%bb%e4%b8%ad%e5%bf%83%e5%8c%96%e8%81%8a%e5%a4%a9%e6%9c%8d%e5%8a%a1%e5%99%a8\/#primaryimage"},"thumbnailUrl":"https:\/\/jdzhao.com\/wp-content\/uploads\/2024\/04\/\u622a\u5c4f2024-04-08-20.13.47.png?v=1712578433","keywords":["matrix"],"articleSection":["\u4e92\u8054\u7f51"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/jdzhao.com\/en\/matrix-synapse%e9%83%a8%e7%bd%b2%ef%bc%8c%e6%90%ad%e5%bb%ba%e4%b8%80%e4%b8%aa%e5%8e%bb%e4%b8%ad%e5%bf%83%e5%8c%96%e8%81%8a%e5%a4%a9%e6%9c%8d%e5%8a%a1%e5%99%a8\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/jdzhao.com\/en\/matrix-synapse%e9%83%a8%e7%bd%b2%ef%bc%8c%e6%90%ad%e5%bb%ba%e4%b8%80%e4%b8%aa%e5%8e%bb%e4%b8%ad%e5%bf%83%e5%8c%96%e8%81%8a%e5%a4%a9%e6%9c%8d%e5%8a%a1%e5%99%a8\/","url":"https:\/\/jdzhao.com\/en\/matrix-synapse%e9%83%a8%e7%bd%b2%ef%bc%8c%e6%90%ad%e5%bb%ba%e4%b8%80%e4%b8%aa%e5%8e%bb%e4%b8%ad%e5%bf%83%e5%8c%96%e8%81%8a%e5%a4%a9%e6%9c%8d%e5%8a%a1%e5%99%a8\/","name":"Matrix Synapse\u90e8\u7f72\uff0c\u642d\u5efa\u4e00\u4e2a\u53bb\u4e2d\u5fc3\u5316\u804a\u5929\u670d\u52a1\u5668 - \u91cd\u5149\u9601-Jundong&#039;s Blog","isPartOf":{"@id":"https:\/\/jdzhao.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/jdzhao.com\/en\/matrix-synapse%e9%83%a8%e7%bd%b2%ef%bc%8c%e6%90%ad%e5%bb%ba%e4%b8%80%e4%b8%aa%e5%8e%bb%e4%b8%ad%e5%bf%83%e5%8c%96%e8%81%8a%e5%a4%a9%e6%9c%8d%e5%8a%a1%e5%99%a8\/#primaryimage"},"image":{"@id":"https:\/\/jdzhao.com\/en\/matrix-synapse%e9%83%a8%e7%bd%b2%ef%bc%8c%e6%90%ad%e5%bb%ba%e4%b8%80%e4%b8%aa%e5%8e%bb%e4%b8%ad%e5%bf%83%e5%8c%96%e8%81%8a%e5%a4%a9%e6%9c%8d%e5%8a%a1%e5%99%a8\/#primaryimage"},"thumbnailUrl":"https:\/\/jdzhao.com\/wp-content\/uploads\/2024\/04\/\u622a\u5c4f2024-04-08-20.13.47.png?v=1712578433","datePublished":"2024-04-08T12:19:52+00:00","dateModified":"2024-04-08T12:19:54+00:00","breadcrumb":{"@id":"https:\/\/jdzhao.com\/en\/matrix-synapse%e9%83%a8%e7%bd%b2%ef%bc%8c%e6%90%ad%e5%bb%ba%e4%b8%80%e4%b8%aa%e5%8e%bb%e4%b8%ad%e5%bf%83%e5%8c%96%e8%81%8a%e5%a4%a9%e6%9c%8d%e5%8a%a1%e5%99%a8\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jdzhao.com\/en\/matrix-synapse%e9%83%a8%e7%bd%b2%ef%bc%8c%e6%90%ad%e5%bb%ba%e4%b8%80%e4%b8%aa%e5%8e%bb%e4%b8%ad%e5%bf%83%e5%8c%96%e8%81%8a%e5%a4%a9%e6%9c%8d%e5%8a%a1%e5%99%a8\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jdzhao.com\/en\/matrix-synapse%e9%83%a8%e7%bd%b2%ef%bc%8c%e6%90%ad%e5%bb%ba%e4%b8%80%e4%b8%aa%e5%8e%bb%e4%b8%ad%e5%bf%83%e5%8c%96%e8%81%8a%e5%a4%a9%e6%9c%8d%e5%8a%a1%e5%99%a8\/#primaryimage","url":"https:\/\/jdzhao.com\/wp-content\/uploads\/2024\/04\/\u622a\u5c4f2024-04-08-20.13.47.png?v=1712578433","contentUrl":"https:\/\/jdzhao.com\/wp-content\/uploads\/2024\/04\/\u622a\u5c4f2024-04-08-20.13.47.png?v=1712578433","width":1468,"height":1096},{"@type":"BreadcrumbList","@id":"https:\/\/jdzhao.com\/en\/matrix-synapse%e9%83%a8%e7%bd%b2%ef%bc%8c%e6%90%ad%e5%bb%ba%e4%b8%80%e4%b8%aa%e5%8e%bb%e4%b8%ad%e5%bf%83%e5%8c%96%e8%81%8a%e5%a4%a9%e6%9c%8d%e5%8a%a1%e5%99%a8\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/jdzhao.com\/"},{"@type":"ListItem","position":2,"name":"Matrix Synapse\u90e8\u7f72\uff0c\u642d\u5efa\u4e00\u4e2a\u53bb\u4e2d\u5fc3\u5316\u804a\u5929\u670d\u52a1\u5668"}]},{"@type":"WebSite","@id":"https:\/\/jdzhao.com\/#website","url":"https:\/\/jdzhao.com\/","name":"\u91cd\u5149\u9601-Jundong's Blog","description":"\u4e00\u4e2a\u5206\u4eab\u751f\u6d3b\u7684\u81ea\u7559\u5730","publisher":{"@id":"https:\/\/jdzhao.com\/#\/schema\/person\/532d6b7e3c1da655148aba19b550ae62"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jdzhao.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/jdzhao.com\/#\/schema\/person\/532d6b7e3c1da655148aba19b550ae62","name":"MR.Zhao","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jdzhao.com\/#\/schema\/person\/image\/","url":"https:\/\/jdzhao.com\/wp-content\/uploads\/2024\/01\/cropped-4de75d49-562b-4335-a7d0-57a27272e5a3.webp","contentUrl":"https:\/\/jdzhao.com\/wp-content\/uploads\/2024\/01\/cropped-4de75d49-562b-4335-a7d0-57a27272e5a3.webp","width":536,"height":525,"caption":"MR.Zhao"},"logo":{"@id":"https:\/\/jdzhao.com\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/jdzhao.com"],"url":"https:\/\/jdzhao.com\/en\/author\/zhaojundong\/"}]}},"jetpack_featured_media_url":"https:\/\/jdzhao.com\/wp-content\/uploads\/2024\/04\/\u622a\u5c4f2024-04-08-20.13.47.png?v=1712578433","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/jdzhao.com\/en\/wp-json\/wp\/v2\/posts\/356","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jdzhao.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jdzhao.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jdzhao.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jdzhao.com\/en\/wp-json\/wp\/v2\/comments?post=356"}],"version-history":[{"count":1,"href":"https:\/\/jdzhao.com\/en\/wp-json\/wp\/v2\/posts\/356\/revisions"}],"predecessor-version":[{"id":358,"href":"https:\/\/jdzhao.com\/en\/wp-json\/wp\/v2\/posts\/356\/revisions\/358"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jdzhao.com\/en\/wp-json\/wp\/v2\/media\/357"}],"wp:attachment":[{"href":"https:\/\/jdzhao.com\/en\/wp-json\/wp\/v2\/media?parent=356"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jdzhao.com\/en\/wp-json\/wp\/v2\/categories?post=356"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jdzhao.com\/en\/wp-json\/wp\/v2\/tags?post=356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}