Add example configuration for Caddy v2 (#1985)

* Add example configuration for Caddy v2

Add a basic example how to get synapse-admin running behind Caddy v2 proxy.

* Improve working, fix typos

* Fix typos

Co-authored-by: Slavi Pantaleev <slavi@devture.com>
This commit is contained in:
vaivars 2022-07-29 08:33:42 +03:00 committed by GitHub
parent 5d7c5d122d
commit 05cfd48808
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,3 +62,15 @@ matrix_synapse_admin_container_extra_arguments:
# The Synapse Admin container uses port 80 by default # The Synapse Admin container uses port 80 by default
- '--label "traefik.http.services.matrix-synapse-admin.loadbalancer.server.port=80"' - '--label "traefik.http.services.matrix-synapse-admin.loadbalancer.server.port=80"'
``` ```
### Sample configuration for running behind Caddy v2
Below is a sample configuration for using this playbook with a [Caddy](https://caddyserver.com/v2) 2.0 reverse proxy (non-default configuration where `matrix-nginx-proxy` is disabled - `matrix_nginx_proxy_enabled: false`).
```caddy
# This is a basic configuration that will function the same as the default nginx proxy - exposing the synapse-admin panel to matrix.YOURSERVER.com/synapse-admin/
handle_path /synapse-admin* {
reverse_proxy localhost:8766 {
}
}
```