Matrix Docker Ansible eploy
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 

143 righe
6.5 KiB

  1. matrix_dimension_enabled: false
  2. # You are required to specify an access token for Dimension to work.
  3. # For information on how to acquire an access token, visit https://t2bot.io/docs/access_tokens
  4. matrix_dimension_access_token: ""
  5. # Users in form: ['@user1:domain.com', '@user2:domain.com']
  6. matrix_dimension_admins: []
  7. # Whether to allow Dimension widgets serve websites with invalid or self signed SSL certificates
  8. matrix_dimension_widgets_allow_self_signed_ssl_certificates: false
  9. matrix_dimension_base_path: "{{ matrix_base_data_path }}/dimension"
  10. matrix_dimension_docker_image: "turt2live/matrix-dimension:latest"
  11. matrix_dimension_docker_image_force_pull: "{{ matrix_dimension_docker_image.endswith(':latest') }}"
  12. # The user and group id correspond to the node user in the `turt2live/matrix-dimension` image.
  13. matrix_dimension_user_uid: '1000'
  14. matrix_dimension_user_gid: '1000'
  15. # Controls whether the matrix-dimension container exposes its HTTP port (tcp/8184 in the container).
  16. #
  17. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8184"), or empty string to not expose.
  18. matrix_dimension_container_http_host_bind_port: ''
  19. # A list of extra arguments to pass to the container
  20. matrix_dimension_container_extra_arguments: []
  21. matrix_dimension_integrations_ui_url: "https://{{ matrix_server_fqn_dimension }}/riot"
  22. matrix_dimension_integrations_rest_url: "https://{{ matrix_server_fqn_dimension }}/api/v1/scalar"
  23. matrix_dimension_integrations_widgets_urls: ["https://{{ matrix_server_fqn_dimension }}/widgets"]
  24. matrix_dimension_integrations_jitsi_widget_url: "https://{{ matrix_server_fqn_dimension }}/widgets/jitsi"
  25. # Default Dimension 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_dimension_configuration_extension_yaml`)
  29. # or completely replace this variable with your own template.
  30. matrix_dimension_configuration_yaml: |
  31. #jinja2: lstrip_blocks: True
  32. # The web settings for the service (API and UI).
  33. # It is best to have this run on localhost and use a reverse proxy to access Dimension.
  34. web:
  35. port: 8184
  36. address: '0.0.0.0'
  37. # Homeserver configuration
  38. homeserver:
  39. # The domain name of the homeserver. This is used in many places, such as with go-neb
  40. # setups, to identify the homeserver.
  41. name: "{{ matrix_domain }}"
  42. # The URL that Dimension, go-neb, and other services provisioned by Dimension should
  43. # use to access the homeserver with.
  44. clientServerUrl: "http://matrix-synapse:8008"
  45. # The URL that Dimension should use when trying to communicate with federated APIs on
  46. # the homeserver. If not supplied or left empty Dimension will try to resolve the address
  47. # through the normal federation process.
  48. federationUrl: "http://matrix-synapse:8048"
  49. # The URL that Dimension will redirect media requests to for downloading media such as
  50. # stickers. If not supplied or left empty Dimension will use the clientServerUrl.
  51. mediaUrl: "https://{{ matrix_server_fqn_matrix }}"
  52. # The access token Dimension should use for miscellaneous access to the homeserver. This
  53. # should be for a user on the configured homeserver: any user will do, however it is
  54. # recommended to use a dedicated user (such as @dimension:t2bot.io). For information on
  55. # how to acquire an access token, visit https://t2bot.io/docs/access_tokens
  56. accessToken: "{{ matrix_dimension_access_token }}"
  57. # These users can modify the integrations this Dimension supports.
  58. # To access the admin interface, open Dimension in Riot and click the settings icon.
  59. admins: {{ matrix_dimension_admins|to_json }}
  60. # IPs and CIDR ranges listed here will be blocked from being widgets.
  61. # Note: Widgets may still be embedded with restricted content, although not through Dimension directly.
  62. widgetBlacklist:
  63. - 10.0.0.0/8
  64. - 172.16.0.0/12
  65. - 192.168.0.0/16
  66. - 127.0.0.0/8
  67. # Where the database for Dimension is
  68. database:
  69. file: "dimension.db"
  70. # Display settings that apply to self-hosted go-neb instances
  71. goneb:
  72. # The avatars to set for each bot. Usually these don't need to be changed, however if your homeserver
  73. # is not able to reach t2bot.io then you should specify your own here. To not use an avatar for a bot,
  74. # make the bot's avatar an empty string.
  75. avatars:
  76. giphy: "mxc://t2bot.io/c5eaab3ef0133c1a61d3c849026deb27"
  77. imgur: "mxc://t2bot.io/6749eaf2b302bb2188ae931b2eeb1513"
  78. github: "mxc://t2bot.io/905b64b3cd8e2347f91a60c5eb0832e1"
  79. wikipedia: "mxc://t2bot.io/7edfb54e9ad9e13fec0df22636feedf1"
  80. travisci: "mxc://t2bot.io/7f4703126906fab8bb27df34a17707a8"
  81. rss: "mxc://t2bot.io/aace4fcbd045f30afc1b4e5f0928f2f3"
  82. google: "mxc://t2bot.io/636ad10742b66c4729bf89881a505142"
  83. guggy: "mxc://t2bot.io/e7ef0ed0ba651aaf907655704f9a7526"
  84. echo: "mxc://t2bot.io/3407ff2db96b4e954fcbf2c6c0415a13"
  85. circleci: "mxc://t2bot.io/cf7d875845a82a6b21f5f66de78f6bee"
  86. jira: "mxc://t2bot.io/f4a38ebcc4280ba5b950163ca3e7c329"
  87. # Settings for how Dimension is represented to the public
  88. dimension:
  89. # This is where Dimension is accessible from clients. Be sure to set this
  90. # to your own Dimension instance.
  91. publicUrl: "https://{{ matrix_server_fqn_dimension }}"
  92. # Settings for controlling how logging works
  93. logging:
  94. file: /dev/null
  95. console: true
  96. consoleLevel: verbose
  97. fileLevel: info
  98. rotate:
  99. size: 52428800 # bytes, default is 50mb
  100. count: 5
  101. matrix_dimension_configuration_extension_yaml: |
  102. # Your custom YAML configuration for Dimension goes here.
  103. # This configuration extends the default starting configuration (`matrix_dimension_configuration_yaml`).
  104. #
  105. # You can override individual variables from the default configuration, or introduce new ones.
  106. #
  107. # If you need something more special, you can take full control by
  108. # completely redefining `matrix_dimension_configuration_yaml`.
  109. #
  110. # Example configuration extension follows:
  111. # telegram:
  112. # botToken: "YourTokenHere"
  113. #
  114. matrix_dimension_configuration_extension: "{{ matrix_dimension_configuration_extension_yaml|from_yaml if matrix_dimension_configuration_extension_yaml|from_yaml is mapping else {} }}"
  115. # Holds the final Dimension configuration (a combination of the default and its extension).
  116. # You most likely don't need to touch this variable. Instead, see `matrix_dimension_configuration_yaml`.
  117. matrix_dimension_configuration: "{{ matrix_dimension_configuration_yaml|from_yaml|combine(matrix_dimension_configuration_extension, recursive=True) }}"