Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

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