Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

50 строки
1.8 KiB

  1. # SPDX-FileCopyrightText: 2024 MDAD project contributors
  2. # SPDX-FileCopyrightText: 2024 Slavi Pantaleev
  3. # SPDX-FileCopyrightText: 2024 Suguru Hirahara
  4. #
  5. # SPDX-License-Identifier: AGPL-3.0-or-later
  6. matrix.example.com {
  7. handle {
  8. encode zstd gzip
  9. # Use the docker service name instead of localhost or 127.0.0.1 here
  10. reverse_proxy matrix-traefik:8080 {
  11. header_up X-Forwarded-Port {http.request.port}
  12. header_up X-Forwarded-TlsProto {tls_protocol}
  13. header_up X-Forwarded-TlsCipher {tls_cipher}
  14. header_up X-Forwarded-HttpsProto {proto}
  15. }
  16. }
  17. }
  18. # Put `https://` at the beginning to enforce https protocol as 8448 is not the default https port (which is 443)
  19. https://matrix.example.com:8448 {
  20. handle {
  21. encode zstd gzip
  22. # Use the docker service name instead of localhost or 127.0.0.1 here
  23. reverse_proxy matrix-traefik:8448 {
  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. }