Matrix Docker Ansible eploy
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 

165 linhas
8.6 KiB

  1. # SPDX-FileCopyrightText: 2022 - 2023 Nikita Chernyi
  2. # SPDX-FileCopyrightText: 2022 - 2024 Slavi Pantaleev
  3. # SPDX-FileCopyrightText: 2022 - 2025 MDAD project contributors
  4. # SPDX-FileCopyrightText: 2022 Arthur Brugière
  5. # SPDX-FileCopyrightText: 2022 Vladimir Panteleev
  6. # SPDX-FileCopyrightText: 2023 Samuel Meenzen
  7. # SPDX-FileCopyrightText: 2024 Suguru Hirahara
  8. #
  9. # SPDX-License-Identifier: AGPL-3.0-or-later
  10. ---
  11. # Go Skype Bridge is a Matrix <-> Skype bridge
  12. # Project source code URL: https://github.com/kelaresg/go-skype-bridge
  13. matrix_go_skype_bridge_enabled: true
  14. matrix_go_skype_bridge_container_image_self_build: false
  15. matrix_go_skype_bridge_container_image_self_build_repo: "https://github.com/kelaresg/go-skype-bridge.git"
  16. matrix_go_skype_bridge_container_image_self_build_branch: "{{ 'master' if matrix_go_skype_bridge_version == 'latest' else matrix_go_skype_bridge_version }}"
  17. # renovate: datasource=docker depName=nodefyme/go-skype-bridge
  18. matrix_go_skype_bridge_version: latest
  19. matrix_go_skype_bridge_docker_image: "{{ matrix_go_skype_bridge_docker_image_registry_prefix }}nodefyme/go-skype-bridge:{{ matrix_go_skype_bridge_version }}"
  20. matrix_go_skype_bridge_docker_image_registry_prefix: "{{ 'localhost/' if matrix_go_skype_bridge_container_image_self_build else matrix_go_skype_bridge_docker_image_registry_prefix_upstream }}"
  21. matrix_go_skype_bridge_docker_image_registry_prefix_upstream: "{{ matrix_go_skype_bridge_docker_image_registry_prefix_upstream_default }}"
  22. matrix_go_skype_bridge_docker_image_registry_prefix_upstream_default: "docker.io/"
  23. matrix_go_skype_bridge_docker_image_force_pull: "{{ matrix_go_skype_bridge_docker_image.endswith(':latest') }}"
  24. matrix_go_skype_bridge_base_path: "{{ matrix_base_data_path }}/go-skype-bridge"
  25. matrix_go_skype_bridge_config_path: "{{ matrix_go_skype_bridge_base_path }}/config"
  26. matrix_go_skype_bridge_data_path: "{{ matrix_go_skype_bridge_base_path }}/data"
  27. matrix_go_skype_bridge_docker_src_files_path: "{{ matrix_go_skype_bridge_base_path }}/docker-src"
  28. matrix_go_skype_bridge_homeserver_address: ""
  29. matrix_go_skype_bridge_homeserver_domain: "{{ matrix_domain }}"
  30. matrix_go_skype_bridge_appservice_address: 'http://matrix-go-skype-bridge:8080'
  31. matrix_go_skype_bridge_container_network: ""
  32. matrix_go_skype_bridge_container_additional_networks: "{{ matrix_go_skype_bridge_container_additional_networks_auto + matrix_go_skype_bridge_container_additional_networks_custom }}"
  33. matrix_go_skype_bridge_container_additional_networks_auto: []
  34. matrix_go_skype_bridge_container_additional_networks_custom: []
  35. # A list of extra arguments to pass to the container
  36. matrix_go_skype_bridge_container_extra_arguments: []
  37. # List of systemd services that matrix-go-skype-bridge.service depends on.
  38. matrix_go_skype_bridge_systemd_required_services_list: "{{ matrix_go_skype_bridge_systemd_required_services_list_default + matrix_go_skype_bridge_systemd_required_services_list_auto + matrix_go_skype_bridge_systemd_required_services_list_custom }}"
  39. matrix_go_skype_bridge_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  40. matrix_go_skype_bridge_systemd_required_services_list_auto: []
  41. matrix_go_skype_bridge_systemd_required_services_list_custom: []
  42. # List of systemd services that matrix-go-skype-bridge.service wants
  43. matrix_go_skype_bridge_systemd_wanted_services_list: []
  44. matrix_go_skype_bridge_appservice_token: ''
  45. matrix_go_skype_bridge_homeserver_token: ''
  46. matrix_go_skype_bridge_appservice_bot_username: skypebridgebot
  47. matrix_go_skype_bridge_command_prefix: "!skype"
  48. # Whether or not created rooms should have federation enabled.
  49. # If false, created portal rooms will never be federated.
  50. matrix_go_skype_bridge_federate_rooms: true
  51. # Database-related configuration fields.
  52. #
  53. # To use SQLite, stick to these defaults.
  54. #
  55. # To use Postgres:
  56. # - change the engine (`matrix_go_skype_bridge_database_engine: 'postgres'`)
  57. # - adjust your database credentials via the `matrix_go_skype_bridge_database_*` variables
  58. matrix_go_skype_bridge_database_engine: 'sqlite'
  59. matrix_go_skype_bridge_sqlite_database_path_local: "{{ matrix_go_skype_bridge_data_path }}/go-skype-bridge.db"
  60. matrix_go_skype_bridge_sqlite_database_path_in_container: "/data/go-skype-bridge.db"
  61. matrix_go_skype_bridge_database_username: 'matrix_go_skype_bridge'
  62. matrix_go_skype_bridge_database_password: 'some-password'
  63. matrix_go_skype_bridge_database_hostname: ''
  64. matrix_go_skype_bridge_database_port: 5432
  65. matrix_go_skype_bridge_database_name: 'matrix_go_skype_bridge'
  66. matrix_go_skype_bridge_database_sslmode: disable
  67. matrix_go_skype_bridge_database_connection_string: 'postgresql://{{ matrix_go_skype_bridge_database_username }}:{{ matrix_go_skype_bridge_database_password }}@{{ matrix_go_skype_bridge_database_hostname }}:{{ matrix_go_skype_bridge_database_port }}/{{ matrix_go_skype_bridge_database_name }}?sslmode={{ matrix_go_skype_bridge_database_sslmode }}'
  68. matrix_go_skype_bridge_appservice_database_type: "{{
  69. {
  70. 'sqlite': 'sqlite3',
  71. 'postgres':'postgres',
  72. }[matrix_go_skype_bridge_database_engine]
  73. }}"
  74. matrix_go_skype_bridge_appservice_database_uri: "{{
  75. {
  76. 'sqlite': matrix_go_skype_bridge_sqlite_database_path_in_container,
  77. 'postgres': matrix_go_skype_bridge_database_connection_string,
  78. }[matrix_go_skype_bridge_database_engine]
  79. }}"
  80. # Can be set to enable automatic double-puppeting via Shared Secret Auth (https://github.com/devture/matrix-synapse-shared-secret-auth).
  81. matrix_go_skype_bridge_login_shared_secret: ''
  82. matrix_go_skype_bridge_bridge_login_shared_secret_map:
  83. "{{ {matrix_go_skype_bridge_homeserver_domain: matrix_go_skype_bridge_login_shared_secret} if matrix_go_skype_bridge_login_shared_secret else {} }}"
  84. # Servers to always allow double puppeting from
  85. matrix_go_skype_bridge_bridge_double_puppet_server_map:
  86. "{{ matrix_go_skype_bridge_homeserver_domain: matrix_go_skype_bridge_homeserver_address }}"
  87. # Enable End-to-bridge encryption
  88. matrix_go_skype_bridge_bridge_encryption_allow: "{{ matrix_bridges_encryption_enabled }}"
  89. matrix_go_skype_bridge_bridge_encryption_default: "{{ matrix_bridges_encryption_default }}"
  90. # Minimum severity of journal log messages.
  91. # Valid values: fatal, error, warn, info, debug
  92. matrix_go_skype_bridge_log_level: 'warn'
  93. matrix_go_skype_bridge_bridge_permissions: |
  94. {{
  95. {matrix_go_skype_bridge_homeserver_domain: 'user'}
  96. | combine({matrix_admin: 'admin'} if matrix_admin else {})
  97. }}
  98. # Default go-skype-bridge configuration template which covers the generic use case.
  99. # You can customize it by controlling the various variables inside it.
  100. #
  101. # For a more advanced customization, you can extend the default (see `matrix_go_skype_bridge_configuration_extension_yaml`)
  102. # or completely replace this variable with your own template.
  103. matrix_go_skype_bridge_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  104. matrix_go_skype_bridge_configuration_extension_yaml: |
  105. # Your custom YAML configuration goes here.
  106. # This configuration extends the default starting configuration (`matrix_go_skype_bridge_configuration_yaml`).
  107. #
  108. # You can override individual variables from the default configuration, or introduce new ones.
  109. #
  110. # If you need something more special, you can take full control by
  111. # completely redefining `matrix_go_skype_bridge_configuration_yaml`.
  112. matrix_go_skype_bridge_configuration_extension: "{{ matrix_go_skype_bridge_configuration_extension_yaml | from_yaml if matrix_go_skype_bridge_configuration_extension_yaml | from_yaml is mapping else {} }}"
  113. # Holds the final configuration (a combination of the default and its extension).
  114. # You most likely don't need to touch this variable. Instead, see `matrix_go_skype_bridge_configuration_yaml`.
  115. matrix_go_skype_bridge_configuration: "{{ matrix_go_skype_bridge_configuration_yaml | from_yaml | combine(matrix_go_skype_bridge_configuration_extension, recursive=True) }}"
  116. matrix_go_skype_bridge_registration_yaml: |
  117. id: skype
  118. url: {{ matrix_go_skype_bridge_appservice_address }}
  119. as_token: "{{ matrix_go_skype_bridge_appservice_token }}"
  120. hs_token: "{{ matrix_go_skype_bridge_homeserver_token }}"
  121. # See https://github.com/mautrix/signal/issues/43
  122. sender_localpart: _bot_{{ matrix_go_skype_bridge_appservice_bot_username }}
  123. rate_limited: false
  124. namespaces:
  125. users:
  126. - regex: '^@skype-(.*):{{ matrix_go_skype_bridge_homeserver_domain | regex_escape }}$'
  127. exclusive: true
  128. - exclusive: true
  129. regex: '^@{{ matrix_go_skype_bridge_appservice_bot_username | regex_escape }}:{{ matrix_go_skype_bridge_homeserver_domain | regex_escape }}$'
  130. de.sorunome.msc2409.push_ephemeral: true
  131. receive_ephemeral: true
  132. matrix_go_skype_bridge_registration: "{{ matrix_go_skype_bridge_registration_yaml | from_yaml }}"