Coder Social home page Coder Social logo

runbgp / matrix-docker Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2 KB

Deploy your own Matrix homeserver with a single Docker Compose file using the Conduit homeserver and Cinny Matrix client with Caddy for SSL termination and reverse proxying.

License: MIT License

caddy cinny conduit decentralized docker docker-compose federation homeserver matrix self-hosted

matrix-docker's Introduction

matrix-docker

Deploy your own Matrix homeserver with a single Docker Compose file using the Conduit homeserver and Cinny Matrix client with Caddy for SSL termination and reverse proxying.

Prerequisites

  • Docker and Docker Compose installed on your server
  • Ports 80/tcp and 443/tcp open on your server
  • A domain name (e.g., example.com) with DNS records configured
  • Directories created for Caddy and Cinny configurations
  • Configuration files adjusted to your liking

DNS Configuration

Ensure you have the following DNS records set up for your domain:

  • A record for matrix.example.com pointing to your server's IP
  • A record for cinny.example.com pointing to your server's IP
  • A record for example.com pointing to another Caddy instance serving .well-known (Optional)

Setting Up .well-known (Optional)

For Matrix federation to work correctly, you need to serve a .well-known header on your root domain. This can be done easily with Caddy:

Caddyfile

{
	email [email protected]
}
example.com {
	root * /sites/example.com
	file_server
	header {
		Permissions-Policy interest-cohort=()
		Strict-Transport-Security max-age=31536000;
		X-Content-Type-Options nosniff
		X-Frame-Options DENY
		Referrer-Policy no-referrer-when-downgrade
	}
	header /.well-known/matrix/* Content-Type application/json
	header /.well-known/matrix/* Access-Control-Allow-Origin *
	respond /.well-known/matrix/server `{"m.server": "matrix.example.com:443"}`
	respond /.well-known/matrix/client `{"m.homeserver": {"base_url": "https://matrix.example.com"}}`
}

Test Federation (Optional)

Once you have configured DNS and deployed your Matrix homeserver, test federation via the Matrix Federation Tester: https://federationtester.matrix.org

matrix-docker's People

Contributors

runbgp avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.