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

36 строки
2.7 KiB

  1. ---
  2. matrix_synapse_client_api_url_endpoint_public: "https://{{ matrix_server_fqn_matrix }}/_matrix/client/versions"
  3. matrix_synapse_federation_api_url_endpoint_public: "https://{{ matrix_server_fqn_matrix }}:{{ matrix_federation_public_port }}/_matrix/federation/v1/version"
  4. # Tells whether this role had executed or not. Toggled to `true` during runtime.
  5. matrix_synapse_role_executed: false
  6. matrix_synapse_media_store_parent_path: "{{ matrix_synapse_media_store_path|dirname }}"
  7. matrix_synapse_media_store_directory_name: "{{ matrix_synapse_media_store_path|basename }}"
  8. # A Synapse generic worker can handle both federation and client-server API endpoints.
  9. # We wish to split these, as we normally serve federation separately and don't want them mixed up.
  10. #
  11. # This is some ugly Ansible/Jinja2 hack (seen here: https://stackoverflow.com/a/47831492),
  12. # which takes a list of various strings and removes the ones NOT containing `/_matrix/client` anywhere in them.
  13. #
  14. # We intentionally don't do a diff between everything possible (`matrix_synapse_workers_generic_worker_endpoints`) and `matrix_synapse_workers_generic_worker_federation_endpoints`,
  15. # because `matrix_synapse_workers_generic_worker_endpoints` also contains things like `/_synapse/client/`, etc.
  16. # While /_synapse/client/ endpoints are somewhat client-server API-related, they're:
  17. # - neither part of the client-server API spec (and are thus, different)
  18. # - nor always OK to forward to a worker (we're supposed to obey `matrix_nginx_proxy_proxy_matrix_client_api_forwarded_location_synapse_client_api_enabled`)
  19. #
  20. # It's also not too many of these APIs (only `^/_synapse/client/password_reset/email/submit_token$` at the time of this writing / 2021-01-24),
  21. # so it's not that important whether we forward them or not.
  22. #
  23. # Basically, we aim to cover most things. Skipping `/_synapse/client` or a few other minor things doesn't matter too much.
  24. matrix_synapse_workers_generic_worker_client_server_endpoints: "{{ matrix_synapse_workers_generic_worker_endpoints|default([]) | map('regex_search', '.*/_matrix/client.*')| list | difference([none]) }}"
  25. # A Synapse generic worker can handle both federation and client-server API endpoints.
  26. # We wish to split these, as we normally serve federation separately and don't want them mixed up.
  27. #
  28. # This is some ugly Ansible/Jinja2 hack (seen here: https://stackoverflow.com/a/47831492),
  29. # which takes a list of various strings and removes the ones NOT containing `/_matrix/federation` or `/_matrix/key` anywhere in them.
  30. matrix_synapse_workers_generic_worker_federation_endpoints: "{{ matrix_synapse_workers_generic_worker_endpoints|default([]) | map('regex_search', '.*(/_matrix/federation|/_matrix/key).*')| list | difference([none]) }}"