Matrix Docker Ansible eploy
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

32 行
1.3 KiB

  1. ---
  2. - name: Determine well-known files to check (start with /.well-known/matrix/client)
  3. ansible.builtin.set_fact:
  4. well_known_file_checks:
  5. - path: /.well-known/matrix/client
  6. purpose: Client Discovery
  7. cors: true
  8. follow_redirects: "{{ matrix_static_files_self_check_well_known_matrix_client_follow_redirects }}"
  9. validate_certs: "{{ matrix_static_files_self_check_validate_certificates }}"
  10. - when: matrix_static_files_file_matrix_server_enabled | bool
  11. block:
  12. - name: Prepare /.well-known/matrix/server to well-known files to check, if enabled
  13. ansible.builtin.set_fact:
  14. well_known_file_check_matrix_server:
  15. path: /.well-known/matrix/server
  16. purpose: Server Discovery
  17. cors: false
  18. follow_redirects: safe
  19. validate_certs: "{{ matrix_static_files_self_check_validate_certificates }}"
  20. - name: Inject /.well-known/matrix/server to well-known files to check, if enabled
  21. ansible.builtin.set_fact:
  22. well_known_file_checks: "{{ well_known_file_checks + [well_known_file_check_matrix_server] }}"
  23. - name: Perform well-known checks
  24. ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check_well_known_file.yml"
  25. with_items: "{{ well_known_file_checks }}"
  26. loop_control:
  27. loop_var: well_known_file_check