Matrix Docker Ansible eploy
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 

161 行
8.5 KiB

  1. ---
  2. # mautrix-facebook is a Matrix <-> Facebook bridge
  3. # Project source code URL: https://github.com/mautrix/facebook
  4. matrix_mautrix_facebook_enabled: true
  5. matrix_mautrix_facebook_container_image_self_build: false
  6. matrix_mautrix_facebook_container_image_self_build_repo: "https://mau.dev/mautrix/facebook.git"
  7. # renovate: datasource=docker depName=dock.mau.dev/mautrix/facebook
  8. matrix_mautrix_facebook_version: v0.5.1
  9. matrix_mautrix_facebook_docker_image: "{{ matrix_mautrix_facebook_docker_image_name_prefix }}mautrix/facebook:{{ matrix_mautrix_facebook_version }}"
  10. matrix_mautrix_facebook_docker_image_name_prefix: "{{ 'localhost/' if matrix_mautrix_facebook_container_image_self_build else 'dock.mau.dev/' }}"
  11. matrix_mautrix_facebook_docker_image_force_pull: "{{ matrix_mautrix_facebook_docker_image.endswith(':latest') }}"
  12. matrix_mautrix_facebook_base_path: "{{ matrix_base_data_path }}/mautrix-facebook"
  13. matrix_mautrix_facebook_config_path: "{{ matrix_mautrix_facebook_base_path }}/config"
  14. matrix_mautrix_facebook_data_path: "{{ matrix_mautrix_facebook_base_path }}/data"
  15. matrix_mautrix_facebook_docker_src_files_path: "{{ matrix_mautrix_facebook_base_path }}/docker-src"
  16. matrix_mautrix_facebook_command_prefix: "!fb"
  17. # Whether or not the public-facing endpoints should be enabled (web-based login)
  18. matrix_mautrix_facebook_appservice_public_enabled: true
  19. # Mautrix Facebook public endpoint to log in to Facebook
  20. matrix_mautrix_facebook_public_endpoint: ''
  21. matrix_mautrix_facebook_homeserver_address: "{{ matrix_homeserver_container_url }}"
  22. matrix_mautrix_facebook_homeserver_domain: '{{ matrix_domain }}'
  23. matrix_mautrix_facebook_appservice_address: 'http://matrix-mautrix-facebook:29319'
  24. matrix_mautrix_facebook_appservice_public_external: 'https://{{ matrix_server_fqn_matrix }}{{ matrix_mautrix_facebook_public_endpoint }}'
  25. # A list of extra arguments to pass to the container
  26. matrix_mautrix_facebook_container_extra_arguments: []
  27. # List of systemd services that matrix-mautrix-facebook.service depends on.
  28. matrix_mautrix_facebook_systemd_required_services_list: ['docker.service']
  29. # List of systemd services that matrix-mautrix-facebook.service wants
  30. matrix_mautrix_facebook_systemd_wanted_services_list: []
  31. matrix_mautrix_facebook_appservice_token: ''
  32. matrix_mautrix_facebook_homeserver_token: ''
  33. # Whether or not created rooms should have federation enabled.
  34. # If false, created portal rooms will never be federated.
  35. matrix_mautrix_facebook_federate_rooms: true
  36. # Whether or not metrics endpoint should be enabled.
  37. # Enabling them is usually enough for a local (in-container) Prometheus to consume them.
  38. # If metrics need to be consumed by another (external) Prometheus server, consider exposing them via `matrix_mautrix_facebook_metrics_proxying_enabled`.
  39. matrix_mautrix_facebook_metrics_enabled: false
  40. # Controls whether metrics should be proxied (exposed) on `matrix.DOMAIN/metrics/mautrix-facebook`.
  41. # This will only work take effect if `matrix_nginx_proxy_proxy_matrix_metrics_enabled: true`.
  42. # See the `matrix-nginx-proxy` role for details about enabling `matrix_nginx_proxy_proxy_matrix_metrics_enabled`.
  43. matrix_mautrix_facebook_metrics_proxying_enabled: false
  44. matrix_mautrix_facebook_bridge_permissions: |
  45. {{
  46. {'*': 'relay', matrix_mautrix_facebook_homeserver_domain: 'user'}
  47. | combine({matrix_admin: 'admin'} if matrix_admin else {})
  48. }}
  49. # Controls whether the matrix-mautrix-facebook container exposes its HTTP port.
  50. #
  51. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:9008"), or empty string to not expose.
  52. matrix_mautrix_facebook_container_http_host_bind_port: ''
  53. # Database-related configuration fields.
  54. #
  55. # To use SQLite:
  56. # - change the engine (`matrix_mautrix_facebook_database_engine: 'sqlite'`)
  57. # - change to the last bridge version that supported SQLite:
  58. # `matrix_mautrix_facebook_docker_image: "{{ matrix_mautrix_facebook_docker_image_name_prefix }}tulir/mautrix-facebook:da1b4ec596e334325a1589e70829dea46e73064b"`
  59. # - plan your migration to Postgres, as this bridge does not support SQLite anymore (and neither will the playbook in the future).
  60. #
  61. # To use Postgres:
  62. # - adjust your database credentials via the `matrix_mautrix_facebook_database_*` variables
  63. matrix_mautrix_facebook_database_engine: 'postgres'
  64. matrix_mautrix_facebook_sqlite_database_path_local: "{{ matrix_mautrix_facebook_data_path }}/mautrix-facebook.db"
  65. matrix_mautrix_facebook_sqlite_database_path_in_container: "/data/mautrix-facebook.db"
  66. matrix_mautrix_facebook_database_username: 'matrix_mautrix_facebook'
  67. matrix_mautrix_facebook_database_password: 'some-password'
  68. matrix_mautrix_facebook_database_hostname: ''
  69. matrix_mautrix_facebook_database_port: 5432
  70. matrix_mautrix_facebook_database_name: 'matrix_mautrix_facebook'
  71. matrix_mautrix_facebook_database_connection_string: 'postgres://{{ matrix_mautrix_facebook_database_username }}:{{ matrix_mautrix_facebook_database_password }}@{{ matrix_mautrix_facebook_database_hostname }}:{{ matrix_mautrix_facebook_database_port }}/{{ matrix_mautrix_facebook_database_name }}'
  72. matrix_mautrix_facebook_appservice_database: "{{
  73. {
  74. 'sqlite': ('sqlite:///' + matrix_mautrix_facebook_sqlite_database_path_in_container),
  75. 'postgres': matrix_mautrix_facebook_database_connection_string,
  76. }[matrix_mautrix_facebook_database_engine]
  77. }}"
  78. # Can be set to enable automatic double-puppeting via Shared Secret Auth (https://github.com/devture/matrix-synapse-shared-secret-auth).
  79. matrix_mautrix_facebook_login_shared_secret: ''
  80. matrix_mautrix_facebook_bridge_login_shared_secret_map: "{{ {matrix_mautrix_facebook_homeserver_domain: matrix_mautrix_facebook_login_shared_secret} if matrix_mautrix_facebook_login_shared_secret else {} }}"
  81. # Enable bridge relay bot functionality
  82. matrix_mautrix_facebook_relay_enabled: "{{ matrix_bridges_relay_enabled }}"
  83. matrix_mautrix_facebook_appservice_bot_username: facebookbot
  84. matrix_mautrix_facebook_bridge_presence: true
  85. # Specifies the default log level for all bridge loggers.
  86. matrix_mautrix_facebook_logging_level: WARNING
  87. # Default configuration template which covers the generic use case.
  88. # You can customize it by controlling the various variables inside it.
  89. #
  90. # For a more advanced customization, you can extend the default (see `matrix_mautrix_facebook_configuration_extension_yaml`)
  91. # or completely replace this variable with your own template.
  92. matrix_mautrix_facebook_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  93. matrix_mautrix_facebook_configuration_extension_yaml: |
  94. # Your custom YAML configuration goes here.
  95. # This configuration extends the default starting configuration (`matrix_mautrix_facebook_configuration_yaml`).
  96. #
  97. # You can override individual variables from the default configuration, or introduce new ones.
  98. #
  99. # If you need something more special, you can take full control by
  100. # completely redefining `matrix_mautrix_facebook_configuration_yaml`.
  101. matrix_mautrix_facebook_configuration_extension: "{{ matrix_mautrix_facebook_configuration_extension_yaml | from_yaml if matrix_mautrix_facebook_configuration_extension_yaml | from_yaml is mapping else {} }}"
  102. # Holds the final configuration (a combination of the default and its extension).
  103. # You most likely don't need to touch this variable. Instead, see `matrix_mautrix_facebook_configuration_yaml`.
  104. matrix_mautrix_facebook_configuration: "{{ matrix_mautrix_facebook_configuration_yaml | from_yaml | combine(matrix_mautrix_facebook_configuration_extension, recursive=True) }}"
  105. matrix_mautrix_facebook_registration_yaml: |
  106. id: facebook
  107. as_token: "{{ matrix_mautrix_facebook_appservice_token }}"
  108. hs_token: "{{ matrix_mautrix_facebook_homeserver_token }}"
  109. namespaces:
  110. users:
  111. - exclusive: true
  112. regex: '^@facebook_.+:{{ matrix_mautrix_facebook_homeserver_domain | regex_escape }}$'
  113. - exclusive: true
  114. regex: '^@{{ matrix_mautrix_facebook_appservice_bot_username | regex_escape }}:{{ matrix_mautrix_facebook_homeserver_domain | regex_escape }}$'
  115. url: {{ matrix_mautrix_facebook_appservice_address }}
  116. # See https://github.com/mautrix/signal/issues/43
  117. sender_localpart: _bot_{{ matrix_mautrix_facebook_appservice_bot_username }}
  118. rate_limited: false
  119. de.sorunome.msc2409.push_ephemeral: true
  120. matrix_mautrix_facebook_registration: "{{ matrix_mautrix_facebook_registration_yaml | from_yaml }}"
  121. # Enable End-to-bridge encryption
  122. matrix_mautrix_facebook_bridge_encryption_allow: "{{ matrix_bridges_encryption_enabled }}"
  123. matrix_mautrix_facebook_bridge_encryption_default: "{{ matrix_mautrix_facebook_bridge_encryption_allow }}"
  124. matrix_mautrix_facebook_bridge_encryption_key_sharing_allow: "{{ matrix_mautrix_facebook_bridge_encryption_allow }}"