Matrix Docker Ansible eploy
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

154 wiersze
8.2 KiB

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