Matrix Docker Ansible eploy
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 

44 righe
1.6 KiB

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