Matrix Docker Ansible eploy
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

45 wiersze
1.4 KiB

  1. # SPDX-FileCopyrightText: 2024 MDAD Team and contributors
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. matrix.example.com {
  5. handle {
  6. encode zstd gzip
  7. reverse_proxy localhost:81 {
  8. header_up X-Forwarded-Port {http.request.port}
  9. header_up X-Forwarded-TlsProto {tls_protocol}
  10. header_up X-Forwarded-TlsCipher {tls_cipher}
  11. header_up X-Forwarded-HttpsProto {proto}
  12. }
  13. }
  14. }
  15. matrix.example.com:8448 {
  16. handle {
  17. encode zstd gzip
  18. reverse_proxy 127.0.0.1:8449 {
  19. header_up X-Forwarded-Port {http.request.port}
  20. header_up X-Forwarded-TlsProto {tls_protocol}
  21. header_up X-Forwarded-TlsCipher {tls_cipher}
  22. header_up X-Forwarded-HttpsProto {proto}
  23. }
  24. }
  25. }
  26. example.com {
  27. # 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
  28. @wellknown {
  29. path /.well-known/matrix/*
  30. }
  31. handle @wellknown {
  32. reverse_proxy https://matrix.example.com {
  33. header_up Host {http.reverse_proxy.upstream.hostport}
  34. }
  35. }
  36. }