There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

Matrix Synapse, Caddy and Cloudflare

Hey everyone,

Has anyone been able to get matrix federation working with Caddy using CloudFlare SSL and proxy?

Here is my caddy file settings, the server works great but I failed the federation tester as it says there is no well-known located.


<span style="color:#323232;">example.com {
</span><span style="color:#323232;">
</span><span style="color:#323232;">        tls {
</span><span style="color:#323232;">                dns cloudflare "api_token"
</span><span style="color:#323232;">        }
</span><span style="color:#323232;">
</span><span style="color:#323232;">        header /.well-known/matrix/* Content-Type application/json
</span><span style="color:#323232;">        header /.well-known/matrix/* Access-Control-Allow-Origin *
</span><span style="color:#323232;">        respond /.well-known/matrix/server `{"m.server": "matrix.example.com:443"}`
</span><span style="color:#323232;">        respond /.well-known/matrix/client `{"m.homeserver":{"base_url":"https://matrix.example.com"},"m.ide
</span><span style="color:#323232;">ntity_server":{"base_url":"https://identity.example.com"}}`
</span><span style="color:#323232;">}
</span><span style="color:#323232;">
</span><span style="color:#323232;">*.example.com {
</span><span style="color:#323232;">
</span><span style="color:#323232;">        tls {
</span><span style="color:#323232;">                dns cloudflare "api_token"
</span><span style="color:#323232;">        }
</span><span style="color:#323232;">
</span><span style="color:#323232;">        @matrix host matrix.example.com
</span><span style="color:#323232;">        handle @matrix {
</span><span style="color:#323232;">                reverse_proxy /_matrix/* 10.10.10.10:8008
</span><span style="color:#323232;">                reverse_proxy /_synapse/client/* 10.10.10.10:8008
</span><span style="color:#323232;">        }
</span><span style="color:#323232;">
</span><span style="color:#323232;">        @element host element.example.com
</span><span style="color:#323232;">        handle @element {
</span><span style="color:#323232;">                reverse_proxy 10.10.10.10:8075
</span><span style="color:#323232;">        }
</span><span style="color:#323232;">
</span>

Any help would be greatly appreciated

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines