Matrix Docker Ansible eploy
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 

39 satır
1.5 KiB

  1. # SPDX-FileCopyrightText: 2018 - 2024 Slavi Pantaleev
  2. # SPDX-FileCopyrightText: 2018 Aaron Raimist
  3. # SPDX-FileCopyrightText: 2019 - 2020 Dan Arnfield
  4. # SPDX-FileCopyrightText: 2020 Marcel Partap
  5. #
  6. # SPDX-License-Identifier: AGPL-3.0-or-later
  7. ---
  8. - name: Determine well-known files to check (start with /.well-known/matrix/client)
  9. ansible.builtin.set_fact:
  10. well_known_file_checks:
  11. - path: /.well-known/matrix/client
  12. purpose: Client Discovery
  13. cors: true
  14. follow_redirects: "{{ matrix_static_files_self_check_well_known_matrix_client_follow_redirects }}"
  15. validate_certs: "{{ matrix_static_files_self_check_validate_certificates }}"
  16. - when: matrix_static_files_file_matrix_server_enabled | bool
  17. block:
  18. - name: Prepare /.well-known/matrix/server to well-known files to check, if enabled
  19. ansible.builtin.set_fact:
  20. well_known_file_check_matrix_server:
  21. path: /.well-known/matrix/server
  22. purpose: Server Discovery
  23. cors: false
  24. follow_redirects: safe
  25. validate_certs: "{{ matrix_static_files_self_check_validate_certificates }}"
  26. - name: Inject /.well-known/matrix/server to well-known files to check, if enabled
  27. ansible.builtin.set_fact:
  28. well_known_file_checks: "{{ well_known_file_checks + [well_known_file_check_matrix_server] }}"
  29. - name: Perform well-known checks
  30. ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check_well_known_file.yml"
  31. with_items: "{{ well_known_file_checks }}"
  32. loop_control:
  33. loop_var: well_known_file_check