mirror of
https://gitlab.com/famedly/conduit.git
synced 2024-12-27 10:14:28 +01:00
Added Caddy to the web proxy examples
This commit is contained in:
parent
2fcb3c8b93
commit
23f29d1bda
1 changed files with 16 additions and 1 deletions
17
DEPLOY.md
17
DEPLOY.md
|
@ -156,7 +156,7 @@ sudo chmod 700 /var/lib/matrix-conduit/
|
|||
|
||||
## Setting up the Reverse Proxy
|
||||
|
||||
This depends on whether you use Apache, Nginx or another web server.
|
||||
This depends on whether you use Apache, Caddy, Nginx or another web server.
|
||||
|
||||
### Apache
|
||||
|
||||
|
@ -182,6 +182,19 @@ ProxyPassReverse /_matrix/ http://127.0.0.1:6167/_matrix/
|
|||
$ sudo systemctl reload apache2
|
||||
```
|
||||
|
||||
### Caddy
|
||||
Create `/etc/caddy/conf.d/conduit_caddyfile` and enter this (substitute for your server name).
|
||||
```caddy
|
||||
your.server.name, your.server.name:8448 {
|
||||
reverse_proxy /_matrix/* 127.0.0.1:6167
|
||||
}
|
||||
```
|
||||
That's it! Just start or enable the service and you're set.
|
||||
```bash
|
||||
$ sudo systemctl enable caddy
|
||||
```
|
||||
|
||||
|
||||
### Nginx
|
||||
|
||||
If you use Nginx and not Apache, add the following server section inside the http section of `/etc/nginx/nginx.conf`
|
||||
|
@ -216,6 +229,8 @@ $ sudo systemctl reload nginx
|
|||
|
||||
## SSL Certificate
|
||||
|
||||
If you chose Caddy as your web proxy SSL certificates are handled automatically and you can skip this step.
|
||||
|
||||
The easiest way to get an SSL certificate, if you don't have one already, is to install `certbot` and run this:
|
||||
|
||||
```bash
|
||||
|
|
Loading…
Reference in a new issue