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

123 行
6.3 KiB

  1. ---
  2. # mautrix-wsproxy is a Matrix <-> websocket bridge
  3. # See: https://github.com/mautrix/wsproxy
  4. matrix_mautrix_wsproxy_enabled: true
  5. matrix_mautrix_wsproxy_version: latest
  6. # See: https://mau.dev/mautrix/wsproxy/container_registry
  7. matrix_mautrix_wsproxy_docker_image: "dock.mau.dev/mautrix/wsproxy:{{ matrix_mautrix_wsproxy_version }}"
  8. matrix_mautrix_wsproxy_docker_image_force_pull: "{{ matrix_mautrix_wsproxy_docker_image.endswith(':latest') }}"
  9. matrix_mautrix_wsproxy_base_path: "{{ matrix_base_data_path }}/wsproxy"
  10. matrix_mautrix_wsproxy_config_path: "{{ matrix_mautrix_wsproxy_base_path }}/config"
  11. matrix_mautrix_wsproxy_data_path: "{{ matrix_mautrix_wsproxy_base_path }}/data"
  12. matrix_mautrix_wsproxy_homeserver_address: "{{ matrix_homeserver_container_url }}"
  13. matrix_mautrix_wsproxy_homeserver_domain: "{{ matrix_domain }}"
  14. matrix_mautrix_wsproxy_port: 29331
  15. matrix_mautrix_wsproxy_appservice_address: "http://matrix-mautrix-wsproxy:{{ matrix_mautrix_wsproxy_port }}"
  16. # A list of extra arguments to pass to the container
  17. matrix_mautrix_wsproxy_container_extra_arguments: []
  18. # List of systemd services that matrix-mautrix-wsproxy.service depends on.
  19. matrix_mautrix_wsproxy_systemd_required_services_list: ['docker.service']
  20. # List of systemd services that matrix-mautrix-wsproxy.service wants
  21. matrix_mautrix_wsproxy_systemd_wanted_services_list: []
  22. matrix_mautrix_androidsms_appservice_token: ''
  23. matrix_mautrix_androidsms_homeserver_token: ''
  24. matrix_mautrix_imessage_appservice_token: ''
  25. matrix_mautrix_imessage_homeserver_token: ''
  26. matrix_mautrix_androidsms_appservice_bot_username: androidsmsbot
  27. matrix_mautrix_imessage_appservice_bot_username: imessagebot
  28. # Default mautrix-wsproxy configuration template which covers the generic use case.
  29. # You can customize it by controlling the various variables inside it.
  30. #
  31. # For a more advanced customization, you can extend the default (see `matrix_mautrix_wsproxy_configuration_extension_yaml`)
  32. # or completely replace this variable with your own template.
  33. matrix_mautrix_wsproxy_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  34. matrix_mautrix_wsproxy_configuration_extension_yaml: |
  35. # Your custom YAML configuration goes here.
  36. # This configuration extends the default starting configuration (`matrix_mautrix_wsproxy_configuration_yaml`).
  37. #
  38. # You can override individual variables from the default configuration, or introduce new ones.
  39. #
  40. # If you need something more special, you can take full control by
  41. # completely redefining `matrix_mautrix_wsproxy_configuration_yaml`.
  42. matrix_mautrix_wsproxy_configuration_extension: "{{ matrix_mautrix_wsproxy_configuration_extension_yaml|from_yaml if matrix_mautrix_wsproxy_configuration_extension_yaml|from_yaml is mapping else {} }}"
  43. # Holds the final configuration (a combination of the default and its extension).
  44. # You most likely don't need to touch this variable. Instead, see `matrix_mautrix_wsproxy_configuration_yaml`.
  45. matrix_mautrix_wsproxy_configuration: "{{ matrix_mautrix_wsproxy_configuration_yaml|from_yaml|combine(matrix_mautrix_wsproxy_configuration_extension, recursive=True) }}"
  46. matrix_mautrix_androidsms_registration_yaml: |
  47. id: androidsms
  48. url: {{ matrix_mautrix_wsproxy_appservice_address }}
  49. as_token: "{{ matrix_mautrix_androidsms_appservice_token }}"
  50. hs_token: "{{ matrix_mautrix_androidsms_homeserver_token }}"
  51. sender_localpart: _bot_{{ matrix_mautrix_androidsms_appservice_bot_username }}
  52. rate_limited: false
  53. namespaces:
  54. users:
  55. - regex: '@androidsms_.+:{{ matrix_mautrix_wsproxy_homeserver_domain|regex_escape }}$'
  56. exclusive: true
  57. - exclusive: true
  58. regex: '^@{{ matrix_mautrix_androidsms_appservice_bot_username|regex_escape }}:{{ matrix_mautrix_wsproxy_homeserver_domain|regex_escape }}$'
  59. matrix_mautrix_androidsms_registration: "{{ matrix_mautrix_androidsms_registration_yaml|from_yaml }}"
  60. matrix_mautrix_imessage_registration_yaml: |
  61. id: imessage
  62. url: {{ matrix_mautrix_wsproxy_appservice_address }}
  63. as_token: "{{ matrix_mautrix_imessage_appservice_token }}"
  64. hs_token: "{{ matrix_mautrix_imessage_homeserver_token }}"
  65. sender_localpart: _bot_{{ matrix_mautrix_imessage_appservice_bot_username }}
  66. rate_limited: false
  67. namespaces:
  68. users:
  69. - regex: '@imessage_.+:{{ matrix_mautrix_wsproxy_homeserver_domain|regex_escape }}$'
  70. exclusive: true
  71. - exclusive: true
  72. regex: '^@{{ matrix_mautrix_imessage_appservice_bot_username|regex_escape }}:{{ matrix_mautrix_wsproxy_homeserver_domain|regex_escape }}$'
  73. matrix_mautrix_imessage_registration: "{{ matrix_mautrix_imessage_registration_yaml|from_yaml }}"
  74. # Syncproxy-related configuration fields
  75. matrix_mautrix_wsproxy_syncproxy_version: latest
  76. # See: https://mau.dev/mautrix/wsproxy/container_registry
  77. matrix_mautrix_wsproxy_syncproxy_docker_image: "dock.mau.dev/mautrix/syncproxy:{{ matrix_mautrix_wsproxy_syncproxy_version }}"
  78. matrix_mautrix_wsproxy_syncproxy_docker_image_force_pull: "{{ matrix_mautrix_wsproxy_syncproxy_docker_image.endswith(':latest') }}"
  79. matrix_mautrix_wsproxy_syncproxy_container_extra_arguments: []
  80. matrix_mautrix_wsproxy_syncproxy_systemd_required_services_list: ['docker.service', 'matrix-mautrix-wsproxy.service']
  81. matrix_mautrix_wsproxy_syncproxy_systemd_wanted_services_list: []
  82. matrix_mautrix_wsproxy_syncproxy_shared_secret: ''
  83. matrix_mautrix_wsproxy_syncproxy_port: 29332
  84. matrix_mautrix_wsproxy_syncproxy_appservice_address: "http://matrix-mautrix-wsproxy-syncproxy:{{ matrix_mautrix_wsproxy_syncproxy_port }}"
  85. # Database-related configuration fields
  86. #
  87. # This bridge supports Postgres and SQLite.
  88. #
  89. matrix_mautrix_wsproxy_syncproxy_database_engine: 'postgres'
  90. matrix_mautrix_wsproxy_syncproxy_database_username: 'matrix_mautrix_wsproxy_syncproxy'
  91. matrix_mautrix_wsproxy_syncproxy_database_password: 'some-password'
  92. matrix_mautrix_wsproxy_syncproxy_database_hostname: 'matrix-postgres'
  93. matrix_mautrix_wsproxy_syncproxy_database_port: 5432
  94. matrix_mautrix_wsproxy_syncproxy_database_name: 'matrix_mautrix_wsproxy_syncproxy'
  95. matrix_mautrix_signal_wsproxy_syncproxy_connection_string: 'postgres://{{ matrix_mautrix_wsproxy_syncproxy_database_username }}:{{ matrix_mautrix_wsproxy_syncproxy_database_password }}@{{ matrix_mautrix_wsproxy_syncproxy_database_hostname }}:{{ matrix_mautrix_wsproxy_syncproxy_database_port }}/{{ matrix_mautrix_wsproxy_syncproxy_database_name }}'