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.
 
 

171 satır
9.5 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_homeserver_address: ""
  12. matrix_mautrix_wsproxy_homeserver_domain: "{{ matrix_domain }}"
  13. matrix_mautrix_wsproxy_bind_port: false
  14. matrix_mautrix_wsproxy_port: 29331
  15. matrix_mautrix_wsproxy_appservice_address: "http://matrix-mautrix-wsproxy:{{ matrix_mautrix_wsproxy_port }}"
  16. matrix_mautrix_wsproxy_hostname: ""
  17. # The base container network. It will be auto-created by this role if it doesn't exist already.
  18. matrix_mautrix_wsproxy_container_network: matrix-mautrix-wsproxy
  19. matrix_mautrix_wsproxy_twitter_container_additional_networks: "{{ matrix_mautrix_wsproxy_twitter_container_additional_networks_auto + matrix_mautrix_wsproxy_twitter_container_additional_networks_custom }}"
  20. matrix_mautrix_wsproxy_twitter_container_additional_networks_auto: []
  21. matrix_mautrix_wsproxy_twitter_container_additional_networks_custom: []
  22. # matrix_mautrix_wsproxy_container_labels_traefik_enabled controls whether labels to assist a Traefik reverse-proxy will be attached to the container.
  23. # See `../templates/labels.j2` for details.
  24. #
  25. # To inject your own other container labels, see `matrix_mautrix_wsproxy_container_labels_additional_labels`.
  26. matrix_mautrix_wsproxy_container_labels_traefik_enabled: true
  27. matrix_mautrix_wsproxy_container_labels_traefik_docker_network: "{{ matrix_mautrix_wsproxy_container_network }}"
  28. matrix_mautrix_wsproxy_container_labels_traefik_hostname: "{{ matrix_mautrix_wsproxy_hostname }}"
  29. # The path prefix must either be `/` or not end with a slash (e.g. `/wsproxy`).
  30. matrix_mautrix_wsproxy_container_labels_traefik_rule: "Host(`{{ matrix_mautrix_wsproxy_container_labels_traefik_hostname }}`)"
  31. matrix_mautrix_wsproxy_container_labels_traefik_priority: 0
  32. matrix_mautrix_wsproxy_container_labels_traefik_entrypoints: web-secure
  33. matrix_mautrix_wsproxy_container_labels_traefik_tls: "{{ matrix_mautrix_wsproxy_container_labels_traefik_entrypoints != 'web' }}"
  34. matrix_mautrix_wsproxy_container_labels_traefik_tls_certResolver: default # noqa var-naming
  35. # Controls which additional headers to attach to all HTTP responses.
  36. # To add your own headers, use `matrix_mautrix_wsproxy_container_labels_traefik_additional_response_headers_custom`
  37. matrix_mautrix_wsproxy_container_labels_traefik_additional_response_headers_auto: {}
  38. matrix_mautrix_wsproxy_container_labels_traefik_additional_response_headers_custom: {}
  39. matrix_mautrix_wsproxy_container_labels_traefik_additional_response_headers: "{{ matrix_mautrix_wsproxy_container_labels_traefik_additional_response_headers_auto | combine(matrix_mautrix_wsproxy_container_labels_traefik_additional_response_headers_custom) }}"
  40. # matrix_mautrix_wsproxy_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  41. # See `../templates/labels.j2` for details.
  42. #
  43. # Example:
  44. # matrix_mautrix_wsproxy_container_labels_additional_labels: |
  45. # my.label=1
  46. # another.label="here"
  47. matrix_mautrix_wsproxy_container_labels_additional_labels: ''
  48. # A list of extra arguments to pass to the container
  49. matrix_mautrix_wsproxy_container_extra_arguments: []
  50. # List of systemd services that matrix-mautrix-wsproxy.service depends on.
  51. matrix_mautrix_wsproxy_systemd_required_services_list: "{{ matrix_mautrix_wsproxy_systemd_required_services_list_default + matrix_mautrix_wsproxy_systemd_required_services_list_auto + matrix_mautrix_wsproxy_systemd_required_services_list_custom }}"
  52. matrix_mautrix_wsproxy_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  53. matrix_mautrix_wsproxy_systemd_required_services_list_auto: []
  54. matrix_mautrix_wsproxy_systemd_required_services_list_custom: []
  55. # List of systemd services that matrix-mautrix-wsproxy.service wants
  56. matrix_mautrix_wsproxy_systemd_wanted_services_list: []
  57. matrix_mautrix_androidsms_appservice_token: ''
  58. matrix_mautrix_androidsms_homeserver_token: ''
  59. matrix_mautrix_imessage_appservice_token: ''
  60. matrix_mautrix_imessage_homeserver_token: ''
  61. matrix_mautrix_androidsms_appservice_bot_username: androidsmsbot
  62. matrix_mautrix_imessage_appservice_bot_username: imessagebot
  63. # Default mautrix-wsproxy configuration template which covers the generic use case.
  64. # You can customize it by controlling the various variables inside it.
  65. #
  66. # For a more advanced customization, you can extend the default (see `matrix_mautrix_wsproxy_configuration_extension_yaml`)
  67. # or completely replace this variable with your own template.
  68. matrix_mautrix_wsproxy_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  69. matrix_mautrix_wsproxy_configuration_extension_yaml: |
  70. # Your custom YAML configuration goes here.
  71. # This configuration extends the default starting configuration (`matrix_mautrix_wsproxy_configuration_yaml`).
  72. #
  73. # You can override individual variables from the default configuration, or introduce new ones.
  74. #
  75. # If you need something more special, you can take full control by
  76. # completely redefining `matrix_mautrix_wsproxy_configuration_yaml`.
  77. 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 {} }}"
  78. # Holds the final configuration (a combination of the default and its extension).
  79. # You most likely don't need to touch this variable. Instead, see `matrix_mautrix_wsproxy_configuration_yaml`.
  80. matrix_mautrix_wsproxy_configuration: "{{ matrix_mautrix_wsproxy_configuration_yaml|from_yaml|combine(matrix_mautrix_wsproxy_configuration_extension, recursive=True) }}"
  81. matrix_mautrix_androidsms_registration_yaml: |
  82. id: androidsms
  83. url: {{ matrix_mautrix_wsproxy_appservice_address }}
  84. as_token: "{{ matrix_mautrix_androidsms_appservice_token }}"
  85. hs_token: "{{ matrix_mautrix_androidsms_homeserver_token }}"
  86. sender_localpart: _bot_{{ matrix_mautrix_androidsms_appservice_bot_username }}
  87. rate_limited: false
  88. namespaces:
  89. users:
  90. - regex: '@androidsms_.+:{{ matrix_mautrix_wsproxy_homeserver_domain|regex_escape }}$'
  91. exclusive: true
  92. - exclusive: true
  93. regex: '^@{{ matrix_mautrix_androidsms_appservice_bot_username|regex_escape }}:{{ matrix_mautrix_wsproxy_homeserver_domain|regex_escape }}$'
  94. matrix_mautrix_androidsms_registration: "{{ matrix_mautrix_androidsms_registration_yaml|from_yaml }}"
  95. matrix_mautrix_imessage_registration_yaml: |
  96. id: imessage
  97. url: {{ matrix_mautrix_wsproxy_appservice_address }}
  98. as_token: "{{ matrix_mautrix_imessage_appservice_token }}"
  99. hs_token: "{{ matrix_mautrix_imessage_homeserver_token }}"
  100. sender_localpart: _bot_{{ matrix_mautrix_imessage_appservice_bot_username }}
  101. rate_limited: false
  102. namespaces:
  103. users:
  104. - regex: '@imessage_.+:{{ matrix_mautrix_wsproxy_homeserver_domain|regex_escape }}$'
  105. exclusive: true
  106. - exclusive: true
  107. regex: '^@{{ matrix_mautrix_imessage_appservice_bot_username|regex_escape }}:{{ matrix_mautrix_wsproxy_homeserver_domain|regex_escape }}$'
  108. matrix_mautrix_imessage_registration: "{{ matrix_mautrix_imessage_registration_yaml|from_yaml }}"
  109. # Syncproxy-related configuration fields
  110. # renovate: datasource=docker depName=dock.mau.dev/mautrix/syncproxy
  111. matrix_mautrix_wsproxy_syncproxy_version: latest
  112. # See: https://mau.dev/mautrix/wsproxy/container_registry
  113. matrix_mautrix_wsproxy_syncproxy_docker_image: "dock.mau.dev/mautrix/syncproxy:{{ matrix_mautrix_wsproxy_syncproxy_version }}"
  114. matrix_mautrix_wsproxy_syncproxy_docker_image_force_pull: "{{ matrix_mautrix_wsproxy_syncproxy_docker_image.endswith(':latest') }}"
  115. matrix_mautrix_wsproxy_syncproxy_container_extra_arguments: []
  116. matrix_mautrix_wsproxy_syncproxy_systemd_required_services_list: |-
  117. {{
  118. ([devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [])
  119. +
  120. ['matrix-mautrix-wsproxy.service']
  121. }}
  122. matrix_mautrix_wsproxy_syncproxy_systemd_wanted_services_list: []
  123. matrix_mautrix_wsproxy_syncproxy_homeserver_url: ''
  124. matrix_mautrix_wsproxy_syncproxy_shared_secret: ''
  125. matrix_mautrix_wsproxy_syncproxy_port: 29332
  126. matrix_mautrix_wsproxy_syncproxy_appservice_address: "http://matrix-mautrix-wsproxy-syncproxy:{{ matrix_mautrix_wsproxy_syncproxy_port }}"
  127. # Database-related configuration fields
  128. #
  129. # This bridge supports Postgres and SQLite.
  130. #
  131. matrix_mautrix_wsproxy_syncproxy_database_engine: 'postgres'
  132. matrix_mautrix_wsproxy_syncproxy_database_username: 'matrix_mautrix_wsproxy_syncproxy'
  133. matrix_mautrix_wsproxy_syncproxy_database_password: ''
  134. matrix_mautrix_wsproxy_syncproxy_database_hostname: ''
  135. matrix_mautrix_wsproxy_syncproxy_database_port: 5432
  136. matrix_mautrix_wsproxy_syncproxy_database_name: 'matrix_mautrix_wsproxy_syncproxy'
  137. 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 }}'