2023-05-25 20:45:09 +00:00
matrix.example.tld {
2021-12-20 18:50:05 +00:00
2020-09-12 08:52:25 +00:00
handle {
encode zstd gzip
2023-05-25 20:45:09 +00:00
reverse_proxy localhost:81 {
2020-09-12 08:52:25 +00:00
header_up X-Forwarded-Port {http.request.port}
header_up X-Forwarded-TlsProto {tls_protocol}
header_up X-Forwarded-TlsCipher {tls_cipher}
header_up X-Forwarded-HttpsProto {proto}
}
}
}
2023-05-25 20:45:09 +00:00
matrix.example.tld:8448 {
2020-09-13 01:11:37 +00:00
handle {
encode zstd gzip
2020-09-12 08:52:25 +00:00
2023-05-25 20:45:09 +00:00
reverse_proxy 127.0.0.1:8449 {
2020-09-13 01:11:37 +00:00
header_up X-Forwarded-Port {http.request.port}
header_up X-Forwarded-TlsProto {tls_protocol}
header_up X-Forwarded-TlsCipher {tls_cipher}
header_up X-Forwarded-HttpsProto {proto}
}
}
2020-09-12 08:52:25 +00:00
}
2020-12-29 11:00:01 +00:00
2023-05-25 20:45:09 +00:00
example.tld {
# Uncomment this if you are following "(Option 3): Setting up reverse-proxying of the well-known files from the base domain's server to the Matrix server" of https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/master/docs/configuring-well-known.md#option-3-setting-up-reverse-proxying-of-the-well-known-files-from-the-base-domains-server-to-the-matrix-server
@wellknown {
path /.well-known/matrix/*
}
2020-09-12 08:52:25 +00:00
2023-05-25 20:45:09 +00:00
handle @wellknown {
reverse_proxy https://matrix.example.tld {
header_up Host {http.reverse_proxy.upstream.hostport}
2020-09-12 08:52:25 +00:00
}
2023-05-25 20:45:09 +00:00
}
2020-10-04 19:28:22 +00:00
}