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

83 行
2.9 KiB

  1. #jinja2: lstrip_blocks: True
  2. matrix:
  3. domain: {{ matrix_domain }}
  4. v1: {{ matrix_ma1sd_v1_enabled|to_json }}
  5. v2: {{ matrix_ma1sd_v2_enabled|to_json }}
  6. server:
  7. name: {{ matrix_server_fqn_matrix }}
  8. key:
  9. path: /var/ma1sd/sign.key
  10. storage:
  11. provider:
  12. sqlite:
  13. database: /var/ma1sd/ma1sd.db
  14. {% if matrix_ma1sd_dns_overwrite_enabled %}
  15. dns:
  16. overwrite:
  17. homeserver:
  18. client:
  19. - name: {{ matrix_ma1sd_dns_overwrite_homeserver_client_name }}
  20. value: {{ matrix_ma1sd_dns_overwrite_homeserver_client_value }}
  21. {% endif %}
  22. {% if matrix_ma1sd_matrixorg_forwarding_enabled %}
  23. forward:
  24. servers: ['matrix-org']
  25. {% endif %}
  26. threepid:
  27. medium:
  28. email:
  29. identity:
  30. from: {{ matrix_ma1sd_threepid_medium_email_identity_from }}
  31. connectors:
  32. smtp:
  33. host: {{ matrix_ma1sd_threepid_medium_email_connectors_smtp_host }}
  34. port: {{ matrix_ma1sd_threepid_medium_email_connectors_smtp_port }}
  35. tls: {{ matrix_ma1sd_threepid_medium_email_connectors_smtp_tls }}
  36. login: {{ matrix_ma1sd_threepid_medium_email_connectors_smtp_login }}
  37. password: {{ matrix_ma1sd_threepid_medium_email_connectors_smtp_password }}
  38. {% if matrix_ma1sd_threepid_medium_email_custom_templates_enabled %}
  39. generators:
  40. template:
  41. {% if matrix_ma1sd_threepid_medium_email_custom_invite_template %}
  42. invite: '/var/ma1sd/invite-template.eml'
  43. {% endif %}
  44. {% if matrix_ma1sd_threepid_medium_email_custom_session_validation_template or matrix_ma1sd_threepid_medium_email_custom_unbind_fraudulent_template %}
  45. session:
  46. {% if matrix_ma1sd_threepid_medium_email_custom_session_validation_template %}
  47. validation: '/var/ma1sd/validate-template.eml'
  48. {% endif %}
  49. {% if matrix_ma1sd_threepid_medium_email_custom_unbind_fraudulent_template %}
  50. unbind:
  51. frandulent: '/var/ma1sd/unbind-fraudulent.eml'
  52. {% endif %}
  53. {% endif %}
  54. {% if matrix_ma1sd_threepid_medium_email_custom_matrixid_template %}
  55. generic:
  56. matrixId: '/var/ma1sd/mxid-template.eml'
  57. {% endif %}
  58. {% endif %}
  59. {% if matrix_ma1sd_hashing_enabled %}
  60. hashing:
  61. enabled: true # enable or disable the hash lookup MSC2140 (default is false)
  62. pepperLength: 20 # length of the pepper value (default is 20)
  63. rotationPolicy: per_requests # or `per_seconds` how often the hashes will be updating
  64. hashStorageType: sql # or `in_memory` where the hashes will be stored
  65. algorithms:
  66. - none # the same as v1 bulk lookup
  67. - sha256 # hash the 3PID and pepper.
  68. delay: 2m # how often hashes will be updated if rotation policy = per_seconds (default is 10s)
  69. requests: 10
  70. {% endif %}
  71. synapseSql:
  72. enabled: {{ matrix_ma1sd_synapsesql_enabled }}
  73. type: {{ matrix_ma1sd_synapsesql_type }}
  74. connection: {{ matrix_ma1sd_synapsesql_connection }}