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

35 строки
2.6 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_directory_name: "{{ matrix_synapse_media_store_path|basename }}"
  7. # A Synapse generic worker can handle both federation and client-server API endpoints.
  8. # We wish to split these, as we normally serve federation separately and don't want them mixed up.
  9. #
  10. # This is some ugly Ansible/Jinja2 hack (seen here: https://stackoverflow.com/a/47831492),
  11. # which takes a list of various strings and removes the ones NOT containing `/_matrix/client` anywhere in them.
  12. #
  13. # We intentionally don't do a diff between everything possible (`matrix_synapse_workers_generic_worker_endpoints`) and `matrix_synapse_workers_generic_worker_federation_endpoints`,
  14. # because `matrix_synapse_workers_generic_worker_endpoints` also contains things like `/_synapse/client/`, etc.
  15. # While /_synapse/client/ endpoints are somewhat client-server API-related, they're:
  16. # - neither part of the client-server API spec (and are thus, different)
  17. # - 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`)
  18. #
  19. # 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),
  20. # so it's not that important whether we forward them or not.
  21. #
  22. # Basically, we aim to cover most things. Skipping `/_synapse/client` or a few other minor things doesn't matter too much.
  23. matrix_synapse_workers_generic_worker_client_server_endpoints: "{{ matrix_synapse_workers_generic_worker_endpoints|default([]) | map('regex_search', '.*/_matrix/client.*')| list | difference([none]) }}"
  24. # A Synapse generic worker can handle both federation and client-server API endpoints.
  25. # We wish to split these, as we normally serve federation separately and don't want them mixed up.
  26. #
  27. # This is some ugly Ansible/Jinja2 hack (seen here: https://stackoverflow.com/a/47831492),
  28. # which takes a list of various strings and removes the ones NOT containing `/_matrix/federation` or `/_matrix/key` anywhere in them.
  29. matrix_synapse_workers_generic_worker_federation_endpoints: "{{ matrix_synapse_workers_generic_worker_endpoints|default([]) | map('regex_search', '.*(/_matrix/federation|/_matrix/key).*')| list | difference([none]) }}"