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.
 
 

50 wiersze
1.6 KiB

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