2019-04-16 19:36:03 +02:00
|
|
|
https://matrix.DOMAIN {
|
2019-04-16 19:41:38 +02:00
|
|
|
# If you use your own certificates, your path may differ
|
2019-05-09 14:22:23 +02:00
|
|
|
# If you wish to use Caddy's built-in Let's Encrypt support, you can also supply an email address here
|
2019-04-16 19:36:03 +02:00
|
|
|
tls /matrix/ssl/config/live/matrix.DOMAIN/fullchain.pem /matrix/ssl/config/live/matrix.DOMAIN/privkey.pem
|
|
|
|
|
|
|
|
root /matrix/static-files
|
|
|
|
|
2021-10-28 11:16:43 +02:00
|
|
|
header / {
|
2019-04-16 19:36:03 +02:00
|
|
|
Access-Control-Allow-Origin *
|
|
|
|
Strict-Transport-Security "mag=age=31536000;"
|
|
|
|
X-Frame-Options "DENY"
|
|
|
|
X-XSS-Protection "1; mode=block"
|
|
|
|
}
|
|
|
|
|
2019-04-16 19:41:38 +02:00
|
|
|
# Identity server traffic
|
2021-10-28 11:16:43 +02:00
|
|
|
proxy /_matrix/identity matrix-ma1sd:8090 {
|
2019-04-16 19:36:03 +02:00
|
|
|
transparent
|
|
|
|
}
|
2021-10-28 11:16:43 +02:00
|
|
|
proxy /_matrix/client/r0/user_directory/search matrix-ma1sd:8090 {
|
2019-04-16 19:36:03 +02:00
|
|
|
transparent
|
|
|
|
}
|
|
|
|
|
2019-04-16 19:41:38 +02:00
|
|
|
# Synapse Client<>Server API
|
2022-11-20 16:43:30 +02:00
|
|
|
proxy /_matrix matrix-synapse-reverse-proxy-companion:8008 {
|
2020-10-26 10:36:38 +02:00
|
|
|
transparent
|
|
|
|
except /_matrix/identity/ /_matrix/client/r0/user_directory/search
|
|
|
|
}
|
2022-11-20 16:43:30 +02:00
|
|
|
proxy /_synapse/client matrix-synapse-reverse-proxy-companion:8008 {
|
2019-04-16 19:36:03 +02:00
|
|
|
transparent
|
|
|
|
}
|
|
|
|
}
|