matrix-docker-ansible-deploy/examples/caddy/matrix-synapse

29 lines
711 B
Plaintext
Raw Normal View History

https://matrix.DOMAIN {
# If you use your own certificates, your path may differ
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"
}
# Identity server traffic
proxy /_matrix/identity matrix-msisd:8090 {
transparent
}
proxy /_matrix/client/r0/user_directory/search matrix-msisd:8090 {
transparent
}
# Synapse Client<>Server API
proxy / matrix-synapse:8008 {
transparent
2019-05-09 14:20:26 +02:00
except /.well-known/ /_matrix/identity/ /_matrix/client/r0/user_directory/search
}
}