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.
 
 

210 satır
8.6 KiB

  1. # Mx Puppet Skype is a Matrix <-> Skype bridge
  2. # See: https://github.com/Sorunome/mx-puppet-skype
  3. matrix_mx_puppet_skype_enabled: true
  4. matrix_mx_puppet_skype_container_image_self_build: false
  5. matrix_mx_puppet_skype_docker_image: "sorunome/mx-puppet-skype:latest"
  6. matrix_mx_puppet_skype_docker_image_force_pull: "{{ matrix_mx_puppet_skype_docker_image.endswith(':latest') }}"
  7. matrix_mx_puppet_skype_base_path: "{{ matrix_base_data_path }}/mx-puppet-skype"
  8. matrix_mx_puppet_skype_config_path: "{{ matrix_mx_puppet_skype_base_path }}/config"
  9. matrix_mx_puppet_skype_data_path: "{{ matrix_mx_puppet_skype_base_path }}/data"
  10. matrix_mx_puppet_skype_docker_src_files_path: "{{ matrix_mx_puppet_skype_base_path }}/docker-src"
  11. matrix_mx_puppet_skype_appservice_port: "8438"
  12. matrix_mx_puppet_skype_homeserver_address: 'http://matrix-synapse:8008'
  13. matrix_mx_puppet_skype_homeserver_domain: '{{ matrix_domain }}'
  14. matrix_mx_puppet_skype_appservice_address: 'http://matrix-mx-puppet-skype:{{ matrix_mx_puppet_skype_appservice_port }}'
  15. # A list of extra arguments to pass to the container
  16. matrix_mx_puppet_skype_container_extra_arguments: []
  17. # List of systemd services that matrix-puppet-skype.service depends on.
  18. matrix_mx_puppet_skype_systemd_required_services_list: ['docker.service']
  19. # List of systemd services that matrix-puppet-skype.service wants
  20. matrix_mx_puppet_skype_systemd_wanted_services_list: []
  21. matrix_mx_puppet_skype_appservice_token: ''
  22. matrix_mx_puppet_skype_homeserver_token: ''
  23. # Can be set to enable automatic double-puppeting via Shared Secret Auth (https://github.com/devture/matrix-synapse-shared-secret-auth).
  24. matrix_mx_puppet_skype_login_shared_secret: ''
  25. # Default configuration template which covers the generic use case.
  26. # You can customize it by controlling the various variables inside it.
  27. #
  28. # For a more advanced customization, you can extend the default (see `matrix_mx_puppet_skype_configuration_extension_yaml`)
  29. # or completely replace this variable with your own template.
  30. matrix_mx_puppet_skype_configuration_yaml: |
  31. #jinja2: lstrip_blocks: "True"
  32. bridge:
  33. # Address for the bridge to bind to; if running as a Docker container, you
  34. # probably want 0.0.0.0 here
  35. bindAddress: 0.0.0.0
  36. # Port to host the bridge on which your homeserver will connect to
  37. port: {{ matrix_mx_puppet_skype_appservice_port }}
  38. # Name of your homeserver
  39. domain: {{ matrix_mx_puppet_skype_homeserver_domain }}
  40. # URL where the bridge can connect to your homeserver
  41. homeserverUrl: {{ matrix_mx_puppet_skype_homeserver_address }}
  42. # Optionally specify a different media URL used for the media store
  43. mediaURL: https://{{ matrix_server_fqn_matrix }}
  44. # This enabled automatic double-puppeting:
  45. # A map for shared secrets of the homeserver URL to the shared secret
  46. # See https://github.com/devture/matrix-synapse-shared-secret-auth
  47. #loginSharedSecretMap:
  48. # yourserver.com: supersecretsharedsecret
  49. {% if matrix_mx_puppet_skype_login_shared_secret != '' %}
  50. loginSharedSecretMap:
  51. {{ matrix_mx_puppet_skype_homeserver_domain }}: {{ matrix_mx_puppet_skype_login_shared_secret }}
  52. {% endif %}
  53. # optionally override the display name of the bridge bot
  54. #displayname: Protocol Bot
  55. # optionally set the avatar of the bridge bot
  56. #avatarUrl: mxc://yourserver.com/somefile
  57. logging:
  58. # Log level of console output
  59. # Allowed values starting with most verbose:
  60. # silly, debug, verbose, info, warn, error
  61. console: info
  62. # Optionally, you can apply filters to the console logging
  63. #console:
  64. # level: info
  65. # enabled:
  66. # - Store
  67. # disabled:
  68. # - PresenceHandler
  69. # Date and time formatting
  70. lineDateFormat: MMM-D HH:mm:ss.SSS
  71. # Logging files
  72. # Log files are rotated daily by default
  73. files:
  74. # Log file path
  75. - file: "/data/bridge.log"
  76. # Log level for this file
  77. # Allowed values starting with most verbose:
  78. # silly, debug, verbose, info, warn, error
  79. level: info
  80. # Date and time formatting
  81. datePattern: YYYY-MM-DD
  82. # Maximum number of logs to keep.
  83. # This can be a number of files or number of days.
  84. # If using days, add 'd' as a suffix
  85. maxFiles: 14d
  86. # Maximum size of the file after which it will rotate. This can be a
  87. # number of bytes, or units of kb, mb, and gb. If using the units, add
  88. # 'k', 'm', or 'g' as the suffix
  89. maxSize: 50m
  90. # Optionally enable/disable logging for certain modules
  91. #disabled:
  92. # - PresenceHandler
  93. # - module: bot-sdk-MatrixLiteClient
  94. # regex: /_matrix/client/r0/presence/ # this regex needs to match to disable the log
  95. #enabled:
  96. # - Store
  97. database:
  98. # Use Postgres as a database backend
  99. # If set, will be used instead of SQLite3
  100. # Connection string to connect to the Postgres instance
  101. # with username "user", password "pass", host "localhost" and database name "dbname".
  102. # Modify each value as necessary
  103. #connString: "postgres://user:pass@localhost/dbname?sslmode=disable"
  104. # Use SQLite3 as a database backend
  105. # The name of the database file
  106. filename: /data/database.db
  107. provisioning:
  108. # Regex of Matrix IDs allowed to use the puppet bridge
  109. whitelist:
  110. # Allow a specific user
  111. #- "@user:server\\.com"
  112. # Allow users on a specific homeserver
  113. - '@.*:{{ matrix_mx_puppet_skype_homeserver_domain | regex_escape }}'
  114. # Allow anyone
  115. #- ".*"
  116. # Regex of Matrix IDs forbidden from using the puppet bridge
  117. #blacklist:
  118. # Disallow a specific user
  119. #- "@user:server\\.com"
  120. # Disallow users on a specific homeserver
  121. #- "@.*:yourserver\\.com"
  122. presence:
  123. # Bridge online/offline status
  124. enabled: true
  125. # How often to send status to the homeserver in milliseconds
  126. interval: 500
  127. # if the im.vector.user_status state setting should be diabled
  128. #disableStatusState: false
  129. # A blacklist of remote user IDs for the im.vector.user_status state setting
  130. #statusStateBlacklist:
  131. # - baduser
  132. relay:
  133. # Regex of Matrix IDs to allow to use the relay mode
  134. # Same format as in provisioning
  135. whitelist:
  136. - '@.*:{{ matrix_mx_puppet_skype_homeserver_domain | regex_escape }}'
  137. #blacklist:
  138. #- "@user:yourserver\\.com"
  139. # Map certain homeserver URLs to the C-S API endpoint
  140. # Useful for double-puppeting if .well-known is unavailable for some reason
  141. #homeserverUrlMap:
  142. # yourserver.com: http://localhost:1234
  143. namePatterns:
  144. # Override the protocols set default name patterns
  145. # Which variables are available depends on protocol implementation
  146. user: :name
  147. room: :name
  148. limits:
  149. # Up to how many users should be auto-joined on room creation? -1 to disable
  150. # Defaults to 200
  151. maxAutojoinUsers: 200
  152. # How long the delay between two autojoin users should be, in millisectonds.
  153. # Defaults to 5000
  154. roomUserAutojoinDelay: 5000
  155. matrix_mx_puppet_skype_configuration_extension_yaml: |
  156. # Your custom YAML configuration goes here.
  157. # This configuration extends the default starting configuration (`matrix_mx_puppet_skype_configuration_yaml`).
  158. #
  159. # You can override individual variables from the default configuration, or introduce new ones.
  160. #
  161. # If you need something more special, you can take full control by
  162. # completely redefining `matrix_mx_puppet_skype_configuration_yaml`.
  163. matrix_mx_puppet_skype_configuration_extension: "{{ matrix_mx_puppet_skype_configuration_extension_yaml|from_yaml if matrix_mx_puppet_skype_configuration_extension_yaml|from_yaml is mapping else {} }}"
  164. # Holds the final configuration (a combination of the default and its extension).
  165. # You most likely don't need to touch this variable. Instead, see `matrix_mx_puppet_skype_configuration_yaml`.
  166. matrix_mx_puppet_skype_configuration: "{{ matrix_mx_puppet_skype_configuration_yaml|from_yaml|combine(matrix_mx_puppet_skype_configuration_extension, recursive=True) }}"
  167. matrix_mx_puppet_skype_registration_yaml: |
  168. as_token: "{{ matrix_mx_puppet_skype_appservice_token }}"
  169. hs_token: "{{ matrix_mx_puppet_skype_homeserver_token }}"
  170. id: skype-puppet
  171. namespaces:
  172. users:
  173. - exclusive: true
  174. regex: '@_skypepuppet_.*:{{ matrix_mx_puppet_skype_homeserver_domain|regex_escape }}'
  175. rooms: []
  176. aliases:
  177. - exclusive: true
  178. regex: '#_skypepuppet_.*:{{ matrix_mx_puppet_skype_homeserver_domain|regex_escape }}'
  179. protocols: []
  180. rate_limited: false
  181. sender_localpart: _skypepuppet_bot
  182. url: {{ matrix_mx_puppet_skype_appservice_address }}
  183. matrix_mx_puppet_skype_registration: "{{ matrix_mx_puppet_skype_registration_yaml|from_yaml }}"