diff options
author | Christian Cleberg <hello@cleberg.net> | 2024-05-01 21:45:52 -0500 |
---|---|---|
committer | Christian Cleberg <hello@cleberg.net> | 2024-05-01 21:45:52 -0500 |
commit | dc1261d703ae1e1a14841b030888e3f87ff7c38f (patch) | |
tree | 71139c9021b09704b2d45be3b64d54e2acbae55f /content/blog/2022-11-07-self-hosting-matrix.md | |
parent | ba6b552c8256cc2e071c910ef7821c82443f1f82 (diff) | |
download | cleberg.net-dc1261d703ae1e1a14841b030888e3f87ff7c38f.tar.gz cleberg.net-dc1261d703ae1e1a14841b030888e3f87ff7c38f.tar.bz2 cleberg.net-dc1261d703ae1e1a14841b030888e3f87ff7c38f.zip |
prettier formatting and rewrap lines
Diffstat (limited to 'content/blog/2022-11-07-self-hosting-matrix.md')
-rw-r--r-- | content/blog/2022-11-07-self-hosting-matrix.md | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/content/blog/2022-11-07-self-hosting-matrix.md b/content/blog/2022-11-07-self-hosting-matrix.md index c98a48e..85de827 100644 --- a/content/blog/2022-11-07-self-hosting-matrix.md +++ b/content/blog/2022-11-07-self-hosting-matrix.md @@ -5,7 +5,7 @@ description = "" draft = false +++ -# Synpase +# Synapse If you're reading this, you likely know that [Synapse](https://github.com/matrix-org/synapse/) is a popular @@ -72,7 +72,7 @@ are a lot of other configuration options found in the [Configuring Synapse](https://matrix-org.github.io/synapse/develop/usage/configuration/config_documentation.html) documentation that can be enabled/disabled at any point. -``` yaml +```yaml server_name: "example.com" ``` @@ -97,7 +97,7 @@ doas nano /etc/nginx/http.d/example.com.conf If you already have TLS certificates for this domain (`example.com`), you can simply use the SSL configuration and point toward your TLS certificates. -``` conf +```conf server { listen 443 ssl http2; listen [::]:443 ssl http2; @@ -139,11 +139,11 @@ server { ``` If you need to generate TLS certificates (I recommend -[Certbot](https://certbot.eff.org/)), you'll need a more minimal Nginx conf -file before you can use the TLS-enabled example above. Instead, use this +[Certbot](https://certbot.eff.org/)), you'll need a more minimal Nginx conf file +before you can use the TLS-enabled example above. Instead, use this configuration file during the Certbot certificate generation process: -``` conf +```conf server { server_name example.com; location / { @@ -196,8 +196,8 @@ Router from the internet to your server's IP address. ## Adding Matrix Users -Finally, if you didn't enable public registration in the `homeserver.yaml` -file, you can manually create users via the command-line: +Finally, if you didn't enable public registration in the `homeserver.yaml` file, +you can manually create users via the command-line: ```sh cd ~/synapse |