vodoraslo.xyz/public/articles/blog/how-i-fixed-my-synapse-matrix-federation/index.html

54 lines
3.3 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
<html lang="en">
<head>
<title>How I Fixed My Synapse&#39;s Matrix Federation | vodoraslo</title>
<link rel="canonical" href="https://vodoraslo.xyz/">
<link rel='alternate' type='application/rss+xml' title="vodoraslo RSS" href='/index.xml'>
<link rel='stylesheet' type='text/css' href='/style.css'>
<link rel="icon" href="/favicon.ico">
<meta name="description" content="Federation issues I for the life of me couldn&rsquo;t get synapse&rsquo;s (matrix&rsquo;s) federation to work. It said that the encryption couldn&rsquo;t be trusted, i could join public rooms but i couldn&rsquo;t start any chats, i couldn&rsquo;t invite people to my rooms, i couldn&rsquo;t get invited to rooms.
How I fixed it Go to your homeserver.yaml file
nano /etc/matrix-synapse/homeserver.yaml and go all the way to the bottom or search for trusted_key_servers. it&rsquo;s probably going to be matrix."/>
<meta name="keywords" content="blog">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="index, follow">
<meta charset="utf-8">
</head>
<body>
<main>
<header><h1 id="tag_How I Fixed My Synapse&#39;s Matrix Federation">How I Fixed My Synapse&#39;s Matrix Federation</h1></header>
<article>
2023-05-18 17:28:55 +02:00
<div class="breadcrumbs">
2023-05-18 17:28:55 +02:00
<nav><a href="/">vodoraslo</a> /&#160<a href="/articles/">Articles</a> /&#160 How I Fixed My Synapse&#39;s Matrix Federation</nav>
</div>
<div class="post-content"><h2 id="federation-issues">Federation issues<a hidden class="anchor" aria-hidden="true" href="#federation-issues">#</a></h2>
<p>I for the life of me couldn&rsquo;t get synapse&rsquo;s (matrix&rsquo;s) federation to work. It said that the encryption couldn&rsquo;t be trusted, i could join public rooms but i couldn&rsquo;t start any chats, i couldn&rsquo;t invite people to my rooms, i couldn&rsquo;t get invited to rooms.</p>
<h2 id="how-i-fixed-it">How I fixed it<a hidden class="anchor" aria-hidden="true" href="#how-i-fixed-it">#</a></h2>
<p>Go to your <code>homeserver.yaml</code> file</p>
<div class="highlight"><pre tabindex="0" style="color:#b0c4de;background-color:#282c34;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>nano /etc/matrix-synapse/homeserver.yaml
</span></span></code></pre></div><p>and go all the way to the bottom or search for <code>trusted_key_servers</code>. it&rsquo;s probably going to be <code>matrix.org</code>. You should change it to the following by removing <code>matrix.org</code> and leave blank square brackets:</p>
<pre tabindex="0"><code>trusted_key_servers: []
</code></pre>
</div>
<div id="nextprev">
<a href="/library/ted-kaczynski/the-techies-wet-dreams/"><div id="prevart">Previous:<br>The Techie&#39;s Wet-Dreams</div></a>
</div>
<div style="padding-top: 1.5em" class="index-links">
<div style="clear:both" class=taglist>
Tags: [<a id="tag_blog" href="https://vodoraslo.xyz/tags/blog">Blog</a>]
</div>
</div>
</article>
</main>
<footer class="rssSvg">
2023-05-15 20:42:40 +02:00
<div style="padding-bottom: 0.7em; padding-top: 1em;" class="index-links"><a href="https://vodoraslo.xyz/">Homepage</a></div> <div><a href="/index.xml"><img src="/rss.svg" style="max-height:1.5em" alt="RSS Feed" title="Subscribe via RSS for updates."></a></div>
</footer>
</body>
</html>