2019-04-16 17:36:03 +00:00
|
|
|
https://matrix.DOMAIN {
|
2019-04-16 17:41:38 +00:00
|
|
|
# If you use your own certificates, your path may differ
|
2019-05-09 12:22:23 +00: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 17:36:03 +00:00
|
|
|
tls /matrix/ssl/config/live/matrix.DOMAIN/fullchain.pem /matrix/ssl/config/live/matrix.DOMAIN/privkey.pem
|
|
|
|
|
|
|
|
root /matrix/static-files
|
|
|
|
|
|
|
|
header {
|
|
|
|
Access-Control-Allow-Origin *
|
|
|
|
Strict-Transport-Security "mag=age=31536000;"
|
|
|
|
X-Frame-Options "DENY"
|
|
|
|
X-XSS-Protection "1; mode=block"
|
|
|
|
}
|
|
|
|
|
2019-04-16 17:41:38 +00:00
|
|
|
# Identity server traffic
|
2019-04-16 17:36:03 +00:00
|
|
|
proxy /_matrix/identity matrix-msisd:8090 {
|
|
|
|
transparent
|
|
|
|
}
|
|
|
|
proxy /_matrix/client/r0/user_directory/search matrix-msisd:8090 {
|
|
|
|
transparent
|
|
|
|
}
|
|
|
|
|
2019-04-16 17:41:38 +00:00
|
|
|
# Synapse Client<>Server API
|
2020-10-26 08:36:38 +00:00
|
|
|
proxy /_matrix matrix-synapse:8008 {
|
|
|
|
transparent
|
|
|
|
except /_matrix/identity/ /_matrix/client/r0/user_directory/search
|
|
|
|
}
|
|
|
|
proxy /_synapse/client matrix-synapse:8008 {
|
2019-04-16 17:36:03 +00:00
|
|
|
transparent
|
|
|
|
}
|
|
|
|
}
|