{"id":106,"date":"2023-02-19T09:48:25","date_gmt":"2023-02-19T08:48:25","guid":{"rendered":"https:\/\/blubb.fish\/?p=106"},"modified":"2023-02-19T09:48:26","modified_gmt":"2023-02-19T08:48:26","slug":"matrix-well-known","status":"publish","type":"post","link":"https:\/\/blubb.fish\/index.php\/2023\/02\/19\/matrix-well-known\/","title":{"rendered":"Matrix .well-known"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">To be fully discoverable you have to set up the .well-known.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">otherwise the federation will not work.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Test your federation settings with the <a href=\"https:\/\/federationtester.matrix.org\/\" data-type=\"URL\" data-id=\"https:\/\/federationtester.matrix.org\/\">tester<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">if not setup correctly you will see the check like this<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">has to be used without matrix.&lt;your-domain&gt;. only use &lt;your-domain&gt;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"643\" src=\"https:\/\/blubb.fish\/wp-content\/uploads\/2022\/03\/fed_check-1024x643.png\" alt=\"\" class=\"wp-image-107\" srcset=\"https:\/\/blubb.fish\/wp-content\/uploads\/2022\/03\/fed_check-1024x643.png 1024w, https:\/\/blubb.fish\/wp-content\/uploads\/2022\/03\/fed_check-300x188.png 300w, https:\/\/blubb.fish\/wp-content\/uploads\/2022\/03\/fed_check-768x482.png 768w, https:\/\/blubb.fish\/wp-content\/uploads\/2022\/03\/fed_check.png 1327w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">There are different ways to do this. depending on how you host websites.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">All information found <a href=\"https:\/\/github.com\/spantaleev\/matrix-docker-ansible-deploy\/blob\/master\/docs\/configuring-well-known.md\" data-type=\"URL\" data-id=\"https:\/\/github.com\/spantaleev\/matrix-docker-ansible-deploy\/blob\/master\/docs\/configuring-well-known.md\">here<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We will use the playbook version. which needs all domains to point to the matrix server (ex.: matrix.&lt;your-domain&gt; &amp; &lt;your-domain&gt;)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">See <a href=\"https:\/\/github.com\/spantaleev\/matrix-docker-ansible-deploy\/blob\/master\/docs\/configuring-playbook-base-domain-serving.md\" data-type=\"URL\" data-id=\"https:\/\/github.com\/spantaleev\/matrix-docker-ansible-deploy\/blob\/master\/docs\/configuring-playbook-base-domain-serving.md\">here<\/a> for additional information about setting up only matrix or a complex website on the same server<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">we have no additional website and all domains point to the server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">so we only have to add the following to inventory\/host_vars\/matrix.teichert.sh\/vars.yml<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>matrix_nginx_proxy_base_domain_serving_enabled: true<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">redeploy the config<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ansible-playbook -i inventory\/hosts setup.yml --tags=setup-all<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">restart all services<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ansible-playbook -i inventory\/hosts setup.yml --tags=start<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">afterwards it looks good.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"381\" src=\"https:\/\/blubb.fish\/wp-content\/uploads\/2022\/03\/working-1024x381.png\" alt=\"\" class=\"wp-image-112\" srcset=\"https:\/\/blubb.fish\/wp-content\/uploads\/2022\/03\/working-1024x381.png 1024w, https:\/\/blubb.fish\/wp-content\/uploads\/2022\/03\/working-300x112.png 300w, https:\/\/blubb.fish\/wp-content\/uploads\/2022\/03\/working-768x286.png 768w, https:\/\/blubb.fish\/wp-content\/uploads\/2022\/03\/working-1536x572.png 1536w, https:\/\/blubb.fish\/wp-content\/uploads\/2022\/03\/working-2048x762.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>To be fully discoverable you have to set up the .well-known. otherwise the federation will not work. Test your federation settings with the tester if not setup correctly you will see the check like this has to be used without matrix.&lt;your-domain&gt;. only use &lt;your-domain&gt; There are different ways to do this. depending on how you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,10],"tags":[],"class_list":["post-106","post","type-post","status-publish","format-standard","hentry","category-linux","category-matrix"],"_links":{"self":[{"href":"https:\/\/blubb.fish\/index.php\/wp-json\/wp\/v2\/posts\/106","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blubb.fish\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blubb.fish\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blubb.fish\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blubb.fish\/index.php\/wp-json\/wp\/v2\/comments?post=106"}],"version-history":[{"count":4,"href":"https:\/\/blubb.fish\/index.php\/wp-json\/wp\/v2\/posts\/106\/revisions"}],"predecessor-version":[{"id":123,"href":"https:\/\/blubb.fish\/index.php\/wp-json\/wp\/v2\/posts\/106\/revisions\/123"}],"wp:attachment":[{"href":"https:\/\/blubb.fish\/index.php\/wp-json\/wp\/v2\/media?parent=106"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blubb.fish\/index.php\/wp-json\/wp\/v2\/categories?post=106"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blubb.fish\/index.php\/wp-json\/wp\/v2\/tags?post=106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}