Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 

6054 строки
323 KiB

  1. ---
  2. # This variables file wires together the various components (roles) used by the playbook.
  3. #
  4. # Roles used by playbook are pretty minimal and kept independent of one another as much as possible.
  5. # To deliver a turnkey fully-featured Matrix server, this playbook needs
  6. # to connect them all together. It does so by overriding role variables.
  7. #
  8. # You can also override ANY variable (seen here or in any given role),
  9. # by re-defining it in your own configuration file (`inventory/host_vars/matrix.example.com`).
  10. ########################################################################
  11. # #
  12. # Playbook #
  13. # #
  14. ########################################################################
  15. # Controls whether to install Docker or not
  16. # Also see `devture_docker_sdk_for_python_installation_enabled`.
  17. matrix_playbook_docker_installation_enabled: true
  18. matrix_playbook_docker_installation_daemon_options: "{{ matrix_playbook_docker_installation_daemon_options_auto | combine(matrix_playbook_docker_installation_daemon_options_custom, recursive=True) }}"
  19. matrix_playbook_docker_installation_daemon_options_auto:
  20. experimental: "{{ devture_systemd_docker_base_ipv6_enabled }}"
  21. ip6tables: "{{ devture_systemd_docker_base_ipv6_enabled }}"
  22. matrix_playbook_docker_installation_daemon_options_custom: {}
  23. # Controls whether to attach Traefik labels to services.
  24. # This is separate from `traefik_enabled`, because you may wish to disable Traefik installation by the playbook,
  25. # yet still use Traefik installed in another way.
  26. matrix_playbook_traefik_labels_enabled: "{{ matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] }}"
  27. matrix_playbook_reverse_proxy_container_network: "{{ traefik_container_network if traefik_enabled else 'traefik' }}"
  28. matrix_playbook_reverse_proxy_hostname: "{{ traefik_identifier if traefik_enabled else 'traefik' }}"
  29. matrix_playbook_reverse_proxy_traefik_middleware_compression_enabled: "{{ traefik_config_http_middlewares_compression_enabled if (traefik_enabled and traefik_config_http_middlewares_compression_enabled) else false }}"
  30. matrix_playbook_reverse_proxy_traefik_middleware_compression_name: "{{ (traefik_config_http_middlewares_compression_middleware_name + '@file') if traefik_enabled else '' }}"
  31. # A separate Matrix Federation entrypoint is always enabled, unless the federation port matches one of the ports for existing (default) entrypoints
  32. matrix_playbook_public_matrix_federation_api_traefik_entrypoint_enabled: "{{ matrix_federation_public_port not in [traefik_config_entrypoint_web_port, traefik_config_entrypoint_web_secure_port] }}"
  33. # We only enable HTTP/3 on the federation entrypoint if the main web-secure entrypoint has it enabled.
  34. matrix_playbook_public_matrix_federation_api_traefik_entrypoint_config_http3_enabled: "{{ traefik_config_entrypoint_web_secure_http3_enabled }}"
  35. # `traefik_config_entrypoint_web_secure_enabled` is the variable we currently follow to determine if SSL is enabled or not.
  36. # `matrix_playbook_ssl_enabled` is merely an indicator if (when looked at it publicly), the server supports SSL or not,
  37. # and affects how services configure their public URLs.
  38. matrix_federation_traefik_entrypoint_tls: "{{ traefik_config_entrypoint_web_secure_enabled }}"
  39. ########################################################################
  40. # #
  41. # /Playbook #
  42. # #
  43. ########################################################################
  44. ########################################################################
  45. # #
  46. # aux #
  47. # #
  48. ########################################################################
  49. aux_directory_default_owner: "{{ matrix_user_username }}"
  50. aux_directory_default_group: "{{ matrix_user_groupname }}"
  51. aux_file_default_owner: "{{ matrix_user_username }}"
  52. aux_file_default_group: "{{ matrix_user_groupname }}"
  53. ########################################################################
  54. # #
  55. # /aux #
  56. # #
  57. ########################################################################
  58. ########################################################################
  59. # #
  60. # base #
  61. # #
  62. ########################################################################
  63. matrix_homeserver_container_extra_arguments_auto: |
  64. {{
  65. (['--mount type=bind,src=' + matrix_appservice_discord_config_path + '/registration.yaml,dst=/matrix-appservice-discord-registration.yaml,ro'] if matrix_appservice_discord_enabled else [])
  66. +
  67. (['--mount type=bind,src=' + matrix_appservice_draupnir_for_all_config_path + '/draupnir-for-all-registration.yaml,dst=/matrix-appservice-draupnir-for-all-registration.yaml,ro'] if matrix_appservice_draupnir_for_all_enabled else [])
  68. +
  69. (['--mount type=bind,src=' + matrix_appservice_double_puppet_config_path + '/registration.yaml,dst=/matrix-appservice-double-puppet-registration.yaml,ro'] if matrix_appservice_double_puppet_enabled else [])
  70. +
  71. (['--mount type=bind,src=' + matrix_appservice_irc_config_path + '/registration.yaml,dst=/matrix-appservice-irc-registration.yaml,ro'] if matrix_appservice_irc_enabled else [])
  72. +
  73. (['--mount type=bind,src=' + matrix_appservice_kakaotalk_config_path + '/registration.yaml,dst=/matrix-appservice-kakaotalk-registration.yaml,ro'] if matrix_appservice_kakaotalk_enabled else [])
  74. +
  75. (['--mount type=bind,src=' + matrix_appservice_slack_config_path + '/slack-registration.yaml,dst=/matrix-appservice-slack-registration.yaml,ro'] if matrix_appservice_slack_enabled else [])
  76. +
  77. (['--mount type=bind,src=' + matrix_appservice_webhooks_config_path + '/webhooks-registration.yaml,dst=/matrix-appservice-webhooks-registration.yaml,ro'] if matrix_appservice_webhooks_enabled else [])
  78. +
  79. (['--mount type=bind,src=' + matrix_beeper_linkedin_config_path + '/registration.yaml,dst=/matrix-beeper-linkedin-registration.yaml,ro'] if matrix_beeper_linkedin_enabled else [])
  80. +
  81. (['--mount type=bind,src=' + matrix_go_skype_bridge_config_path + '/registration.yaml,dst=/matrix-go-skype-bridge-registration.yaml,ro'] if matrix_go_skype_bridge_enabled else [])
  82. +
  83. (['--mount type=bind,src=' + matrix_wechat_config_path + '/registration.yaml,dst=/matrix-wechat-registration.yaml,ro'] if matrix_wechat_enabled else [])
  84. +
  85. (['--mount type=bind,src=' + matrix_heisenbridge_base_path + '/registration.yaml,dst=/heisenbridge-registration.yaml,ro'] if matrix_heisenbridge_enabled else [])
  86. +
  87. (['--mount type=bind,src=' + matrix_hookshot_base_path + '/registration.yml,dst=/hookshot-registration.yml,ro'] if matrix_hookshot_enabled else [])
  88. +
  89. (['--mount type=bind,src=' + matrix_mautrix_discord_config_path + '/registration.yaml,dst=/matrix-mautrix-discord-registration.yaml,ro'] if matrix_mautrix_discord_enabled else [])
  90. +
  91. (['--mount type=bind,src=' + matrix_mautrix_slack_config_path + '/registration.yaml,dst=/matrix-mautrix-slack-registration.yaml,ro'] if matrix_mautrix_slack_enabled else [])
  92. +
  93. (['--mount type=bind,src=' + matrix_mautrix_facebook_config_path + '/registration.yaml,dst=/matrix-mautrix-facebook-registration.yaml,ro'] if matrix_mautrix_facebook_enabled else [])
  94. +
  95. (['--mount type=bind,src=' + matrix_mautrix_googlechat_config_path + '/registration.yaml,dst=/matrix-mautrix-googlechat-registration.yaml,ro'] if matrix_mautrix_googlechat_enabled else [])
  96. +
  97. (['--mount type=bind,src=' + matrix_mautrix_hangouts_config_path + '/registration.yaml,dst=/matrix-mautrix-hangouts-registration.yaml,ro'] if matrix_mautrix_hangouts_enabled else [])
  98. +
  99. (['--mount type=bind,src=' + matrix_mautrix_instagram_config_path + '/registration.yaml,dst=/matrix-mautrix-instagram-registration.yaml,ro'] if matrix_mautrix_instagram_enabled else [])
  100. +
  101. (['--mount type=bind,src=' + matrix_mautrix_signal_config_path + '/registration.yaml,dst=/matrix-mautrix-signal-registration.yaml,ro'] if matrix_mautrix_signal_enabled else [])
  102. +
  103. (['--mount type=bind,src=' + matrix_mautrix_meta_messenger_config_path + '/registration.yaml,dst=/matrix-mautrix-meta-messenger-registration.yaml,ro'] if matrix_mautrix_meta_messenger_enabled else [])
  104. +
  105. (['--mount type=bind,src=' + matrix_mautrix_meta_instagram_config_path + '/registration.yaml,dst=/matrix-mautrix-meta-instagram-registration.yaml,ro'] if matrix_mautrix_meta_instagram_enabled else [])
  106. +
  107. (['--mount type=bind,src=' + matrix_mautrix_telegram_config_path + '/registration.yaml,dst=/matrix-mautrix-telegram-registration.yaml,ro'] if matrix_mautrix_telegram_enabled else [])
  108. +
  109. (['--mount type=bind,src=' + matrix_mautrix_twitter_config_path + '/registration.yaml,dst=/matrix-mautrix-twitter-registration.yaml,ro'] if matrix_mautrix_twitter_enabled else [])
  110. +
  111. (['--mount type=bind,src=' + matrix_mautrix_gmessages_config_path + '/registration.yaml,dst=/matrix-mautrix-gmessages-registration.yaml,ro'] if matrix_mautrix_gmessages_enabled else [])
  112. +
  113. (['--mount type=bind,src=' + matrix_mautrix_whatsapp_config_path + '/registration.yaml,dst=/matrix-mautrix-whatsapp-registration.yaml,ro'] if matrix_mautrix_whatsapp_enabled else [])
  114. +
  115. (['--mount type=bind,src=' + matrix_mautrix_wsproxy_config_path + '/androidsms-registration.yaml,dst=/matrix-mautrix-androidsms-registration.yaml,ro'] if matrix_mautrix_wsproxy_enabled else [])
  116. +
  117. (['--mount type=bind,src=' + matrix_mautrix_wsproxy_config_path + '/imessage-registration.yaml,dst=/matrix-mautrix-imessage-registration.yaml,ro'] if matrix_mautrix_wsproxy_enabled else [])
  118. +
  119. (['--mount type=bind,src=' + matrix_mx_puppet_discord_config_path + '/registration.yaml,dst=/matrix-mx-puppet-discord-registration.yaml,ro'] if matrix_mx_puppet_discord_enabled else [])
  120. +
  121. (['--mount type=bind,src=' + matrix_mx_puppet_groupme_config_path + '/registration.yaml,dst=/matrix-mx-puppet-groupme-registration.yaml,ro'] if matrix_mx_puppet_groupme_enabled else [])
  122. +
  123. (['--mount type=bind,src=' + matrix_mx_puppet_instagram_config_path + '/registration.yaml,dst=/matrix-mx-puppet-instagram-registration.yaml,ro'] if matrix_mx_puppet_instagram_enabled else [])
  124. +
  125. (['--mount type=bind,src=' + matrix_mx_puppet_slack_config_path + '/registration.yaml,dst=/matrix-mx-puppet-slack-registration.yaml,ro'] if matrix_mx_puppet_slack_enabled else [])
  126. +
  127. (['--mount type=bind,src=' + matrix_mx_puppet_steam_config_path + '/registration.yaml,dst=/matrix-mx-puppet-steam-registration.yaml,ro'] if matrix_mx_puppet_steam_enabled else [])
  128. +
  129. (['--mount type=bind,src=' + matrix_mx_puppet_twitter_config_path + '/registration.yaml,dst=/matrix-mx-puppet-twitter-registration.yaml,ro'] if matrix_mx_puppet_twitter_enabled else [])
  130. +
  131. (['--mount type=bind,src=' + matrix_sms_bridge_config_path + '/registration.yaml,dst=/matrix-sms-bridge-registration.yaml,ro'] if matrix_sms_bridge_enabled else [])
  132. +
  133. (['--mount type=bind,src=' + matrix_cactus_comments_app_service_config_file + ',dst=/matrix-cactus-comments.yaml,ro'] if matrix_cactus_comments_enabled else [])
  134. }}
  135. matrix_homeserver_app_service_config_files_auto: |
  136. {{
  137. (['/matrix-appservice-discord-registration.yaml'] if matrix_appservice_discord_enabled else [])
  138. +
  139. (['/matrix-appservice-draupnir-for-all-registration.yaml'] if matrix_appservice_draupnir_for_all_enabled else [])
  140. +
  141. (['/matrix-appservice-double-puppet-registration.yaml'] if matrix_appservice_double_puppet_enabled else [])
  142. +
  143. (['/matrix-appservice-irc-registration.yaml'] if matrix_appservice_irc_enabled else [])
  144. +
  145. (['/matrix-appservice-kakaotalk-registration.yaml'] if matrix_appservice_kakaotalk_enabled else [])
  146. +
  147. (['/matrix-appservice-slack-registration.yaml'] if matrix_appservice_slack_enabled else [])
  148. +
  149. (['/matrix-appservice-webhooks-registration.yaml'] if matrix_appservice_webhooks_enabled else [])
  150. +
  151. (['/matrix-beeper-linkedin-registration.yaml'] if matrix_beeper_linkedin_enabled else [])
  152. +
  153. (['/matrix-go-skype-bridge-registration.yaml'] if matrix_go_skype_bridge_enabled else [])
  154. +
  155. (['/matrix-wechat-registration.yaml'] if matrix_wechat_enabled else [])
  156. +
  157. (['/heisenbridge-registration.yaml'] if matrix_heisenbridge_enabled else [])
  158. +
  159. (['/hookshot-registration.yml'] if matrix_hookshot_enabled else [])
  160. +
  161. (['/matrix-mautrix-discord-registration.yaml'] if matrix_mautrix_discord_enabled else [])
  162. +
  163. (['/matrix-mautrix-slack-registration.yaml'] if matrix_mautrix_slack_enabled else [])
  164. +
  165. (['/matrix-mautrix-facebook-registration.yaml'] if matrix_mautrix_facebook_enabled else [])
  166. +
  167. (['/matrix-mautrix-googlechat-registration.yaml'] if matrix_mautrix_googlechat_enabled else [])
  168. +
  169. (['/matrix-mautrix-hangouts-registration.yaml'] if matrix_mautrix_hangouts_enabled else [])
  170. +
  171. (['/matrix-mautrix-instagram-registration.yaml'] if matrix_mautrix_instagram_enabled else [])
  172. +
  173. (['/matrix-mautrix-signal-registration.yaml'] if matrix_mautrix_signal_enabled else [])
  174. +
  175. (['/matrix-mautrix-meta-messenger-registration.yaml'] if matrix_mautrix_meta_messenger_enabled else [])
  176. +
  177. (['/matrix-mautrix-meta-instagram-registration.yaml'] if matrix_mautrix_meta_instagram_enabled else [])
  178. +
  179. (['/matrix-mautrix-telegram-registration.yaml'] if matrix_mautrix_telegram_enabled else [])
  180. +
  181. (['/matrix-mautrix-twitter-registration.yaml'] if matrix_mautrix_twitter_enabled else [])
  182. +
  183. (['/matrix-mautrix-gmessages-registration.yaml'] if matrix_mautrix_gmessages_enabled else [])
  184. +
  185. (['/matrix-mautrix-whatsapp-registration.yaml'] if matrix_mautrix_whatsapp_enabled else [])
  186. +
  187. (['/matrix-mautrix-androidsms-registration.yaml'] if matrix_mautrix_wsproxy_enabled else [])
  188. +
  189. (['/matrix-mautrix-imessage-registration.yaml'] if matrix_mautrix_wsproxy_enabled else [])
  190. +
  191. (['/matrix-mx-puppet-discord-registration.yaml'] if matrix_mx_puppet_discord_enabled else [])
  192. +
  193. (['/matrix-mx-puppet-groupme-registration.yaml'] if matrix_mx_puppet_groupme_enabled else [])
  194. +
  195. (['/matrix-mx-puppet-instagram-registration.yaml'] if matrix_mx_puppet_instagram_enabled else [])
  196. +
  197. (['/matrix-mx-puppet-slack-registration.yaml'] if matrix_mx_puppet_slack_enabled else [])
  198. +
  199. (['/matrix-mx-puppet-steam-registration.yaml'] if matrix_mx_puppet_steam_enabled else [])
  200. +
  201. (['/matrix-mx-puppet-twitter-registration.yaml'] if matrix_mx_puppet_twitter_enabled else [])
  202. +
  203. (['/matrix-sms-bridge-registration.yaml'] if matrix_sms_bridge_enabled else [])
  204. +
  205. (['/matrix-cactus-comments.yaml'] if matrix_cactus_comments_enabled else [])
  206. }}
  207. matrix_addons_homeserver_container_network: "{{ matrix_playbook_reverse_proxy_container_network if matrix_playbook_internal_matrix_client_api_traefik_entrypoint_enabled else matrix_homeserver_container_network }}"
  208. matrix_addons_homeserver_client_api_url: "{{ ('http://' + matrix_playbook_reverse_proxy_hostname + ':' + matrix_playbook_internal_matrix_client_api_traefik_entrypoint_port | string) if matrix_playbook_internal_matrix_client_api_traefik_entrypoint_enabled else matrix_homeserver_container_url }}"
  209. matrix_addons_homeserver_systemd_services_list: "{{ ([traefik_identifier + '.service'] if matrix_playbook_reverse_proxy_type == 'playbook-managed-traefik' else []) if matrix_playbook_internal_matrix_client_api_traefik_entrypoint_enabled else matrix_homeserver_systemd_services_list }}"
  210. # Starting from version `0.6.0` Conduit natively supports some sync v3 (sliding-sync) features.
  211. matrix_homeserver_sliding_sync_url: "{{ matrix_sliding_sync_base_url if matrix_sliding_sync_enabled else (matrix_homeserver_url if matrix_homeserver_implementation in ['conduit'] else '') }}"
  212. ########################################################################
  213. # #
  214. # /base #
  215. # #
  216. ########################################################################
  217. ########################################################################
  218. # #
  219. # com.devture.ansible.role.systemd_service_manager #
  220. # #
  221. ########################################################################
  222. # This list is not exhaustive and final.
  223. # Synapse workers are still injected into the list at runtime.
  224. # Additional JVB workers (jitsi_jvb.yml -- roles/galaxy/jitsi/tasks/init_additional_jvb.yml) override this variable at runtime as well.
  225. #
  226. # Priority levels are like this:
  227. # - Traefik starts first with a level of 250, so that:
  228. # - it can get an early start on obtaining SSL certificates and routing to other services as soon as they start (later)
  229. # - so that addon services (starting later) can communicte with the homeserver via Traefik's internal entrypoint
  230. # (see `matrix_playbook_internal_matrix_client_api_traefik_entrypoint_enabled`)
  231. # - core services (the homeserver) get a level of ~1000
  232. # - services that the homeserver depends on (database, Redis, ntfy, Coturn, etc.) get a lower level - between 500 and 1000
  233. # - Coturn gets a higher level if `devture_systemd_service_manager_service_restart_mode == 'one-by-one'` to intentionally delay it, because:
  234. # - starting services one by one means that the service manager role waits for each service to fully start before proceeding to the next one
  235. # - if Coturn has a lower priority than the homeserver, it would be started before it
  236. # - since Coturn is started before the homeserver, there's no container label telling Traefik to get a `matrix.example.com` certificate
  237. # - thus, Coturn would spin and wait for a certificate until it fails. We'd get a playbook failure due to it, but service manager will proceed to start all other services anyway.
  238. # - only later, when the homeserver actually starts, would that certificate be fetched and dumped
  239. # - reverse-proxying services get level 3000
  240. # - Matrix utility services (bridges, bots) get a level of 2000/2200, so that:
  241. # - they can start before the reverse-proxy
  242. # - so that, when the reverse-proxy is up (Matrix is up), all bots and bridges can be interacted with
  243. # - monitoring services (Prometheus, Grafana, ..) get a level of 4000 - they can start later than all-of-Matrix
  244. # - services which aren't time-sensitive (various crons and timers) get a level of 5000 - they can start later than all-of-Matrix
  245. devture_systemd_service_manager_services_list_auto: |
  246. {{
  247. ([{'name': (backup_borg_identifier + '.timer'), 'priority': 5000, 'groups': ['matrix', 'backup', 'borg']}] if backup_borg_enabled else [])
  248. +
  249. ([{'name': 'matrix-alertmanager-receiver.service', 'priority': 2200, 'groups': ['matrix', 'alertmanager-receiver']}] if matrix_alertmanager_receiver_enabled else [])
  250. +
  251. ([{'name': 'matrix-authentication-service.service', 'priority': 2200, 'groups': ['matrix', 'matrix-authentication-service']}] if matrix_authentication_service_enabled else [])
  252. +
  253. ([{'name': 'matrix-bot-buscarron.service', 'priority': 2200, 'groups': ['matrix', 'bots', 'buscarron', 'bot-buscarron']}] if matrix_bot_buscarron_enabled else [])
  254. +
  255. ([{'name': 'matrix-bot-baibot.service', 'priority': 2200, 'groups': ['matrix', 'bots', 'baibot', 'bot-baibot']}] if matrix_bot_baibot_enabled else [])
  256. +
  257. ([{'name': 'matrix-bot-go-neb.service', 'priority': 2200, 'groups': ['matrix', 'bots', 'go-neb', 'bot-go-neb']}] if matrix_bot_go_neb_enabled else [])
  258. +
  259. ([{'name': 'matrix-bot-honoroit.service', 'priority': 2200, 'groups': ['matrix', 'bots', 'honoroit', 'bot-honoroit']}] if matrix_bot_honoroit_enabled else [])
  260. +
  261. ([{'name': 'matrix-bot-matrix-registration-bot.service', 'priority': 2200, 'groups': ['matrix', 'bots', 'registration-bot', 'bot-matrix-registration-bot']}] if matrix_bot_matrix_registration_bot_enabled else [])
  262. +
  263. ([{'name': 'matrix-bot-matrix-reminder-bot.service', 'priority': 2200, 'groups': ['matrix', 'bots', 'reminder-bot', 'bot-matrix-reminder-bot']}] if matrix_bot_matrix_reminder_bot_enabled else [])
  264. +
  265. ([{'name': 'matrix-bot-maubot.service', 'priority': 2200, 'groups': ['matrix', 'bots', 'maubot', 'bot-maubot']}] if matrix_bot_maubot_enabled else [])
  266. +
  267. ([{'name': 'matrix-bot-mjolnir.service', 'priority': 4000, 'groups': ['matrix', 'bots', 'mjolnir', 'bot-mjolnir']}] if matrix_bot_mjolnir_enabled else [])
  268. +
  269. ([{'name': 'matrix-bot-draupnir.service', 'priority': 4000, 'groups': ['matrix', 'bots', 'draupnir', 'bot-draupnir']}] if matrix_bot_draupnir_enabled else [])
  270. +
  271. ([{'name': 'matrix-bot-chatgpt.service', 'priority': 2200, 'groups': ['matrix', 'bots', 'chatgpt', 'bot-chatgpt']}] if matrix_bot_chatgpt_enabled else [])
  272. +
  273. ([{'name': 'matrix-appservice-discord.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'appservice-discord']}] if matrix_appservice_discord_enabled else [])
  274. +
  275. ([{'name': 'matrix-appservice-draupnir-for-all.service', 'priority': 4000, 'groups': ['matrix', 'bridges', 'draupnir-for-all', 'appservice-draupnir-for-all']}] if matrix_appservice_draupnir_for_all_enabled else [])
  276. +
  277. ([{'name': 'matrix-appservice-irc.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'appservice-irc']}] if matrix_appservice_irc_enabled else [])
  278. +
  279. ([{'name': 'matrix-appservice-kakaotalk.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'appservice-kakaotalk']}] if matrix_appservice_kakaotalk_enabled else [])
  280. +
  281. ([{'name': 'matrix-appservice-kakaotalk-node.service', 'priority': 1900, 'groups': ['matrix', 'bridges', 'appservice-kakaotalk', 'appservice-kakaotalk-node']}] if matrix_appservice_kakaotalk_enabled else [])
  282. +
  283. ([{'name': 'matrix-appservice-slack.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'appservice-slack']}] if matrix_appservice_slack_enabled else [])
  284. +
  285. ([{'name': 'matrix-appservice-webhooks.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'appservice-webhooks']}] if matrix_appservice_webhooks_enabled else [])
  286. +
  287. ([{'name': 'matrix-beeper-linkedin.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'beeper-linkedin']}] if matrix_beeper_linkedin_enabled else [])
  288. +
  289. ([{'name': 'matrix-go-skype-bridge.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'go-skype']}] if matrix_go_skype_bridge_enabled else [])
  290. +
  291. ([{'name': 'matrix-wechat.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'wechat']}] if matrix_wechat_enabled else [])
  292. +
  293. ([{'name': 'matrix-wechat-agent.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'wechat']}] if matrix_wechat_enabled else [])
  294. +
  295. ([{'name': 'matrix-heisenbridge.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'heisenbridge']}] if matrix_heisenbridge_enabled else [])
  296. +
  297. ([{'name': 'matrix-hookshot.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'hookshot', 'bridge-hookshot']}] if matrix_hookshot_enabled else [])
  298. +
  299. ([{'name': 'matrix-mautrix-discord.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'mautrix-discord']}] if matrix_mautrix_discord_enabled else [])
  300. +
  301. ([{'name': 'matrix-mautrix-slack.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'mautrix-slack']}] if matrix_mautrix_slack_enabled else [])
  302. +
  303. ([{'name': 'matrix-mautrix-facebook.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'mautrix-facebook']}] if matrix_mautrix_facebook_enabled else [])
  304. +
  305. ([{'name': 'matrix-mautrix-googlechat.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'mautrix-googlechat']}] if matrix_mautrix_googlechat_enabled else [])
  306. +
  307. ([{'name': 'matrix-mautrix-hangouts.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'mautrix-hangouts']}] if matrix_mautrix_hangouts_enabled else [])
  308. +
  309. ([{'name': 'matrix-mautrix-instagram.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'mautrix-instagram']}] if matrix_mautrix_instagram_enabled else [])
  310. +
  311. ([{'name': 'matrix-mautrix-signal.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'mautrix-signal', 'mautrix-signal']}] if matrix_mautrix_signal_enabled else [])
  312. +
  313. ([{'name': (matrix_mautrix_meta_messenger_identifier + '.service'), 'priority': 2000, 'groups': ['matrix', 'bridges', 'mautrix-meta', 'mautrix-meta-messenger']}] if matrix_mautrix_meta_messenger_enabled else [])
  314. +
  315. ([{'name': (matrix_mautrix_meta_instagram_identifier + '.service'), 'priority': 2000, 'groups': ['matrix', 'bridges', 'mautrix-meta', 'mautrix-meta-instagram']}] if matrix_mautrix_meta_instagram_enabled else [])
  316. +
  317. ([{'name': 'matrix-mautrix-telegram.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'mautrix-telegram']}] if matrix_mautrix_telegram_enabled else [])
  318. +
  319. ([{'name': 'matrix-mautrix-twitter.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'mautrix-twitter']}] if matrix_mautrix_twitter_enabled else [])
  320. +
  321. ([{'name': 'matrix-mautrix-gmessages.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'mautrix-gmessages']}] if matrix_mautrix_gmessages_enabled else [])
  322. +
  323. ([{'name': 'matrix-mautrix-whatsapp.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'mautrix-whatsapp']}] if matrix_mautrix_whatsapp_enabled else [])
  324. +
  325. ([{'name': 'matrix-mautrix-wsproxy.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'mautrix-wsproxy']}] if matrix_mautrix_wsproxy_enabled else [])
  326. +
  327. ([{'name': 'matrix-mautrix-wsproxy-syncproxy.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'mautrix-wsproxy-syncproxy']}] if matrix_mautrix_wsproxy_enabled else [])
  328. +
  329. ([{'name': 'matrix-mx-puppet-discord.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'mx-puppet-discord']}] if matrix_mx_puppet_discord_enabled else [])
  330. +
  331. ([{'name': 'matrix-mx-puppet-groupme.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'mx-puppet-groupme']}] if matrix_mx_puppet_groupme_enabled else [])
  332. +
  333. ([{'name': 'matrix-mx-puppet-instagram.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'mx-puppet-instagram']}] if matrix_mx_puppet_instagram_enabled else [])
  334. +
  335. ([{'name': 'matrix-mx-puppet-slack.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'mx-puppet-slack']}] if matrix_mx_puppet_slack_enabled else [])
  336. +
  337. ([{'name': 'matrix-mx-puppet-steam.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'mx-puppet-steam']}] if matrix_mx_puppet_steam_enabled else [])
  338. +
  339. ([{'name': 'matrix-mx-puppet-twitter.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'mx-puppet-twitter']}] if matrix_mx_puppet_twitter_enabled else [])
  340. +
  341. ([{'name': 'matrix-postmoogle.service', 'priority': 2200, 'groups': ['matrix', 'bridges', 'postmoogle']}] if matrix_postmoogle_enabled else [])
  342. +
  343. ([{'name': 'matrix-sms-bridge.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'sms']}] if matrix_sms_bridge_enabled else [])
  344. +
  345. ([{'name': 'matrix-cactus-comments.service', 'priority': 2000, 'groups': ['matrix', 'cactus-comments']}] if matrix_cactus_comments_enabled else [])
  346. +
  347. ([{'name': 'matrix-cactus-comments-client.service', 'priority': 2000, 'groups': ['matrix', 'cactus-comments-client']}] if matrix_cactus_comments_client_enabled else [])
  348. +
  349. ([{'name': 'matrix-client-cinny.service', 'priority': 2000, 'groups': ['matrix', 'clients', 'cinny', 'client-cinny']}] if matrix_client_cinny_enabled else [])
  350. +
  351. ([{'name': 'matrix-client-element.service', 'priority': 2000, 'groups': ['matrix', 'clients', 'element', 'client-element']}] if matrix_client_element_enabled else [])
  352. +
  353. ([{'name': 'matrix-client-hydrogen.service', 'priority': 2000, 'groups': ['matrix', 'clients', 'hydrogen', 'client-hydrogen']}] if matrix_client_hydrogen_enabled else [])
  354. +
  355. ([{'name': 'matrix-client-schildichat.service', 'priority': 2000, 'groups': ['matrix', 'clients', 'schildichat', 'client-schildichat']}] if matrix_client_schildichat_enabled else [])
  356. +
  357. ([{'name': ('matrix-' + matrix_homeserver_implementation + '.service'), 'priority': 1000, 'groups': ['matrix', 'homeservers', matrix_homeserver_implementation]}] if matrix_homeserver_enabled else [])
  358. +
  359. ([{'name': 'matrix-corporal.service', 'priority': 1500, 'groups': ['matrix', 'corporal']}] if matrix_corporal_enabled else [])
  360. +
  361. ([{'name': 'matrix-coturn.service', 'priority': (900 if devture_systemd_service_manager_service_restart_mode == 'clean-stop-start' else 1500), 'groups': ['matrix', 'coturn']}] if matrix_coturn_enabled else [])
  362. +
  363. ([{'name': 'matrix-rageshake.service', 'priority': 4000, 'groups': ['matrix', 'rageshake']}] if matrix_rageshake_enabled else [])
  364. +
  365. ([{'name': 'matrix-coturn-reload.timer', 'priority': 5000, 'groups': ['matrix', 'coturn']}] if (matrix_coturn_enabled and matrix_coturn_tls_enabled) else [])
  366. +
  367. ([{'name': 'matrix-dimension.service', 'priority': 4000, 'groups': ['matrix', 'integration-managers', 'dimension']}] if matrix_dimension_enabled else [])
  368. +
  369. ([{'name': 'matrix-dynamic-dns.service', 'priority': 5000, 'groups': ['matrix', 'dynamic-dns']}] if matrix_dynamic_dns_enabled else [])
  370. +
  371. ([{'name': 'matrix-email2matrix.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'email2matrix']}] if matrix_email2matrix_enabled else [])
  372. +
  373. ([{'name': (etherpad_identifier + '.service'), 'priority': 4000, 'groups': ['matrix', 'etherpad']}] if etherpad_enabled else [])
  374. +
  375. ([{'name': (grafana_identifier + '.service'), 'priority': 4000, 'groups': ['matrix', 'monitoring', 'grafana']}] if grafana_enabled else [])
  376. +
  377. ([{'name': (jitsi_identifier + '-web.service'), 'priority': 4200, 'groups': ['matrix', 'jitsi', 'jitsi-web']}] if jitsi_enabled else [])
  378. +
  379. ([{'name': (jitsi_identifier + '-prosody.service'), 'priority': 4000, 'groups': ['matrix', 'jitsi', 'jitsi-prosody']}] if jitsi_enabled else [])
  380. +
  381. ([{'name': (jitsi_identifier + '-jicofo.service'), 'priority': 4100, 'groups': ['matrix', 'jitsi', 'jitsi-jicofo']}] if jitsi_enabled else [])
  382. +
  383. ([{'name': (jitsi_identifier + '-jvb.service'), 'priority': 4100, 'groups': ['matrix', 'jitsi', 'jitsi-jvb']}] if jitsi_enabled else [])
  384. +
  385. ([{'name': 'matrix-ldap-registration-proxy.service', 'priority': 2000, 'groups': ['matrix', 'ldap-registration-proxy']}] if matrix_ldap_registration_proxy_enabled else [])
  386. +
  387. ([{'name': 'matrix-ma1sd.service', 'priority': 2000, 'groups': ['matrix', 'ma1sd']}] if matrix_ma1sd_enabled else [])
  388. +
  389. ([{'name': (matrix_media_repo_identifier + '.service'), 'priority': 4000, 'groups': ['matrix', 'matrix-media-repo']}] if matrix_media_repo_enabled else [])
  390. +
  391. ([{'name': (exim_relay_identifier ~ '.service'), 'priority': 800, 'groups': ['matrix', 'mailer', 'exim-relay']}] if exim_relay_enabled else [])
  392. +
  393. ([{'name': (ntfy_identifier + '.service'), 'priority': 800, 'groups': ['matrix', 'ntfy']}] if ntfy_enabled else [])
  394. +
  395. ([{'name': (postgres_identifier + '.service'), 'priority': 500, 'groups': ['matrix', 'postgres']}] if postgres_enabled else [])
  396. +
  397. ([{'name': (postgres_backup_identifier + '.service'), 'priority': 5000, 'groups': ['matrix', 'backup', 'postgres-backup']}] if postgres_backup_enabled else [])
  398. +
  399. ([{'name': (prometheus_identifier + '.service'), 'priority': 4000, 'groups': ['matrix', 'monitoring', 'prometheus']}] if prometheus_enabled else [])
  400. +
  401. ([{'name': (prometheus_node_exporter_identifier + '.service'), 'priority': 3900, 'groups': ['matrix', 'monitoring', 'prometheus-exporters', 'prometheus-node-exporter']}] if prometheus_node_exporter_enabled else [])
  402. +
  403. ([{'name': (prometheus_postgres_exporter_identifier + '.service'), 'priority': 3900, 'groups': ['matrix', 'monitoring', 'prometheus-exporters', 'prometheus-postgres-exporter']}] if prometheus_postgres_exporter_enabled else [])
  404. +
  405. ([{'name': 'matrix-prometheus-nginxlog-exporter.service', 'priority': 3900, 'groups': ['matrix', 'monitoring', 'prometheus-exporters', 'prometheus-nginxlog-exporter']}] if matrix_prometheus_nginxlog_exporter_enabled else [])
  406. +
  407. ([{'name': (redis_identifier + '.service'), 'priority': 750, 'groups': ['matrix', 'redis']}] if redis_enabled else [])
  408. +
  409. ([{'name': (keydb_identifier + '.service'), 'priority': 750, 'groups': ['matrix', 'keydb']}] if keydb_enabled else [])
  410. +
  411. ([{'name': (valkey_identifier + '.service'), 'priority': 750, 'groups': ['matrix', 'valkey']}] if valkey_enabled else [])
  412. +
  413. ([{'name': 'matrix-pantalaimon.service', 'priority': 4000, 'groups': ['matrix', 'pantalaimon']}] if matrix_pantalaimon_enabled else [])
  414. +
  415. ([{'name': 'matrix-registration.service', 'priority': 4000, 'groups': ['matrix', 'registration', 'matrix-registration']}] if matrix_registration_enabled else [])
  416. +
  417. ([{'name': 'matrix-sliding-sync.service', 'priority': 1500, 'groups': ['matrix', 'sliding-sync']}] if matrix_sliding_sync_enabled else [])
  418. +
  419. ([{'name': 'matrix-sygnal.service', 'priority': 800, 'groups': ['matrix', 'sygnal']}] if matrix_sygnal_enabled else [])
  420. +
  421. ([{'name': 'matrix-goofys.service', 'priority': 800, 'groups': ['matrix', 'goofys']}] if matrix_s3_media_store_enabled else [])
  422. +
  423. ([{'name': 'matrix-synapse-s3-storage-provider-migrate.timer', 'priority': 5000, 'groups': ['matrix']}] if matrix_synapse_ext_synapse_s3_storage_provider_enabled else [])
  424. +
  425. ([{'name': 'matrix-synapse-auto-compressor.timer', 'priority': 5000, 'groups': ['matrix', 'synapse-auto-compressor']}] if matrix_synapse_auto_compressor_enabled else [])
  426. +
  427. ([{'name': 'matrix-synapse-admin.service', 'priority': 4000, 'groups': ['matrix', 'synapse-admin']}] if matrix_synapse_admin_enabled else [])
  428. +
  429. ([{'name': (matrix_synapse_usage_exporter_identifier + '.service'), 'priority': 4000, 'groups': ['matrix', 'synapse-usage-exporter']}] if matrix_synapse_usage_exporter_enabled else [])
  430. +
  431. ([{'name': 'matrix-synapse-reverse-proxy-companion.service', 'priority': 1500, 'groups': ['matrix', 'homeservers', 'synapse', 'synapse-reverse-proxy-companion', 'reverse-proxies']}] if matrix_synapse_reverse_proxy_companion_enabled else [])
  432. +
  433. ([{'name': 'matrix-user-verification-service.service', 'priority': 800, 'groups': ['matrix', 'matrix-user-verification-service']}] if matrix_user_verification_service_enabled else [])
  434. +
  435. ([{'name': (matrix_static_files_identifier + '.service'), 'priority': 4000, 'groups': ['matrix', 'matrix-static-files']}] if matrix_static_files_enabled else [])
  436. +
  437. ([{'name': (devture_container_socket_proxy_identifier + '.service'), 'priority': 200, 'groups': ['matrix', 'reverse-proxies', 'container-socket-proxy']}] if devture_container_socket_proxy_enabled else [])
  438. +
  439. ([{'name': (traefik_identifier + '.service'), 'priority': 250, 'groups': ['matrix', 'traefik', 'reverse-proxies']}] if traefik_enabled else [])
  440. +
  441. ([{'name': (traefik_certs_dumper_identifier + '.service'), 'priority': 300, 'groups': ['matrix', 'traefik-certs-dumper']}] if traefik_certs_dumper_enabled else [])
  442. }}
  443. ########################################################################
  444. # #
  445. # /com.devture.ansible.role.systemd_service_manager #
  446. # #
  447. ########################################################################
  448. ########################################################################
  449. # #
  450. # com.devture.ansible.role.timesync #
  451. # #
  452. ########################################################################
  453. # To completely disable installing systemd-timesyncd/ntpd, use `devture_timesync_installation_enabled: false`.
  454. ########################################################################
  455. # #
  456. # /com.devture.ansible.role.timesync #
  457. # #
  458. ########################################################################
  459. ######################################################################
  460. #
  461. # com.devture.ansible.role.playbook_state_preserver
  462. #
  463. ######################################################################
  464. # To completely disable this feature, use `devture_playbook_state_preserver_enabled: false`.
  465. devture_playbook_state_preserver_uid: "{{ matrix_user_uid }}"
  466. devture_playbook_state_preserver_gid: "{{ matrix_user_gid }}"
  467. devture_playbook_state_preserver_vars_preservation_dst: "{{ matrix_base_data_path }}/vars.yml"
  468. devture_playbook_state_preserver_commit_hash_preservation_dst: "{{ matrix_base_data_path }}/git_hash.yml"
  469. ######################################################################
  470. #
  471. # /com.devture.ansible.role.playbook_state_preserver
  472. #
  473. ######################################################################
  474. ########################################################################
  475. # #
  476. # geerlingguy/ansible-role-docker #
  477. # #
  478. ########################################################################
  479. docker_daemon_options: "{{ matrix_playbook_docker_installation_daemon_options }}"
  480. ########################################################################
  481. # #
  482. # /geerlingguy/ansible-role-docker #
  483. # #
  484. ########################################################################
  485. ######################################################################
  486. #
  487. # matrix-base
  488. #
  489. ######################################################################
  490. matrix_identity_server_url: "{{ (('https://' if matrix_playbook_ssl_enabled else 'http://') + matrix_server_fqn_matrix) if matrix_ma1sd_enabled else None }}"
  491. matrix_homeserver_systemd_services_list: |-
  492. {{
  493. (
  494. ([('matrix-' + matrix_homeserver_implementation + '.service')] if matrix_homeserver_implementation != 'synapse' else [])
  495. +
  496. ([('matrix-' + matrix_homeserver_implementation + '.service')] if matrix_homeserver_implementation == 'synapse' and not matrix_synapse_reverse_proxy_companion_enabled else [])
  497. +
  498. (['matrix-synapse-reverse-proxy-companion.service'] if matrix_synapse_reverse_proxy_companion_enabled else [])
  499. ) | unique
  500. }}
  501. matrix_homeserver_container_client_api_endpoint: |-
  502. {{
  503. {
  504. 'synapse': ('matrix-synapse-reverse-proxy-companion:8008' if matrix_synapse_reverse_proxy_companion_enabled | default(false) else ('matrix-synapse:'+ matrix_synapse_container_client_api_port | default('8008') | string)),
  505. 'dendrite': ('matrix-dendrite:' + matrix_dendrite_http_bind_port | default('8008') | string),
  506. 'conduit': ('matrix-conduit:' + matrix_conduit_port_number | default('8008') | string),
  507. }[matrix_homeserver_implementation]
  508. }}
  509. matrix_homeserver_container_federation_api_endpoint: |-
  510. {{
  511. {
  512. 'synapse': ('matrix-synapse-reverse-proxy-companion:8048' if matrix_synapse_reverse_proxy_companion_enabled else ('matrix-synapse:'+ matrix_synapse_container_federation_api_plain_port | default('8008') | string)),
  513. 'dendrite': ('matrix-dendrite:' + matrix_dendrite_http_bind_port | default('8008') | string),
  514. 'conduit': ('matrix-conduit:' + matrix_conduit_port_number | default('8008') | string),
  515. }[matrix_homeserver_implementation]
  516. }}
  517. matrix_integration_manager_rest_url: "{{ matrix_dimension_integrations_rest_url if matrix_dimension_enabled else None }}"
  518. matrix_integration_manager_ui_url: "{{ matrix_dimension_integrations_ui_url if matrix_dimension_enabled else None }}"
  519. ######################################################################
  520. #
  521. # /matrix-base
  522. #
  523. ######################################################################
  524. ######################################################################
  525. #
  526. # matrix-alertmanager-receiver
  527. #
  528. ######################################################################
  529. # We don't enable this by default.
  530. matrix_alertmanager_receiver_enabled: false
  531. matrix_alertmanager_receiver_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  532. matrix_alertmanager_receiver_container_network: "{{ matrix_addons_container_network }}"
  533. matrix_alertmanager_receiver_container_additional_networks_auto: |-
  534. {{
  535. (
  536. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  537. +
  538. ([matrix_playbook_reverse_proxyable_services_additional_network] if (matrix_playbook_reverse_proxyable_services_additional_network and matrix_alertmanager_receiver_container_labels_traefik_enabled) else [])
  539. ) | unique
  540. }}
  541. matrix_alertmanager_receiver_container_labels_traefik_enabled: "{{ matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] }}"
  542. matrix_alertmanager_receiver_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  543. matrix_alertmanager_receiver_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  544. matrix_alertmanager_receiver_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  545. matrix_alertmanager_receiver_container_labels_metrics_middleware_basic_auth_enabled: "{{ matrix_metrics_exposure_http_basic_auth_enabled }}"
  546. matrix_alertmanager_receiver_container_labels_metrics_middleware_basic_auth_users: "{{ matrix_metrics_exposure_http_basic_auth_users }}"
  547. matrix_alertmanager_receiver_systemd_required_services_list_auto: "{{ matrix_addons_homeserver_systemd_services_list }}"
  548. matrix_alertmanager_receiver_config_matrix_homeserver_url: "{{ matrix_addons_homeserver_client_api_url }}"
  549. matrix_alertmanager_receiver_metrics_enabled: "{{ prometheus_enabled or matrix_metrics_exposure_enabled }}"
  550. matrix_alertmanager_receiver_metrics_proxying_enabled: "{{ matrix_alertmanager_receiver_config_http_metrics_enabled and matrix_metrics_exposure_enabled }}"
  551. matrix_alertmanager_receiver_metrics_proxying_hostname: "{{ matrix_metrics_exposure_hostname }}"
  552. matrix_alertmanager_receiver_metrics_proxying_path: "{{ matrix_metrics_exposure_path_prefix }}/matrix-alertmanager-receiver"
  553. ######################################################################
  554. #
  555. # /matrix-alertmanager-receiver
  556. #
  557. ######################################################################
  558. ######################################################################
  559. #
  560. # matrix-authentication-service
  561. #
  562. ######################################################################
  563. matrix_authentication_service_enabled: false
  564. matrix_authentication_service_hostname: "{{ matrix_server_fqn_matrix }}"
  565. matrix_authentication_service_path_prefix: /auth
  566. matrix_authentication_service_config_database_host: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  567. matrix_authentication_service_config_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mas.db', rounds=655555) | to_uuid }}"
  568. matrix_authentication_service_config_matrix_homeserver: "{{ matrix_domain }}"
  569. matrix_authentication_service_config_matrix_secret: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mas.hs.secret', rounds=655555) | to_uuid }}"
  570. matrix_authentication_service_config_matrix_endpoint: "{{ matrix_homeserver_container_url }}"
  571. # We're using a non-default configuration which:
  572. # - allows passwords from Synapse (hashed with bcrypt) to be imported with scheme version 1 so existing users will be able to login
  573. # - as soon as they do one login, the hash will be 'upgraded' to argon2id
  574. matrix_authentication_service_config_passwords_schemes:
  575. - version: 1
  576. secret: "{{ matrix_synapse_password_config_pepper }}"
  577. algorithm: bcrypt
  578. - version: 2
  579. algorithm: argon2id
  580. matrix_authentication_service_config_clients_auto: |-
  581. {{
  582. ([
  583. {
  584. 'client_id': matrix_synapse_experimental_features_msc3861_client_id,
  585. 'client_auth_method': matrix_synapse_experimental_features_msc3861_client_auth_method,
  586. 'client_secret': matrix_synapse_experimental_features_msc3861_client_secret,
  587. }
  588. ] if matrix_synapse_experimental_features_msc3861_enabled else [])
  589. }}
  590. matrix_authentication_service_config_email_transport: "{{ 'smtp' if exim_relay_enabled else 'blackhole' }}"
  591. matrix_authentication_service_config_email_hostname: "{{ exim_relay_identifier if exim_relay_enabled else '' }}"
  592. matrix_authentication_service_config_email_port: "{{ 8025 if exim_relay_enabled else 587 }}"
  593. matrix_authentication_service_config_email_mode: "{{ 'plain' if exim_relay_enabled else 'starttls' }}"
  594. matrix_authentication_service_config_email_from_address: "{{ exim_relay_sender_address }}"
  595. matrix_authentication_service_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm64'] }}"
  596. matrix_authentication_service_container_network: "{{ matrix_homeserver_container_network }}"
  597. matrix_authentication_service_container_additional_networks_auto: |-
  598. {{
  599. (
  600. ([postgres_container_network] if postgres_enabled and matrix_authentication_service_config_database_host == postgres_connection_hostname else [])
  601. +
  602. ([exim_relay_container_network] if (exim_relay_enabled and matrix_authentication_service_config_email_transport == 'smtp' and matrix_authentication_service_config_email_hostname == exim_relay_identifier and matrix_authentication_service_container_network != exim_relay_container_network) else [])
  603. +
  604. ([matrix_playbook_reverse_proxyable_services_additional_network] if matrix_playbook_reverse_proxyable_services_additional_network and matrix_authentication_service_container_labels_traefik_enabled else [])
  605. ) | unique
  606. }}
  607. matrix_authentication_service_container_labels_traefik_enabled: "{{ matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] }}"
  608. matrix_authentication_service_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  609. matrix_authentication_service_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  610. matrix_authentication_service_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  611. matrix_authentication_service_container_labels_public_compatibility_layer_enabled: "{{ not matrix_authentication_service_migration_in_progress}}"
  612. matrix_authentication_service_container_labels_public_compatibility_layer_hostname: "{{ matrix_server_fqn_matrix }}"
  613. matrix_authentication_service_container_labels_internal_compatibility_layer_enabled: "{{ not matrix_authentication_service_migration_in_progress}}"
  614. matrix_authentication_service_container_labels_internal_compatibility_layer_entrypoints: "{{ matrix_playbook_internal_matrix_client_api_traefik_entrypoint_name }}"
  615. # MAS somewhat depends on the homeserver service, but the homeserver also depends on MAS.
  616. # To avoid a circular dependency, we make MAS not depend on the homeserver here.
  617. # The homeserver is more lost without MAS than MAS is without the homeserver, so we'll define the dependency on the homeserver side.
  618. # We'll put our dependency on the homeserver as a "want", rather than a requirement.
  619. matrix_authentication_service_systemd_required_services_list_auto: |
  620. {{
  621. ([postgres_identifier ~ '.service'] if postgres_enabled and matrix_authentication_service_config_database_host == postgres_connection_hostname else [])
  622. }}
  623. # See more information about this homeserver "want" in the comment for `matrix_authentication_service_systemd_required_services_list_auto` above.
  624. matrix_authentication_service_systemd_wanted_services_list_auto: |
  625. {{
  626. ['matrix-' + matrix_homeserver_implementation + '.service']
  627. +
  628. ([exim_relay_identifier ~ '.service'] if (exim_relay_enabled and matrix_authentication_service_config_email_transport == 'smtp' and matrix_authentication_service_config_email_hostname == exim_relay_identifier and matrix_authentication_service_container_network != exim_relay_container_network) else [])
  629. }}
  630. matrix_authentication_service_syn2mas_container_network: "{{ postgres_container_network if postgres_enabled and matrix_authentication_service_config_database_host == postgres_connection_hostname else matrix_authentication_service_container_network }}"
  631. matrix_authentication_service_syn2mas_synapse_homeserver_config_path: "{{ matrix_synapse_config_dir_path + '/homeserver.yaml' if matrix_synapse_enabled else '' }}"
  632. ######################################################################
  633. #
  634. # /matrix-authentication-service
  635. #
  636. ######################################################################
  637. ######################################################################
  638. #
  639. # matrix-bridge-appservice-discord
  640. #
  641. ######################################################################
  642. # We don't enable bridges by default.
  643. matrix_appservice_discord_enabled: false
  644. matrix_appservice_discord_systemd_required_services_list_auto: |
  645. {{
  646. matrix_addons_homeserver_systemd_services_list
  647. +
  648. ([postgres_identifier ~ '.service'] if (postgres_enabled and matrix_appservice_discord_database_hostname == postgres_connection_hostname) else [])
  649. }}
  650. matrix_appservice_discord_container_http_host_bind_port: "{{ (matrix_playbook_service_host_bind_interface_prefix ~ '9005') if matrix_playbook_service_host_bind_interface_prefix else '' }}"
  651. matrix_appservice_discord_container_network: "{{ matrix_addons_container_network }}"
  652. matrix_appservice_discord_container_additional_networks_auto: |-
  653. {{
  654. (
  655. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  656. +
  657. ([postgres_container_network] if (postgres_enabled and matrix_appservice_discord_database_hostname == postgres_connection_hostname and matrix_appservice_discord_container_network != postgres_container_network) else [])
  658. ) | unique
  659. }}
  660. # If the homeserver disables presence, it's likely better (less wasteful) to also disable presence on the bridge side.
  661. matrix_appservice_discord_bridge_disablePresence: "{{ (not matrix_synapse_presence_enabled) if matrix_homeserver_implementation == 'synapse' else false }}"
  662. matrix_appservice_discord_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'discord.as.token', rounds=655555) | to_uuid }}"
  663. matrix_appservice_discord_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'discord.hs.token', rounds=655555) | to_uuid }}"
  664. # We only make this use Postgres if our own Postgres server is enabled.
  665. # It's only then (for now) that we can automatically create the necessary database and user for this service.
  666. matrix_appservice_discord_database_engine: "{{ 'postgres' if postgres_enabled else 'sqlite' }}"
  667. matrix_appservice_discord_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  668. matrix_appservice_discord_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'as.discord.db', rounds=655555) | to_uuid }}"
  669. ######################################################################
  670. #
  671. # /matrix-bridge-appservice-discord
  672. #
  673. ######################################################################
  674. ######################################################################
  675. #
  676. # matrix-appservice-webhooks
  677. #
  678. ######################################################################
  679. # We don't enable bridges by default.
  680. matrix_appservice_webhooks_enabled: false
  681. matrix_appservice_webhooks_hostname: "{{ matrix_server_fqn_matrix }}"
  682. matrix_appservice_webhooks_systemd_required_services_list_auto: |
  683. {{
  684. matrix_addons_homeserver_systemd_services_list
  685. }}
  686. matrix_appservice_webhooks_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  687. matrix_appservice_webhooks_container_http_host_bind_port: "{{ (matrix_playbook_service_host_bind_interface_prefix ~ matrix_appservice_webhooks_matrix_port) if matrix_playbook_service_host_bind_interface_prefix else '' }}"
  688. matrix_appservice_webhooks_container_network: "{{ matrix_addons_container_network }}"
  689. matrix_appservice_webhooks_container_additional_networks_auto: |-
  690. {{
  691. (
  692. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  693. +
  694. ([matrix_playbook_reverse_proxyable_services_additional_network] if (matrix_playbook_reverse_proxyable_services_additional_network and matrix_appservice_webhooks_container_labels_traefik_enabled) else [])
  695. ) | unique
  696. }}
  697. matrix_appservice_webhooks_container_labels_traefik_enabled: "{{ matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] }}"
  698. matrix_appservice_webhooks_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  699. matrix_appservice_webhooks_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  700. matrix_appservice_webhooks_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  701. matrix_appservice_webhooks_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'webhook.as.token', rounds=655555) | to_uuid }}"
  702. matrix_appservice_webhooks_homeserver_url: "{{ matrix_addons_homeserver_client_api_url }}"
  703. matrix_appservice_webhooks_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'webhook.hs.token', rounds=655555) | to_uuid }}"
  704. matrix_appservice_webhooks_id_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'webhook.id.token', rounds=655555) | to_uuid }}"
  705. ######################################################################
  706. #
  707. # /matrix-appservice-webhooks
  708. #
  709. ######################################################################
  710. ######################################################################
  711. #
  712. # matrix-appservice-slack
  713. #
  714. ######################################################################
  715. # We don't enable bridges by default.
  716. matrix_appservice_slack_enabled: false
  717. matrix_appservice_slack_hostname: "{{ matrix_server_fqn_matrix }}"
  718. matrix_appservice_slack_systemd_required_services_list_auto: |
  719. {{
  720. matrix_addons_homeserver_systemd_services_list
  721. +
  722. ([postgres_identifier ~ '.service'] if (postgres_enabled and matrix_appservice_slack_database_hostname == postgres_connection_hostname) else [])
  723. }}
  724. matrix_appservice_slack_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm64'] }}"
  725. matrix_appservice_slack_container_http_host_bind_port: "{{ (matrix_playbook_service_host_bind_interface_prefix ~ matrix_appservice_slack_slack_port) if matrix_playbook_service_host_bind_interface_prefix else '' }}"
  726. matrix_appservice_slack_container_network: "{{ matrix_addons_container_network }}"
  727. matrix_appservice_slack_container_additional_networks_auto: |-
  728. {{
  729. (
  730. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  731. +
  732. ([postgres_container_network] if (postgres_enabled and matrix_appservice_slack_database_hostname == postgres_connection_hostname and matrix_appservice_slack_container_network != postgres_container_network) else [])
  733. +
  734. ([matrix_playbook_reverse_proxyable_services_additional_network] if (matrix_playbook_reverse_proxyable_services_additional_network and matrix_appservice_slack_container_labels_traefik_enabled) else [])
  735. ) | unique
  736. }}
  737. matrix_appservice_slack_container_labels_traefik_enabled: "{{ matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] }}"
  738. matrix_appservice_slack_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  739. matrix_appservice_slack_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  740. matrix_appservice_slack_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  741. matrix_appservice_slack_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'slack.as.token', rounds=655555) | to_uuid }}"
  742. matrix_appservice_slack_homeserver_url: "{{ matrix_addons_homeserver_client_api_url }}"
  743. matrix_appservice_slack_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'slack.hs.token', rounds=655555) | to_uuid }}"
  744. matrix_appservice_slack_id_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'slack.id.token', rounds=655555) | to_uuid }}"
  745. # Postgres is the default, except if not using internal Postgres server
  746. matrix_appservice_slack_database_engine: "{{ 'postgres' if postgres_enabled else 'nedb' }}"
  747. matrix_appservice_slack_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  748. matrix_appservice_slack_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'as.slack.db', rounds=655555) | to_uuid }}"
  749. matrix_appservice_slack_database_container_network: "{{ postgres_container_network if postgres_enabled else '' }}"
  750. ######################################################################
  751. #
  752. # /matrix-bridge-appservice-slack
  753. #
  754. ######################################################################
  755. ######################################################################
  756. #
  757. # matrix-bridge-appservice-irc
  758. #
  759. ######################################################################
  760. # We don't enable bridges by default.
  761. matrix_appservice_irc_enabled: false
  762. matrix_appservice_irc_systemd_required_services_list_auto: |
  763. {{
  764. matrix_addons_homeserver_systemd_services_list
  765. +
  766. ([postgres_identifier ~ '.service'] if (postgres_enabled and matrix_appservice_irc_database_hostname == postgres_connection_hostname) else [])
  767. }}
  768. matrix_appservice_irc_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  769. matrix_appservice_irc_container_http_host_bind_port: "{{ (matrix_playbook_service_host_bind_interface_prefix ~ '9999') if matrix_playbook_service_host_bind_interface_prefix else '' }}"
  770. matrix_appservice_irc_container_network: "{{ matrix_addons_container_network }}"
  771. matrix_appservice_irc_container_additional_networks_auto: |-
  772. {{
  773. (
  774. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  775. +
  776. ([postgres_container_network] if (postgres_enabled and matrix_appservice_irc_database_hostname == postgres_connection_hostname and matrix_appservice_irc_container_network != postgres_container_network) else [])
  777. ) | unique
  778. }}
  779. # The IRC bridge docs say that if homeserver presence is disabled, it's better to also disable
  780. # IRC bridge presence, for performance reasons.
  781. matrix_appservice_irc_homeserver_enablePresence: "{{ matrix_synapse_presence_enabled if matrix_homeserver_implementation == 'synapse' else true }}"
  782. matrix_appservice_irc_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'irc.as.token', rounds=655555) | to_uuid }}"
  783. matrix_appservice_irc_homeserver_url: "{{ matrix_addons_homeserver_client_api_url }}"
  784. matrix_appservice_irc_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'irc.hs.token', rounds=655555) | to_uuid }}"
  785. matrix_appservice_irc_database_engine: "{{ 'postgres' if postgres_enabled else 'nedb' }}"
  786. matrix_appservice_irc_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  787. matrix_appservice_irc_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'as.irc.db', rounds=655555) | to_uuid }}"
  788. matrix_appservice_irc_database_container_network: "{{ postgres_container_network if postgres_enabled else '' }}"
  789. ######################################################################
  790. #
  791. # /matrix-bridge-appservice-irc
  792. #
  793. ######################################################################
  794. ######################################################################
  795. #
  796. # matrix-bridge-appservice-kakaotalk
  797. #
  798. ######################################################################
  799. # We don't enable bridges by default.
  800. matrix_appservice_kakaotalk_enabled: false
  801. matrix_appservice_kakaotalk_systemd_required_services_list_auto: |
  802. {{
  803. matrix_addons_homeserver_systemd_services_list
  804. +
  805. ([postgres_identifier ~ '.service'] if (postgres_enabled and matrix_appservice_kakaotalk_database_hostname == postgres_connection_hostname) else [])
  806. }}
  807. matrix_appservice_kakaotalk_container_network: "{{ matrix_addons_container_network }}"
  808. matrix_appservice_kakaotalk_container_additional_networks_auto: |-
  809. {{
  810. (
  811. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  812. +
  813. ([postgres_container_network] if (postgres_enabled and matrix_appservice_kakaotalk_database_hostname == postgres_connection_hostname and matrix_appservice_kakaotalk_container_network != postgres_container_network) else [])
  814. ) | unique
  815. }}
  816. matrix_appservice_kakaotalk_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'as.kakao.hs', rounds=655555) | to_uuid }}"
  817. matrix_appservice_kakaotalk_homeserver_address: "{{ matrix_addons_homeserver_client_api_url }}"
  818. matrix_appservice_kakaotalk_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'as.kakao.hs', rounds=655555) | to_uuid }}"
  819. matrix_appservice_kakaotalk_login_shared_secret: "{{ matrix_synapse_ext_password_provider_shared_secret_auth_shared_secret if matrix_synapse_ext_password_provider_shared_secret_auth_enabled else '' }}"
  820. matrix_appservice_kakaotalk_database_engine: "{{ 'postgres' if postgres_enabled else 'sqlite' }}"
  821. matrix_appservice_kakaotalk_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  822. matrix_appservice_kakaotalk_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'as.kakao.db', rounds=655555) | to_uuid }}"
  823. ######################################################################
  824. #
  825. # /matrix-bridge-appservice-kakaotalk
  826. #
  827. ######################################################################
  828. ######################################################################
  829. #
  830. # matrix-bridge-beeper-linkedin
  831. #
  832. ######################################################################
  833. # We don't enable bridges by default.
  834. matrix_beeper_linkedin_enabled: false
  835. matrix_beeper_linkedin_systemd_required_services_list_auto: |
  836. {{
  837. matrix_addons_homeserver_systemd_services_list
  838. +
  839. ([postgres_identifier ~ '.service'] if (postgres_enabled and matrix_beeper_linkedin_database_hostname == postgres_connection_hostname) else [])
  840. }}
  841. matrix_beeper_linkedin_container_image_self_build: "{{ matrix_architecture not in ['amd64'] }}"
  842. matrix_beeper_linkedin_container_network: "{{ matrix_addons_container_network }}"
  843. matrix_beeper_linkedin_container_additional_networks_auto: |-
  844. {{
  845. (
  846. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  847. +
  848. ([postgres_container_network] if (postgres_enabled and matrix_beeper_linkedin_database_hostname == postgres_connection_hostname and matrix_beeper_linkedin_container_network != postgres_container_network) else [])
  849. ) | unique
  850. }}
  851. matrix_beeper_linkedin_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'linked.as.token', rounds=655555) | to_uuid }}"
  852. matrix_beeper_linkedin_homeserver_address: "{{ matrix_addons_homeserver_client_api_url }}"
  853. matrix_beeper_linkedin_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'linked.hs.token', rounds=655555) | to_uuid }}"
  854. matrix_beeper_linkedin_bridge_login_shared_secret_map_auto: |-
  855. {{
  856. ({
  857. matrix_beeper_linkedin_homeserver_domain: ("as_token:" + matrix_appservice_double_puppet_registration_as_token)
  858. })
  859. if matrix_appservice_double_puppet_enabled
  860. else (
  861. {matrix_beeper_linkedin_homeserver_domain: matrix_synapse_ext_password_provider_shared_secret_auth_shared_secret}
  862. if matrix_synapse_ext_password_provider_shared_secret_auth_enabled
  863. else {}
  864. )
  865. }}
  866. matrix_beeper_linkedin_bridge_presence: "{{ (matrix_synapse_presence_enabled if matrix_synapse_enabled else true) if matrix_homeserver_implementation == 'synapse' else true }}"
  867. matrix_beeper_linkedin_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  868. matrix_beeper_linkedin_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'maulinkedin.db', rounds=655555) | to_uuid }}"
  869. ######################################################################
  870. #
  871. # /matrix-bridge-beeper-linkedin
  872. #
  873. ######################################################################
  874. ######################################################################
  875. #
  876. # matrix-bridge-go-skype-bridge
  877. #
  878. ######################################################################
  879. # We don't enable bridges by default.
  880. matrix_go_skype_bridge_enabled: false
  881. matrix_go_skype_bridge_systemd_required_services_list_auto: |
  882. {{
  883. matrix_addons_homeserver_systemd_services_list
  884. +
  885. ([postgres_identifier ~ '.service'] if (postgres_enabled and matrix_go_skype_bridge_database_hostname == postgres_connection_hostname) else [])
  886. }}
  887. matrix_go_skype_bridge_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm64'] }}"
  888. matrix_go_skype_bridge_container_network: "{{ matrix_addons_container_network }}"
  889. matrix_go_skype_bridge_container_additional_networks_auto: |-
  890. {{
  891. (
  892. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  893. +
  894. ([postgres_container_network] if (postgres_enabled and matrix_go_skype_bridge_database_hostname == postgres_connection_hostname and matrix_go_skype_bridge_container_network != postgres_container_network) else [])
  895. ) | unique
  896. }}
  897. matrix_go_skype_bridge_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'skype.as.token', rounds=655555) | to_uuid }}"
  898. matrix_go_skype_bridge_homeserver_address: "{{ matrix_addons_homeserver_client_api_url }}"
  899. matrix_go_skype_bridge_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'skype.hs.token', rounds=655555) | to_uuid }}"
  900. matrix_go_skype_bridge_login_shared_secret: "{{ matrix_synapse_ext_password_provider_shared_secret_auth_shared_secret if matrix_synapse_ext_password_provider_shared_secret_auth_enabled else '' }}"
  901. # Postgres is the default, except if not using internal Postgres server
  902. matrix_go_skype_bridge_database_engine: "{{ 'postgres' if postgres_enabled else 'sqlite' }}"
  903. matrix_go_skype_bridge_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  904. matrix_go_skype_bridge_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'goskype.db', rounds=655555) | to_uuid }}"
  905. ######################################################################
  906. #
  907. # /matrix-bridge-go-skype-bridge
  908. #
  909. ######################################################################
  910. ######################################################################
  911. #
  912. # matrix-bridge-mautrix-discord
  913. #
  914. ######################################################################
  915. # We don't enable bridges by default.
  916. matrix_mautrix_discord_enabled: false
  917. matrix_mautrix_discord_container_image_self_build: "{{ matrix_architecture not in ['arm64', 'amd64'] }}"
  918. matrix_mautrix_discord_container_network: "{{ matrix_addons_container_network }}"
  919. matrix_mautrix_discord_container_additional_networks_auto: |-
  920. {{
  921. (
  922. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  923. +
  924. ([postgres_container_network] if postgres_enabled and matrix_mautrix_facebook_database_hostname == postgres_connection_hostname else [])
  925. ) | unique
  926. }}
  927. matrix_mautrix_discord_systemd_required_services_list_auto: |
  928. {{
  929. matrix_addons_homeserver_systemd_services_list
  930. +
  931. ([postgres_identifier ~ '.service'] if (postgres_enabled and matrix_mautrix_discord_database_hostname == postgres_connection_hostname) else [])
  932. }}
  933. matrix_mautrix_discord_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'maudisc.as.tok', rounds=655555) | to_uuid }}"
  934. matrix_mautrix_discord_homeserver_address: "{{ matrix_addons_homeserver_client_api_url }}"
  935. matrix_mautrix_discord_homeserver_public_address: "{{ 'https' if matrix_playbook_ssl_enabled else 'http' }}://{{ matrix_server_fqn_matrix }}"
  936. matrix_mautrix_discord_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'maudisc.hs.tok', rounds=655555) | to_uuid }}"
  937. matrix_mautrix_discord_bridge_login_shared_secret_map_auto: |-
  938. {{
  939. ({
  940. matrix_mautrix_discord_homeserver_domain: ("as_token:" + matrix_appservice_double_puppet_registration_as_token)
  941. })
  942. if matrix_appservice_double_puppet_enabled
  943. else (
  944. {matrix_mautrix_discord_homeserver_domain: matrix_synapse_ext_password_provider_shared_secret_auth_shared_secret}
  945. if matrix_synapse_ext_password_provider_shared_secret_auth_enabled
  946. else {}
  947. )
  948. }}
  949. # Postgres is the default, except if not using internal Postgres server
  950. matrix_mautrix_discord_database_engine: "{{ 'postgres' if postgres_enabled else 'sqlite' }}"
  951. matrix_mautrix_discord_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  952. matrix_mautrix_discord_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'maudiscord.db', rounds=655555) | to_uuid }}"
  953. ######################################################################
  954. #
  955. # /matrix-bridge-mautrix-discord
  956. #
  957. ######################################################################
  958. ######################################################################
  959. #
  960. # matrix-bridge-mautrix-slack
  961. #
  962. ######################################################################
  963. # We don't enable bridges by default.
  964. matrix_mautrix_slack_enabled: false
  965. matrix_mautrix_slack_systemd_required_services_list_auto: |
  966. {{
  967. matrix_addons_homeserver_systemd_services_list
  968. +
  969. ([postgres_identifier ~ '.service'] if (postgres_enabled and matrix_mautrix_slack_database_hostname == postgres_connection_hostname) else [])
  970. }}
  971. matrix_mautrix_slack_container_image_self_build: "{{ matrix_architecture not in ['arm64', 'amd64'] }}"
  972. matrix_mautrix_slack_container_network: "{{ matrix_addons_container_network }}"
  973. matrix_mautrix_slack_container_additional_networks_auto: |-
  974. {{
  975. (
  976. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  977. +
  978. ([postgres_container_network] if (postgres_enabled and matrix_mautrix_slack_database_hostname == postgres_connection_hostname and matrix_mautrix_slack_container_network != postgres_container_network) else [])
  979. ) | unique
  980. }}
  981. matrix_mautrix_slack_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mauslack.as.tok', rounds=655555) | to_uuid }}"
  982. matrix_mautrix_slack_homeserver_address: "{{ matrix_addons_homeserver_client_api_url }}"
  983. matrix_mautrix_slack_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mauslack.hs.tok', rounds=655555) | to_uuid }}"
  984. matrix_mautrix_slack_double_puppet_secrets_auto: |-
  985. {{
  986. {
  987. matrix_mautrix_slack_homeserver_domain: ("as_token:" + matrix_appservice_double_puppet_registration_as_token)
  988. }
  989. if matrix_appservice_double_puppet_enabled
  990. else {}
  991. }}
  992. # Postgres is the default, except if not using internal Postgres server
  993. matrix_mautrix_slack_database_engine: "{{ 'postgres' if postgres_enabled else 'sqlite' }}"
  994. matrix_mautrix_slack_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  995. matrix_mautrix_slack_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mauslack.db', rounds=655555) | to_uuid }}"
  996. matrix_mautrix_slack_provisioning_shared_secret: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mau.slack.prov', rounds=655555) | to_uuid }}"
  997. matrix_mautrix_slack_public_media_signing_key: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mau.slack.pmed', rounds=655555) | to_uuid }}"
  998. ######################################################################
  999. #
  1000. # /matrix-bridge-mautrix-slack
  1001. #
  1002. ######################################################################
  1003. ######################################################################
  1004. #
  1005. # matrix-bridge-mautrix-facebook
  1006. #
  1007. ######################################################################
  1008. # We don't enable bridges by default.
  1009. matrix_mautrix_facebook_enabled: false
  1010. matrix_mautrix_facebook_systemd_required_services_list_auto: |
  1011. {{
  1012. matrix_addons_homeserver_systemd_services_list
  1013. +
  1014. ([postgres_identifier ~ '.service'] if (postgres_enabled and matrix_mautrix_facebook_database_hostname == postgres_connection_hostname) else [])
  1015. }}
  1016. matrix_mautrix_facebook_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm64'] }}"
  1017. matrix_mautrix_facebook_container_http_host_bind_port: "{{ (matrix_playbook_service_host_bind_interface_prefix ~ '9008') if matrix_playbook_service_host_bind_interface_prefix else '' }}"
  1018. matrix_mautrix_facebook_container_network: "{{ matrix_addons_container_network }}"
  1019. matrix_mautrix_facebook_container_additional_networks_auto: |-
  1020. {{
  1021. (
  1022. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  1023. +
  1024. ([postgres_container_network] if (postgres_enabled and matrix_mautrix_facebook_database_hostname == postgres_connection_hostname and matrix_mautrix_facebook_container_network != postgres_container_network) else [])
  1025. +
  1026. ([matrix_playbook_reverse_proxyable_services_additional_network] if (matrix_playbook_reverse_proxyable_services_additional_network and matrix_mautrix_facebook_container_labels_traefik_enabled) else [])
  1027. ) | unique
  1028. }}
  1029. matrix_mautrix_facebook_container_labels_traefik_enabled: "{{ matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] }}"
  1030. matrix_mautrix_facebook_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  1031. matrix_mautrix_facebook_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  1032. matrix_mautrix_facebook_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  1033. matrix_mautrix_facebook_container_labels_metrics_middleware_basic_auth_enabled: "{{ matrix_metrics_exposure_http_basic_auth_enabled }}"
  1034. matrix_mautrix_facebook_container_labels_metrics_middleware_basic_auth_users: "{{ matrix_metrics_exposure_http_basic_auth_users }}"
  1035. matrix_mautrix_facebook_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'fb.as.token', rounds=655555) | to_uuid }}"
  1036. matrix_mautrix_facebook_homeserver_address: "{{ matrix_addons_homeserver_client_api_url }}"
  1037. matrix_mautrix_facebook_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'fb.hs.token', rounds=655555) | to_uuid }}"
  1038. matrix_mautrix_facebook_appservice_public_enabled: true
  1039. matrix_mautrix_facebook_appservice_public_hostname: "{{ matrix_server_fqn_matrix }}"
  1040. matrix_mautrix_facebook_appservice_public_prefix: "/{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'facebook', rounds=655555) | to_uuid }}"
  1041. matrix_mautrix_facebook_login_shared_secret: "{{ matrix_synapse_ext_password_provider_shared_secret_auth_shared_secret if matrix_synapse_ext_password_provider_shared_secret_auth_enabled else '' }}"
  1042. matrix_mautrix_facebook_bridge_presence: "{{ (matrix_synapse_presence_enabled if matrix_synapse_enabled else true) if matrix_homeserver_implementation == 'synapse' else true }}"
  1043. matrix_mautrix_facebook_metrics_enabled: "{{ prometheus_enabled or matrix_metrics_exposure_enabled }}"
  1044. matrix_mautrix_facebook_metrics_proxying_enabled: "{{ matrix_mautrix_facebook_metrics_enabled and matrix_metrics_exposure_enabled }}"
  1045. matrix_mautrix_facebook_metrics_proxying_hostname: "{{ matrix_metrics_exposure_hostname }}"
  1046. matrix_mautrix_facebook_metrics_proxying_path_prefix: "{{ matrix_metrics_exposure_path_prefix }}/mautrix-facebook"
  1047. # We'd like to force-set people with external Postgres to SQLite, so the bridge role can complain
  1048. # and point them to a migration path.
  1049. matrix_mautrix_facebook_database_engine: "{{ 'postgres' if postgres_enabled else 'sqlite' }}"
  1050. matrix_mautrix_facebook_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  1051. matrix_mautrix_facebook_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mau.fb.db', rounds=655555) | to_uuid }}"
  1052. ######################################################################
  1053. #
  1054. # /matrix-bridge-mautrix-facebook
  1055. #
  1056. ######################################################################
  1057. ######################################################################
  1058. #
  1059. # matrix-bridge-mautrix-googlechat
  1060. #
  1061. ######################################################################
  1062. # We don't enable bridges by default.
  1063. matrix_mautrix_googlechat_enabled: false
  1064. matrix_mautrix_googlechat_systemd_required_services_list_auto: |
  1065. {{
  1066. matrix_addons_homeserver_systemd_services_list
  1067. +
  1068. ([postgres_identifier ~ '.service'] if (postgres_enabled and matrix_mautrix_googlechat_database_hostname == postgres_connection_hostname) else [])
  1069. }}
  1070. matrix_mautrix_googlechat_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm64'] }}"
  1071. matrix_mautrix_googlechat_container_http_host_bind_port: "{{ (matrix_playbook_service_host_bind_interface_prefix ~ '9007') if matrix_playbook_service_host_bind_interface_prefix else '' }}"
  1072. matrix_mautrix_googlechat_container_network: "{{ matrix_addons_container_network }}"
  1073. matrix_mautrix_googlechat_container_additional_networks_auto: |-
  1074. {{
  1075. (
  1076. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  1077. +
  1078. ([postgres_container_network] if (postgres_enabled and matrix_mautrix_googlechat_database_hostname == postgres_connection_hostname and matrix_mautrix_googlechat_container_network != postgres_container_network) else [])
  1079. +
  1080. ([matrix_playbook_reverse_proxyable_services_additional_network] if (matrix_playbook_reverse_proxyable_services_additional_network and matrix_mautrix_gmessages_container_labels_traefik_enabled) else [])
  1081. ) | unique
  1082. }}
  1083. matrix_mautrix_googlechat_container_labels_traefik_enabled: "{{ matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] }}"
  1084. matrix_mautrix_googlechat_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  1085. matrix_mautrix_googlechat_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  1086. matrix_mautrix_googlechat_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  1087. matrix_mautrix_googlechat_container_labels_public_endpoint_hostname: "{{ matrix_server_fqn_matrix }}"
  1088. matrix_mautrix_googlechat_container_labels_metrics_middleware_basic_auth_enabled: "{{ matrix_metrics_exposure_http_basic_auth_enabled }}"
  1089. matrix_mautrix_googlechat_container_labels_metrics_middleware_basic_auth_users: "{{ matrix_metrics_exposure_http_basic_auth_users }}"
  1090. matrix_mautrix_googlechat_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'gc.as.token', rounds=655555) | to_uuid }}"
  1091. matrix_mautrix_googlechat_homeserver_address: "{{ matrix_addons_homeserver_client_api_url }}"
  1092. matrix_mautrix_googlechat_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'gc.hs.token', rounds=655555) | to_uuid }}"
  1093. matrix_mautrix_googlechat_login_shared_secret: |-
  1094. {{
  1095. ("as_token:" + matrix_appservice_double_puppet_registration_as_token)
  1096. if matrix_appservice_double_puppet_enabled
  1097. else (
  1098. matrix_synapse_ext_password_provider_shared_secret_auth_shared_secret if matrix_synapse_ext_password_provider_shared_secret_auth_enabled
  1099. if matrix_synapse_ext_password_provider_shared_secret_auth_enabled
  1100. else ""
  1101. )
  1102. }}
  1103. matrix_mautrix_googlechat_metrics_enabled: "{{ prometheus_enabled or matrix_metrics_exposure_enabled }}"
  1104. matrix_mautrix_googlechat_metrics_proxying_enabled: "{{ matrix_mautrix_googlechat_metrics_enabled and matrix_metrics_exposure_enabled }}"
  1105. matrix_mautrix_googlechat_metrics_proxying_hostname: "{{ matrix_metrics_exposure_hostname }}"
  1106. matrix_mautrix_googlechat_metrics_proxying_path_prefix: "{{ matrix_metrics_exposure_path_prefix }}/mautrix-googlechat"
  1107. # Postgres is the default, except if not using internal Postgres server
  1108. matrix_mautrix_googlechat_database_engine: "{{ 'postgres' if postgres_enabled else 'sqlite' }}"
  1109. matrix_mautrix_googlechat_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  1110. matrix_mautrix_googlechat_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mau.gc.db', rounds=655555) | to_uuid }}"
  1111. ######################################################################
  1112. #
  1113. # /matrix-bridge-mautrix-googlechat
  1114. #
  1115. ######################################################################
  1116. ######################################################################
  1117. #
  1118. # matrix-bridge-mautrix-hangouts
  1119. #
  1120. ######################################################################
  1121. # We don't enable bridges by default.
  1122. matrix_mautrix_hangouts_enabled: false
  1123. matrix_mautrix_hangouts_systemd_required_services_list_auto: |
  1124. {{
  1125. matrix_addons_homeserver_systemd_services_list
  1126. +
  1127. ([postgres_identifier ~ '.service'] if (postgres_enabled and matrix_mautrix_hangouts_database_hostname == postgres_connection_hostname) else [])
  1128. }}
  1129. matrix_mautrix_hangouts_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm64'] }}"
  1130. matrix_mautrix_hangouts_container_http_host_bind_port: "{{ (matrix_playbook_service_host_bind_interface_prefix ~ '9007') if matrix_playbook_service_host_bind_interface_prefix else '' }}"
  1131. matrix_mautrix_hangouts_container_network: "{{ matrix_addons_container_network }}"
  1132. matrix_mautrix_hangouts_container_additional_networks_auto: |-
  1133. {{
  1134. (
  1135. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  1136. +
  1137. ([postgres_container_network] if (postgres_enabled and matrix_mautrix_hangouts_database_hostname == postgres_connection_hostname and matrix_mautrix_hangouts_container_network != postgres_container_network) else [])
  1138. +
  1139. ([matrix_playbook_reverse_proxyable_services_additional_network] if (matrix_playbook_reverse_proxyable_services_additional_network and matrix_mautrix_gmessages_container_labels_traefik_enabled) else [])
  1140. ) | unique
  1141. }}
  1142. matrix_mautrix_hangouts_container_labels_traefik_enabled: "{{ matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] }}"
  1143. matrix_mautrix_hangouts_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  1144. matrix_mautrix_hangouts_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  1145. matrix_mautrix_hangouts_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  1146. matrix_mautrix_hangouts_container_labels_public_endpoint_hostname: "{{ matrix_server_fqn_matrix }}"
  1147. matrix_mautrix_hangouts_container_labels_metrics_middleware_basic_auth_enabled: "{{ matrix_metrics_exposure_http_basic_auth_enabled }}"
  1148. matrix_mautrix_hangouts_container_labels_metrics_middleware_basic_auth_users: "{{ matrix_metrics_exposure_http_basic_auth_users }}"
  1149. matrix_mautrix_hangouts_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'ho.as.token', rounds=655555) | to_uuid }}"
  1150. matrix_mautrix_hangouts_homeserver_address: "{{ matrix_addons_homeserver_client_api_url }}"
  1151. matrix_mautrix_hangouts_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'ho.hs.token', rounds=655555) | to_uuid }}"
  1152. matrix_mautrix_hangouts_login_shared_secret: "{{ matrix_synapse_ext_password_provider_shared_secret_auth_shared_secret if matrix_synapse_ext_password_provider_shared_secret_auth_enabled else '' }}"
  1153. matrix_mautrix_hangouts_metrics_enabled: "{{ prometheus_enabled or matrix_metrics_exposure_enabled }}"
  1154. matrix_mautrix_hangouts_metrics_proxying_enabled: "{{ matrix_mautrix_hangouts_metrics_enabled and matrix_metrics_exposure_enabled }}"
  1155. matrix_mautrix_hangouts_metrics_proxying_hostname: "{{ matrix_metrics_exposure_hostname }}"
  1156. matrix_mautrix_hangouts_metrics_proxying_path_prefix: "{{ matrix_metrics_exposure_path_prefix }}/mautrix-hangouts"
  1157. # Postgres is the default, except if not using internal Postgres server
  1158. matrix_mautrix_hangouts_database_engine: "{{ 'postgres' if postgres_enabled else 'sqlite' }}"
  1159. matrix_mautrix_hangouts_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  1160. matrix_mautrix_hangouts_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mau.hangouts.db', rounds=655555) | to_uuid }}"
  1161. ######################################################################
  1162. #
  1163. # /matrix-bridge-mautrix-hangouts
  1164. #
  1165. ######################################################################
  1166. ######################################################################
  1167. #
  1168. # matrix-bridge-mautrix-instagram
  1169. #
  1170. ######################################################################
  1171. # We don't enable bridges by default.
  1172. matrix_mautrix_instagram_enabled: false
  1173. matrix_mautrix_instagram_systemd_required_services_list_auto: |
  1174. {{
  1175. matrix_addons_homeserver_systemd_services_list
  1176. +
  1177. ([postgres_identifier ~ '.service'] if (postgres_enabled and matrix_mautrix_instagram_database_hostname == postgres_connection_hostname) else [])
  1178. }}
  1179. matrix_mautrix_instagram_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm64'] }}"
  1180. matrix_mautrix_instagram_container_network: "{{ matrix_addons_container_network }}"
  1181. matrix_mautrix_instagram_container_additional_networks_auto: |-
  1182. {{
  1183. (
  1184. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  1185. +
  1186. ([postgres_container_network] if (postgres_enabled and matrix_mautrix_instagram_database_hostname == postgres_connection_hostname and matrix_mautrix_instagram_container_network != postgres_container_network) else [])
  1187. +
  1188. ([matrix_playbook_reverse_proxyable_services_additional_network] if matrix_playbook_reverse_proxyable_services_additional_network and matrix_mautrix_instagram_container_labels_traefik_enabled else [])
  1189. ) | unique
  1190. }}
  1191. matrix_mautrix_instagram_container_labels_traefik_enabled: "{{ matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] }}"
  1192. matrix_mautrix_instagram_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  1193. matrix_mautrix_instagram_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  1194. matrix_mautrix_instagram_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  1195. matrix_mautrix_instagram_container_labels_metrics_middleware_basic_auth_enabled: "{{ matrix_metrics_exposure_http_basic_auth_enabled }}"
  1196. matrix_mautrix_instagram_container_labels_metrics_middleware_basic_auth_users: "{{ matrix_metrics_exposure_http_basic_auth_users }}"
  1197. matrix_mautrix_instagram_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'ig.as.token', rounds=655555) | to_uuid }}"
  1198. matrix_mautrix_instagram_homeserver_address: "{{ matrix_addons_homeserver_client_api_url }}"
  1199. matrix_mautrix_instagram_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'ig.hs.token', rounds=655555) | to_uuid }}"
  1200. matrix_mautrix_instagram_login_shared_secret: "{{ matrix_synapse_ext_password_provider_shared_secret_auth_shared_secret if matrix_synapse_ext_password_provider_shared_secret_auth_enabled else '' }}"
  1201. matrix_mautrix_instagram_bridge_presence: "{{ (matrix_synapse_presence_enabled if matrix_synapse_enabled else true) if matrix_homeserver_implementation == 'synapse' else true }}"
  1202. matrix_mautrix_instagram_metrics_enabled: "{{ prometheus_enabled or matrix_metrics_exposure_enabled }}"
  1203. matrix_mautrix_instagram_metrics_proxying_enabled: "{{ matrix_mautrix_instagram_metrics_enabled and matrix_metrics_exposure_enabled }}"
  1204. matrix_mautrix_instagram_metrics_proxying_hostname: "{{ matrix_metrics_exposure_hostname }}"
  1205. matrix_mautrix_instagram_metrics_proxying_path_prefix: "{{ matrix_metrics_exposure_path_prefix }}/mautrix-instagram"
  1206. # We'd like to force-set people with external Postgres to SQLite, so the bridge role can complain
  1207. # and point them to a migration path.
  1208. matrix_mautrix_instagram_database_engine: "{{ 'postgres' if postgres_enabled else 'sqlite' }}"
  1209. matrix_mautrix_instagram_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  1210. matrix_mautrix_instagram_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mau.ig.db', rounds=655555) | to_uuid }}"
  1211. ######################################################################
  1212. #
  1213. # /matrix-bridge-mautrix-instagram
  1214. #
  1215. ######################################################################
  1216. ######################################################################
  1217. #
  1218. # matrix-bridge-mautrix-signal
  1219. #
  1220. ######################################################################
  1221. # We don't enable bridges by default.
  1222. matrix_mautrix_signal_enabled: false
  1223. matrix_mautrix_signal_systemd_required_services_list_auto: |
  1224. {{
  1225. matrix_addons_homeserver_systemd_services_list
  1226. +
  1227. ([postgres_identifier ~ '.service'] if (postgres_enabled and matrix_mautrix_signal_database_hostname == postgres_connection_hostname) else [])
  1228. }}
  1229. matrix_mautrix_signal_container_image_self_build: "{{ matrix_architecture not in ['arm64', 'amd64'] }}"
  1230. matrix_mautrix_signal_container_network: "{{ matrix_addons_container_network }}"
  1231. matrix_mautrix_signal_container_additional_networks_auto: |-
  1232. {{
  1233. (
  1234. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  1235. +
  1236. ([postgres_container_network] if (postgres_enabled and matrix_mautrix_signal_database_hostname == postgres_connection_hostname and matrix_mautrix_signal_container_network != postgres_container_network) else [])
  1237. +
  1238. ([matrix_playbook_reverse_proxyable_services_additional_network] if matrix_playbook_reverse_proxyable_services_additional_network and matrix_mautrix_signal_container_labels_traefik_enabled else [])
  1239. ) | unique
  1240. }}
  1241. matrix_mautrix_signal_container_labels_traefik_enabled: "{{ matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] }}"
  1242. matrix_mautrix_signal_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  1243. matrix_mautrix_signal_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  1244. matrix_mautrix_signal_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  1245. matrix_mautrix_signal_container_labels_metrics_middleware_basic_auth_enabled: "{{ matrix_metrics_exposure_http_basic_auth_enabled }}"
  1246. matrix_mautrix_signal_container_labels_metrics_middleware_basic_auth_users: "{{ matrix_metrics_exposure_http_basic_auth_users }}"
  1247. matrix_mautrix_signal_homeserver_domain: '{{ matrix_domain }}'
  1248. matrix_mautrix_signal_homeserver_address: "{{ matrix_addons_homeserver_client_api_url }}"
  1249. matrix_mautrix_signal_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'si.hs.token', rounds=655555) | to_uuid }}"
  1250. matrix_mautrix_signal_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'si.as.token', rounds=655555) | to_uuid }}"
  1251. matrix_mautrix_signal_double_puppet_secrets_auto: |-
  1252. {{
  1253. {
  1254. matrix_mautrix_signal_homeserver_domain: ("as_token:" + matrix_appservice_double_puppet_registration_as_token)
  1255. }
  1256. if matrix_appservice_double_puppet_enabled
  1257. else {}
  1258. }}
  1259. matrix_mautrix_signal_metrics_enabled: "{{ prometheus_enabled or matrix_metrics_exposure_enabled }}"
  1260. matrix_mautrix_signal_metrics_proxying_enabled: "{{ matrix_mautrix_signal_metrics_enabled and matrix_metrics_exposure_enabled }}"
  1261. matrix_mautrix_signal_metrics_proxying_hostname: "{{ matrix_metrics_exposure_hostname }}"
  1262. matrix_mautrix_signal_metrics_proxying_path_prefix: "{{ matrix_metrics_exposure_path_prefix }}/mautrix-signal"
  1263. matrix_mautrix_signal_database_engine: "{{ 'postgres' if postgres_enabled else 'sqlite' }}"
  1264. matrix_mautrix_signal_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  1265. matrix_mautrix_signal_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mau.signal.db', rounds=655555) | to_uuid }}"
  1266. matrix_mautrix_signal_provisioning_shared_secret: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mau.signal.prov', rounds=655555) | to_uuid }}"
  1267. matrix_mautrix_signal_public_media_signing_key: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mau.signal.pmed', rounds=655555) | to_uuid }}"
  1268. ######################################################################
  1269. #
  1270. # /matrix-bridge-mautrix-signal
  1271. #
  1272. ######################################################################
  1273. ######################################################################
  1274. #
  1275. # matrix-bridge-mautrix-meta-messenger
  1276. #
  1277. ######################################################################
  1278. # We don't enable bridges by default.
  1279. matrix_mautrix_meta_messenger_enabled: false
  1280. matrix_mautrix_meta_messenger_systemd_required_services_list_auto: |
  1281. {{
  1282. matrix_addons_homeserver_systemd_services_list
  1283. +
  1284. ([postgres_identifier ~ '.service'] if (postgres_enabled and matrix_mautrix_meta_messenger_database_hostname == postgres_connection_hostname) else [])
  1285. }}
  1286. matrix_mautrix_meta_messenger_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm64'] }}"
  1287. matrix_mautrix_meta_messenger_container_network: "{{ matrix_addons_container_network }}"
  1288. matrix_mautrix_meta_messenger_container_additional_networks_auto: |-
  1289. {{
  1290. (
  1291. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  1292. +
  1293. ([postgres_container_network] if (postgres_enabled and matrix_mautrix_meta_messenger_database_hostname == postgres_connection_hostname and matrix_mautrix_meta_messenger_container_network != postgres_container_network) else [])
  1294. +
  1295. ([matrix_playbook_reverse_proxyable_services_additional_network] if (matrix_playbook_reverse_proxyable_services_additional_network and matrix_mautrix_meta_messenger_container_labels_traefik_enabled) else [])
  1296. ) | unique
  1297. }}
  1298. matrix_mautrix_meta_messenger_container_labels_traefik_enabled: "{{ matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] }}"
  1299. matrix_mautrix_meta_messenger_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  1300. matrix_mautrix_meta_messenger_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  1301. matrix_mautrix_meta_messenger_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  1302. matrix_mautrix_meta_messenger_container_labels_metrics_middleware_basic_auth_enabled: "{{ matrix_metrics_exposure_http_basic_auth_enabled }}"
  1303. matrix_mautrix_meta_messenger_container_labels_metrics_middleware_basic_auth_users: "{{ matrix_metrics_exposure_http_basic_auth_users }}"
  1304. matrix_mautrix_meta_messenger_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mau.meta.fb.as', rounds=655555) | to_uuid }}"
  1305. matrix_mautrix_meta_messenger_homeserver_address: "{{ matrix_addons_homeserver_client_api_url }}"
  1306. matrix_mautrix_meta_messenger_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mau.meta.fb.hs', rounds=655555) | to_uuid }}"
  1307. matrix_mautrix_meta_messenger_double_puppet_secrets_auto: |-
  1308. {{
  1309. {
  1310. matrix_mautrix_meta_messenger_homeserver_domain: ("as_token:" + matrix_appservice_double_puppet_registration_as_token)
  1311. }
  1312. if matrix_appservice_double_puppet_enabled
  1313. else {}
  1314. }}
  1315. matrix_mautrix_meta_messenger_metrics_enabled: "{{ prometheus_enabled or matrix_metrics_exposure_enabled }}"
  1316. matrix_mautrix_meta_messenger_metrics_proxying_enabled: "{{ matrix_mautrix_meta_messenger_metrics_enabled and matrix_metrics_exposure_enabled }}"
  1317. matrix_mautrix_meta_messenger_metrics_proxying_hostname: "{{ matrix_metrics_exposure_hostname }}"
  1318. matrix_mautrix_meta_messenger_metrics_proxying_path_prefix: "{{ matrix_metrics_exposure_path_prefix }}/mautrix-meta-messenger"
  1319. # We'd like to force-set people with external Postgres to SQLite, so the bridge role can complain
  1320. # and point them to a migration path.
  1321. matrix_mautrix_meta_messenger_database_engine: "{{ 'postgres' if postgres_enabled else 'sqlite3-fk-wal' }}"
  1322. matrix_mautrix_meta_messenger_database_hostname: "{{ postgres_connection_hostname if (postgres_enabled and matrix_mautrix_meta_messenger_database_engine == 'postgres') else '' }}"
  1323. matrix_mautrix_meta_messenger_database_password: "{{ ('%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mau.fb.db', rounds=655555) | to_uuid) if (postgres_enabled and matrix_mautrix_meta_messenger_database_engine == 'postgres') else '' }}"
  1324. ######################################################################
  1325. #
  1326. # /matrix-bridge-mautrix-meta-messenger
  1327. #
  1328. ######################################################################
  1329. ######################################################################
  1330. #
  1331. # matrix-bridge-mautrix-meta-instagram
  1332. #
  1333. ######################################################################
  1334. # We don't enable bridges by default.
  1335. matrix_mautrix_meta_instagram_enabled: false
  1336. matrix_mautrix_meta_instagram_systemd_required_services_list_auto: |
  1337. {{
  1338. matrix_addons_homeserver_systemd_services_list
  1339. +
  1340. ([postgres_identifier ~ '.service'] if (postgres_enabled and matrix_mautrix_meta_instagram_database_hostname == postgres_connection_hostname) else [])
  1341. }}
  1342. matrix_mautrix_meta_instagram_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm64'] }}"
  1343. matrix_mautrix_meta_instagram_container_network: "{{ matrix_addons_container_network }}"
  1344. matrix_mautrix_meta_instagram_container_additional_networks_auto: |-
  1345. {{
  1346. (
  1347. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  1348. +
  1349. ([postgres_container_network] if (postgres_enabled and matrix_mautrix_meta_instagram_database_hostname == postgres_connection_hostname and matrix_mautrix_meta_instagram_container_network != postgres_container_network) else [])
  1350. +
  1351. ([matrix_playbook_reverse_proxyable_services_additional_network] if (matrix_playbook_reverse_proxyable_services_additional_network and matrix_mautrix_meta_instagram_container_labels_traefik_enabled) else [])
  1352. ) | unique
  1353. }}
  1354. matrix_mautrix_meta_instagram_container_labels_traefik_enabled: "{{ matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] }}"
  1355. matrix_mautrix_meta_instagram_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  1356. matrix_mautrix_meta_instagram_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  1357. matrix_mautrix_meta_instagram_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  1358. matrix_mautrix_meta_instagram_container_labels_metrics_middleware_basic_auth_enabled: "{{ matrix_metrics_exposure_http_basic_auth_enabled }}"
  1359. matrix_mautrix_meta_instagram_container_labels_metrics_middleware_basic_auth_users: "{{ matrix_metrics_exposure_http_basic_auth_users }}"
  1360. matrix_mautrix_meta_instagram_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mau.meta.ig.as', rounds=655555) | to_uuid }}"
  1361. matrix_mautrix_meta_instagram_homeserver_address: "{{ matrix_addons_homeserver_client_api_url }}"
  1362. matrix_mautrix_meta_instagram_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mau.meta.ig.hs', rounds=655555) | to_uuid }}"
  1363. matrix_mautrix_meta_instagram_double_puppet_secrets_auto: |-
  1364. {{
  1365. {
  1366. matrix_mautrix_meta_instagram_homeserver_domain: ("as_token:" + matrix_appservice_double_puppet_registration_as_token)
  1367. }
  1368. if matrix_appservice_double_puppet_enabled
  1369. else {}
  1370. }}
  1371. matrix_mautrix_meta_instagram_metrics_enabled: "{{ prometheus_enabled or matrix_metrics_exposure_enabled }}"
  1372. matrix_mautrix_meta_instagram_metrics_proxying_enabled: "{{ matrix_mautrix_meta_instagram_metrics_enabled and matrix_metrics_exposure_enabled }}"
  1373. matrix_mautrix_meta_instagram_metrics_proxying_hostname: "{{ matrix_metrics_exposure_hostname }}"
  1374. matrix_mautrix_meta_instagram_metrics_proxying_path_prefix: "{{ matrix_metrics_exposure_path_prefix }}/mautrix-meta-instagram"
  1375. # We'd like to force-set people with external Postgres to SQLite, so the bridge role can complain
  1376. # and point them to a migration path.
  1377. matrix_mautrix_meta_instagram_database_engine: "{{ 'postgres' if postgres_enabled else 'sqlite3-fk-wal' }}"
  1378. matrix_mautrix_meta_instagram_database_hostname: "{{ postgres_connection_hostname if (postgres_enabled and matrix_mautrix_meta_instagram_database_engine == 'postgres') else '' }}"
  1379. matrix_mautrix_meta_instagram_database_password: "{{ ('%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mau.fb.db', rounds=655555) | to_uuid) if (postgres_enabled and matrix_mautrix_meta_instagram_database_engine == 'postgres') else '' }}"
  1380. ######################################################################
  1381. #
  1382. # /matrix-bridge-mautrix-meta-instagram
  1383. #
  1384. ######################################################################
  1385. ######################################################################
  1386. #
  1387. # matrix-bridge-mautrix-telegram
  1388. #
  1389. ######################################################################
  1390. # We don't enable bridges by default.
  1391. matrix_mautrix_telegram_enabled: false
  1392. matrix_mautrix_telegram_hostname: "{{ matrix_server_fqn_matrix }}"
  1393. matrix_mautrix_telegram_path_prefix: "/{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'telegram', rounds=655555) | to_uuid }}"
  1394. matrix_mautrix_telegram_systemd_required_services_list_auto: |
  1395. {{
  1396. matrix_addons_homeserver_systemd_services_list
  1397. +
  1398. ([postgres_identifier ~ '.service'] if (postgres_enabled and matrix_mautrix_telegram_database_hostname == postgres_connection_hostname) else [])
  1399. }}
  1400. # Images are multi-arch (amd64 and arm64, but not arm32).
  1401. matrix_mautrix_telegram_container_image_self_build: "{{ matrix_architecture not in ['arm64', 'amd64'] }}"
  1402. matrix_telegram_lottieconverter_container_image_self_build: "{{ matrix_architecture not in ['arm64', 'amd64'] }}"
  1403. matrix_telegram_lottieconverter_container_image_self_build_mask_arch: "{{ matrix_architecture != 'amd64' }}"
  1404. matrix_mautrix_telegram_container_http_host_bind_port: "{{ (matrix_playbook_service_host_bind_interface_prefix ~ '9006') if matrix_playbook_service_host_bind_interface_prefix else '' }}"
  1405. matrix_mautrix_telegram_container_network: "{{ matrix_addons_container_network }}"
  1406. matrix_mautrix_telegram_container_additional_networks_auto: |-
  1407. {{
  1408. (
  1409. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  1410. +
  1411. ([postgres_container_network] if (postgres_enabled and matrix_mautrix_telegram_database_hostname == postgres_connection_hostname and matrix_mautrix_telegram_container_network != postgres_container_network) else [])
  1412. +
  1413. ([matrix_playbook_reverse_proxyable_services_additional_network] if (matrix_playbook_reverse_proxyable_services_additional_network and matrix_mautrix_telegram_container_labels_traefik_enabled) else [])
  1414. ) | unique
  1415. }}
  1416. matrix_mautrix_telegram_container_labels_traefik_enabled: "{{ matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] }}"
  1417. matrix_mautrix_telegram_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  1418. matrix_mautrix_telegram_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  1419. matrix_mautrix_telegram_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  1420. matrix_mautrix_telegram_container_labels_metrics_middleware_basic_auth_enabled: "{{ matrix_metrics_exposure_http_basic_auth_enabled }}"
  1421. matrix_mautrix_telegram_container_labels_metrics_middleware_basic_auth_users: "{{ matrix_metrics_exposure_http_basic_auth_users }}"
  1422. matrix_mautrix_telegram_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'telegr.as.token', rounds=655555) | to_uuid }}"
  1423. matrix_mautrix_telegram_homeserver_domain: "{{ matrix_domain }}"
  1424. matrix_mautrix_telegram_homeserver_address: "{{ matrix_addons_homeserver_client_api_url }}"
  1425. matrix_mautrix_telegram_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'telegr.hs.token', rounds=655555) | to_uuid }}"
  1426. matrix_mautrix_telegram_bridge_login_shared_secret_map_auto: |-
  1427. {{
  1428. ({
  1429. matrix_mautrix_telegram_homeserver_domain: ("as_token:" + matrix_appservice_double_puppet_registration_as_token)
  1430. })
  1431. if matrix_appservice_double_puppet_enabled
  1432. else (
  1433. {matrix_mautrix_telegram_homeserver_domain: matrix_synapse_ext_password_provider_shared_secret_auth_shared_secret}
  1434. if matrix_synapse_ext_password_provider_shared_secret_auth_enabled
  1435. else {}
  1436. )
  1437. }}
  1438. matrix_mautrix_telegram_metrics_enabled: "{{ prometheus_enabled or matrix_metrics_exposure_enabled }}"
  1439. matrix_mautrix_telegram_metrics_proxying_enabled: "{{ matrix_mautrix_telegram_metrics_enabled and matrix_metrics_exposure_enabled }}"
  1440. matrix_mautrix_telegram_metrics_proxying_hostname: "{{ matrix_metrics_exposure_hostname }}"
  1441. matrix_mautrix_telegram_metrics_proxying_path_prefix: "{{ matrix_metrics_exposure_path_prefix }}/mautrix-telegram"
  1442. # Postgres is the default, except if not using internal Postgres server
  1443. matrix_mautrix_telegram_database_engine: "{{ 'postgres' if postgres_enabled else 'sqlite' }}"
  1444. matrix_mautrix_telegram_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  1445. matrix_mautrix_telegram_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mau.telegram.db', rounds=655555) | to_uuid }}"
  1446. ######################################################################
  1447. #
  1448. # /matrix-bridge-mautrix-telegram
  1449. #
  1450. ######################################################################
  1451. ######################################################################
  1452. #
  1453. # matrix-bridge-mautrix-twitter
  1454. #
  1455. ######################################################################
  1456. # We don't enable bridges by default.
  1457. matrix_mautrix_twitter_enabled: false
  1458. matrix_mautrix_twitter_systemd_required_services_list_auto: |
  1459. {{
  1460. matrix_addons_homeserver_systemd_services_list
  1461. +
  1462. ([postgres_identifier ~ '.service'] if (postgres_enabled and matrix_mautrix_twitter_database_hostname == postgres_connection_hostname) else [])
  1463. }}
  1464. matrix_mautrix_twitter_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm64'] }}"
  1465. matrix_mautrix_twitter_container_network: "{{ matrix_addons_container_network }}"
  1466. matrix_mautrix_twitter_container_additional_networks_auto: |-
  1467. {{
  1468. (
  1469. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  1470. +
  1471. ([postgres_container_network] if (postgres_enabled and matrix_mautrix_twitter_database_hostname == postgres_connection_hostname and matrix_mautrix_twitter_container_network != postgres_container_network) else [])
  1472. +
  1473. ([matrix_playbook_reverse_proxyable_services_additional_network] if matrix_playbook_reverse_proxyable_services_additional_network and matrix_mautrix_twitter_container_labels_traefik_enabled else [])
  1474. ) | unique
  1475. }}
  1476. matrix_mautrix_twitter_container_labels_traefik_enabled: "{{ matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] }}"
  1477. matrix_mautrix_twitter_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  1478. matrix_mautrix_twitter_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  1479. matrix_mautrix_twitter_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  1480. matrix_mautrix_twitter_container_labels_metrics_middleware_basic_auth_enabled: "{{ matrix_metrics_exposure_http_basic_auth_enabled }}"
  1481. matrix_mautrix_twitter_container_labels_metrics_middleware_basic_auth_users: "{{ matrix_metrics_exposure_http_basic_auth_users }}"
  1482. matrix_mautrix_twitter_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'twt.as.token', rounds=655555) | to_uuid }}"
  1483. matrix_mautrix_twitter_homeserver_address: "{{ matrix_addons_homeserver_client_api_url }}"
  1484. matrix_mautrix_twitter_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'twt.hs.token', rounds=655555) | to_uuid }}"
  1485. matrix_mautrix_twitter_bridge_login_shared_secret_map_auto: |-
  1486. {{
  1487. ({
  1488. matrix_mautrix_twitter_homeserver_domain: ("as_token:" + matrix_appservice_double_puppet_registration_as_token)
  1489. })
  1490. if matrix_appservice_double_puppet_enabled
  1491. else (
  1492. {matrix_mautrix_twitter_homeserver_domain: matrix_synapse_ext_password_provider_shared_secret_auth_shared_secret}
  1493. if matrix_synapse_ext_password_provider_shared_secret_auth_enabled
  1494. else {}
  1495. )
  1496. }}
  1497. matrix_mautrix_twitter_metrics_enabled: "{{ prometheus_enabled or matrix_metrics_exposure_enabled }}"
  1498. matrix_mautrix_twitter_metrics_proxying_enabled: "{{ matrix_mautrix_twitter_metrics_enabled and matrix_metrics_exposure_enabled }}"
  1499. matrix_mautrix_twitter_metrics_proxying_hostname: "{{ matrix_metrics_exposure_hostname }}"
  1500. matrix_mautrix_twitter_metrics_proxying_path_prefix: "{{ matrix_metrics_exposure_path_prefix }}/mautrix-twitter"
  1501. matrix_mautrix_twitter_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  1502. matrix_mautrix_twitter_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mau.twt.db', rounds=655555) | to_uuid if postgres_enabled else '' }}"
  1503. ######################################################################
  1504. #
  1505. # /matrix-bridge-mautrix-twitter
  1506. #
  1507. ######################################################################
  1508. ######################################################################
  1509. #
  1510. # matrix-bridge-mautrix-gmessages
  1511. #
  1512. ######################################################################
  1513. # We don't enable bridges by default.
  1514. matrix_mautrix_gmessages_enabled: false
  1515. matrix_mautrix_gmessages_systemd_required_services_list_auto: |
  1516. {{
  1517. matrix_addons_homeserver_systemd_services_list
  1518. +
  1519. ([postgres_identifier ~ '.service'] if (postgres_enabled and matrix_mautrix_facebook_database_hostname == postgres_connection_hostname) else [])
  1520. }}
  1521. matrix_mautrix_gmessages_container_image_self_build: "{{ matrix_architecture not in ['arm64', 'amd64'] }}"
  1522. matrix_mautrix_gmessages_container_network: "{{ matrix_addons_container_network }}"
  1523. matrix_mautrix_gmessages_container_additional_networks_auto: |-
  1524. {{
  1525. (
  1526. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  1527. +
  1528. ([postgres_container_network] if (postgres_enabled and matrix_mautrix_gmessages_database_hostname == postgres_connection_hostname and matrix_mautrix_gmessages_container_network != postgres_container_network) else [])
  1529. +
  1530. ([matrix_playbook_reverse_proxyable_services_additional_network] if (matrix_playbook_reverse_proxyable_services_additional_network and matrix_mautrix_gmessages_container_labels_traefik_enabled) else [])
  1531. ) | unique
  1532. }}
  1533. matrix_mautrix_gmessages_container_labels_traefik_enabled: "{{ matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] }}"
  1534. matrix_mautrix_gmessages_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  1535. matrix_mautrix_gmessages_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  1536. matrix_mautrix_gmessages_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  1537. matrix_mautrix_gmessages_container_labels_metrics_middleware_basic_auth_enabled: "{{ matrix_metrics_exposure_http_basic_auth_enabled }}"
  1538. matrix_mautrix_gmessages_container_labels_metrics_middleware_basic_auth_users: "{{ matrix_metrics_exposure_http_basic_auth_users }}"
  1539. matrix_mautrix_gmessages_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'gmessa.as.token', rounds=655555) | to_uuid }}"
  1540. matrix_mautrix_gmessages_homeserver_address: "{{ matrix_addons_homeserver_client_api_url }}"
  1541. matrix_mautrix_gmessages_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'gmessa.hs.token', rounds=655555) | to_uuid }}"
  1542. matrix_mautrix_gmessages_double_puppet_secrets_auto: |-
  1543. {{
  1544. {
  1545. matrix_mautrix_gmessages_homeserver_domain: ("as_token:" + matrix_appservice_double_puppet_registration_as_token)
  1546. }
  1547. if matrix_appservice_double_puppet_enabled
  1548. else {}
  1549. }}
  1550. matrix_mautrix_gmessages_metrics_enabled: "{{ prometheus_enabled or matrix_metrics_exposure_enabled }}"
  1551. matrix_mautrix_gmessages_metrics_proxying_enabled: "{{ matrix_mautrix_gmessages_metrics_enabled and matrix_metrics_exposure_enabled }}"
  1552. matrix_mautrix_gmessages_metrics_proxying_hostname: "{{ matrix_metrics_exposure_hostname }}"
  1553. matrix_mautrix_gmessages_metrics_proxying_path_prefix: "{{ matrix_metrics_exposure_path_prefix }}/mautrix-gmessages"
  1554. # Postgres is the default, except if not using internal Postgres server
  1555. matrix_mautrix_gmessages_database_engine: "{{ 'postgres' if postgres_enabled else 'sqlite' }}"
  1556. matrix_mautrix_gmessages_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  1557. matrix_mautrix_gmessages_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'maugmessages.db', rounds=655555) | to_uuid }}"
  1558. ######################################################################
  1559. #
  1560. # /matrix-bridge-mautrix-gmessages
  1561. #
  1562. ######################################################################
  1563. ######################################################################
  1564. #
  1565. # matrix-bridge-mautrix-wsproxy
  1566. #
  1567. ######################################################################
  1568. # We don't enable bridges by default.
  1569. matrix_mautrix_wsproxy_enabled: false
  1570. matrix_mautrix_wsproxy_systemd_required_services_list_default: |
  1571. {{
  1572. matrix_addons_homeserver_systemd_services_list
  1573. +
  1574. ([postgres_identifier ~ '.service'] if (postgres_enabled and matrix_mautrix_wsproxy_syncproxy_database_hostname == postgres_connection_hostname) else [])
  1575. }}
  1576. matrix_mautrix_wsproxy_homeserver_domain: "{{ matrix_domain }}"
  1577. matrix_mautrix_wsproxy_homeserver_address: "{{ matrix_addons_homeserver_client_api_url }}"
  1578. matrix_mautrix_wsproxy_hostname: "wsproxy.{{ matrix_mautrix_wsproxy_homeserver_domain }}"
  1579. matrix_mautrix_wsproxy_syncproxy_homeserver_url: "{{ matrix_addons_homeserver_client_api_url }}"
  1580. matrix_mautrix_wsproxy_container_network: "{{ matrix_addons_container_network }}"
  1581. matrix_mautrix_wsproxy_container_additional_networks: |
  1582. {{
  1583. (
  1584. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  1585. +
  1586. ([matrix_playbook_reverse_proxyable_services_additional_network] if matrix_playbook_reverse_proxyable_services_additional_network else [])
  1587. +
  1588. ([postgres_container_network] if (postgres_enabled and matrix_mautrix_wsproxy_syncproxy_database_hostname == postgres_connection_hostname and postgres_container_network != matrix_mautrix_wsproxy_container_network) else [])
  1589. ) | unique
  1590. }}
  1591. matrix_mautrix_wsproxy_container_labels_traefik_enabled: "{{ matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] }}"
  1592. matrix_mautrix_wsproxy_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  1593. matrix_mautrix_wsproxy_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  1594. matrix_mautrix_wsproxy_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  1595. matrix_mautrix_wsproxy_syncproxy_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  1596. matrix_mautrix_wsproxy_syncproxy_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'wsproxy.db', rounds=655555) | to_uuid }}"
  1597. ######################################################################
  1598. #
  1599. # /matrix-bridge-mautrix-wsproxy
  1600. #
  1601. ######################################################################
  1602. ######################################################################
  1603. #
  1604. # matrix-bridge-wechat
  1605. #
  1606. ######################################################################
  1607. # We don't enable bridges by default.
  1608. matrix_wechat_enabled: false
  1609. matrix_wechat_systemd_required_services_list_auto: |
  1610. {{
  1611. matrix_addons_homeserver_systemd_services_list
  1612. +
  1613. ([postgres_identifier ~ '.service'] if (postgres_enabled and matrix_wechat_database_hostname == postgres_connection_hostname) else [])
  1614. }}
  1615. matrix_wechat_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm64'] }}"
  1616. matrix_wechat_agent_container_image_self_build: "{{ matrix_architecture not in ['amd64'] }}"
  1617. matrix_wechat_container_network: "{{ matrix_addons_container_network }}"
  1618. matrix_wechat_container_additional_networks_auto: |-
  1619. {{
  1620. (
  1621. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  1622. +
  1623. ([postgres_container_network] if (postgres_enabled and matrix_wechat_database_hostname == postgres_connection_hostname and matrix_wechat_container_network != postgres_container_network) else [])
  1624. ) | unique
  1625. }}
  1626. matrix_wechat_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'wechat.as.token', rounds=655555) | to_uuid }}"
  1627. matrix_wechat_homeserver_address: "{{ matrix_addons_homeserver_client_api_url }}"
  1628. matrix_wechat_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'wechat.hs.token', rounds=655555) | to_uuid }}"
  1629. matrix_wechat_login_shared_secret: "{{ matrix_synapse_ext_password_provider_shared_secret_auth_shared_secret if matrix_synapse_ext_password_provider_shared_secret_auth_enabled else '' }}"
  1630. matrix_wechat_bridge_listen_secret: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'wechat.lstn', rounds=655555) | to_uuid }}"
  1631. # Postgres is the default, except if not using internal Postgres server
  1632. matrix_wechat_database_engine: "{{ 'postgres' if postgres_enabled else 'sqlite' }}"
  1633. matrix_wechat_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  1634. matrix_wechat_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'gowechat.db', rounds=655555) | to_uuid }}"
  1635. ######################################################################
  1636. #
  1637. # /matrix-bridge-wechat
  1638. #
  1639. ######################################################################
  1640. ######################################################################
  1641. #
  1642. # matrix-bridge-mautrix-whatsapp
  1643. #
  1644. ######################################################################
  1645. # We don't enable bridges by default.
  1646. matrix_mautrix_whatsapp_enabled: false
  1647. matrix_mautrix_whatsapp_container_image_self_build: "{{ matrix_architecture not in ['arm64', 'amd64'] }}"
  1648. matrix_mautrix_whatsapp_container_network: "{{ matrix_addons_container_network }}"
  1649. matrix_mautrix_whatsapp_container_additional_networks_auto: |-
  1650. {{
  1651. (
  1652. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  1653. +
  1654. ([postgres_container_network] if postgres_enabled and matrix_mautrix_whatsapp_database_hostname == postgres_connection_hostname else [])
  1655. +
  1656. ([matrix_playbook_reverse_proxyable_services_additional_network] if matrix_playbook_reverse_proxyable_services_additional_network and matrix_mautrix_whatsapp_container_labels_traefik_enabled else [])
  1657. ) | unique
  1658. }}
  1659. matrix_mautrix_whatsapp_container_labels_traefik_enabled: "{{ matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] }}"
  1660. matrix_mautrix_whatsapp_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  1661. matrix_mautrix_whatsapp_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  1662. matrix_mautrix_whatsapp_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  1663. matrix_mautrix_whatsapp_container_labels_metrics_middleware_basic_auth_enabled: "{{ matrix_metrics_exposure_http_basic_auth_enabled }}"
  1664. matrix_mautrix_whatsapp_container_labels_metrics_middleware_basic_auth_users: "{{ matrix_metrics_exposure_http_basic_auth_users }}"
  1665. matrix_mautrix_whatsapp_systemd_required_services_list_auto: |
  1666. {{
  1667. matrix_addons_homeserver_systemd_services_list
  1668. +
  1669. ([postgres_identifier ~ '.service'] if postgres_enabled and matrix_mautrix_whatsapp_database_hostname == postgres_connection_hostname else [])
  1670. }}
  1671. matrix_mautrix_whatsapp_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'whats.as.token', rounds=655555) | to_uuid }}"
  1672. matrix_mautrix_whatsapp_homeserver_address: "{{ matrix_addons_homeserver_client_api_url }}"
  1673. matrix_mautrix_whatsapp_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'whats.hs.token', rounds=655555) | to_uuid }}"
  1674. matrix_mautrix_whatsapp_double_puppet_secrets_auto: |-
  1675. {{
  1676. {
  1677. matrix_mautrix_whatsapp_homeserver_domain: ("as_token:" + matrix_appservice_double_puppet_registration_as_token)
  1678. }
  1679. if matrix_appservice_double_puppet_enabled
  1680. else {}
  1681. }}
  1682. matrix_mautrix_whatsapp_metrics_enabled: "{{ prometheus_enabled or matrix_metrics_exposure_enabled }}"
  1683. matrix_mautrix_whatsapp_metrics_proxying_enabled: "{{ matrix_mautrix_whatsapp_metrics_enabled and matrix_metrics_exposure_enabled }}"
  1684. matrix_mautrix_whatsapp_metrics_proxying_hostname: "{{ matrix_metrics_exposure_hostname }}"
  1685. matrix_mautrix_whatsapp_metrics_proxying_path_prefix: "{{ matrix_metrics_exposure_path_prefix }}/mautrix-whatsapp"
  1686. # Postgres is the default, except if not using internal Postgres server
  1687. matrix_mautrix_whatsapp_database_engine: "{{ 'postgres' if postgres_enabled else 'sqlite' }}"
  1688. matrix_mautrix_whatsapp_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  1689. matrix_mautrix_whatsapp_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mauwhatsapp.db', rounds=655555) | to_uuid }}"
  1690. ######################################################################
  1691. #
  1692. # /matrix-bridge-mautrix-whatsapp
  1693. #
  1694. ######################################################################
  1695. ######################################################################
  1696. #
  1697. # matrix-sms-bridge
  1698. #
  1699. ######################################################################
  1700. # We don't enable bridges by default.
  1701. matrix_sms_bridge_enabled: false
  1702. matrix_sms_bridge_systemd_required_services_list_auto: |
  1703. {{
  1704. matrix_addons_homeserver_systemd_services_list
  1705. +
  1706. ([postgres_identifier ~ '.service'] if (postgres_enabled and matrix_mautrix_facebook_database_hostname == postgres_connection_hostname) else [])
  1707. }}
  1708. matrix_sms_bridge_container_network: "{{ matrix_addons_container_network }}"
  1709. matrix_sms_bridge_container_additional_networks_auto: |-
  1710. {{
  1711. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  1712. }}
  1713. matrix_sms_bridge_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'sms.as.token', rounds=655555) | to_uuid }}"
  1714. matrix_sms_bridge_homeserver_hostname: "{{ (matrix_homeserver_container_client_api_endpoint | split(':'))[0] }}"
  1715. matrix_sms_bridge_homeserver_port: "{{ (matrix_homeserver_container_client_api_endpoint | split(':'))[1] }}"
  1716. matrix_sms_bridge_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'sms.hs.token', rounds=655555) | to_uuid }}"
  1717. ######################################################################
  1718. #
  1719. # /matrix-sms-bridge
  1720. #
  1721. ######################################################################
  1722. ######################################################################
  1723. #
  1724. # matrix-bridge-heisenbridge
  1725. #
  1726. ######################################################################
  1727. # We don't enable bridges by default.
  1728. matrix_heisenbridge_enabled: false
  1729. matrix_heisenbridge_scheme: "{{ 'https' if matrix_playbook_ssl_enabled else 'http' }}"
  1730. matrix_heisenbridge_systemd_required_services_list_auto: |
  1731. {{
  1732. matrix_addons_homeserver_systemd_services_list
  1733. }}
  1734. matrix_heisenbridge_container_network: "{{ matrix_addons_container_network }}"
  1735. matrix_heisenbridge_container_additional_networks_auto: |-
  1736. {{
  1737. (
  1738. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  1739. +
  1740. [matrix_playbook_reverse_proxyable_services_additional_network] if (matrix_heisenbridge_container_labels_traefik_enabled and matrix_playbook_reverse_proxyable_services_additional_network) else []
  1741. ) | unique
  1742. }}
  1743. matrix_heisenbridge_container_labels_traefik_enabled: "{{ matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] }}"
  1744. matrix_heisenbridge_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  1745. matrix_heisenbridge_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  1746. matrix_heisenbridge_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  1747. matrix_heisenbridge_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'heisen.as.tok', rounds=655555) | to_uuid }}"
  1748. matrix_heisenbridge_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'heisen.hs.tok', rounds=655555) | to_uuid }}"
  1749. matrix_heisenbridge_homeserver_url: "{{ matrix_addons_homeserver_client_api_url }}"
  1750. ######################################################################
  1751. #
  1752. # /matrix-bridge-heisenbridge
  1753. #
  1754. ######################################################################
  1755. ######################################################################
  1756. #
  1757. # matrix-bridge-hookshot
  1758. #
  1759. ######################################################################
  1760. # We don't enable bridges by default.
  1761. matrix_hookshot_enabled: false
  1762. matrix_hookshot_container_image_self_build: "{{ matrix_architecture not in ['arm64', 'amd64'] }}"
  1763. matrix_hookshot_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'hookshot.as.tok', rounds=655555) | to_uuid }}"
  1764. matrix_hookshot_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'hookshot.hs.tok', rounds=655555) | to_uuid }}"
  1765. matrix_hookshot_homeserver_address: "{{ matrix_addons_homeserver_client_api_url }}"
  1766. matrix_hookshot_systemd_wanted_services_list: |
  1767. {{
  1768. matrix_addons_homeserver_systemd_services_list
  1769. +
  1770. ([(redis_identifier + '.service')] if redis_enabled and matrix_hookshot_cache_redis_host == redis_identifier else [])
  1771. +
  1772. ([(keydb_identifier + '.service')] if keydb_enabled and matrix_hookshot_cache_redis_host == keydb_identifier else [])
  1773. +
  1774. ([(valkey_identifier + '.service')] if valkey_enabled and matrix_hookshot_cache_redis_host == valkey_identifier else [])
  1775. }}
  1776. # Hookshot's experimental encryption feature (and possibly others) may benefit from Redis, if available.
  1777. # We only connect to Redis if encryption is enabled (not for everyone who has Redis enabled),
  1778. # because connectivity is still potentially troublesome and is to be investigated.
  1779. matrix_hookshot_cache_redis_host: "{{ valkey_identifier if valkey_enabled else (redis_identifier if redis_enabled else (keydb_identifier if keydb_enabled else '')) }}"
  1780. matrix_hookshot_container_network: "{{ matrix_addons_container_network }}"
  1781. matrix_hookshot_container_additional_networks_auto: |
  1782. {{
  1783. (
  1784. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  1785. +
  1786. ([redis_container_network] if redis_enabled and matrix_hookshot_cache_redis_host == redis_identifier else [])
  1787. +
  1788. ([keydb_container_network] if keydb_enabled and matrix_hookshot_cache_redis_host == keydb_identifier else [])
  1789. +
  1790. ([valkey_container_network] if valkey_enabled and matrix_hookshot_cache_redis_host == valkey_identifier else [])
  1791. +
  1792. ([matrix_playbook_reverse_proxyable_services_additional_network] if matrix_playbook_reverse_proxyable_services_additional_network and matrix_hookshot_container_labels_traefik_enabled else [])
  1793. ) | unique
  1794. }}
  1795. matrix_hookshot_container_http_host_bind_ports_defaultmapping:
  1796. - "{{ matrix_playbook_service_host_bind_interface_prefix }}{{ matrix_hookshot_appservice_port }}:{{ matrix_hookshot_appservice_port }}"
  1797. - "{{ matrix_playbook_service_host_bind_interface_prefix }}{{ matrix_hookshot_metrics_port }}:{{ matrix_hookshot_metrics_port }}"
  1798. - "{{ matrix_playbook_service_host_bind_interface_prefix }}{{ matrix_hookshot_webhook_port }}:{{ matrix_hookshot_webhook_port }}"
  1799. - "{{ matrix_playbook_service_host_bind_interface_prefix }}{{ matrix_hookshot_provisioning_port }}:{{ matrix_hookshot_provisioning_port }}"
  1800. matrix_hookshot_container_http_host_bind_ports: "{{ matrix_hookshot_container_http_host_bind_ports_defaultmapping if matrix_playbook_service_host_bind_interface_prefix else [] }}"
  1801. matrix_hookshot_container_labels_traefik_enabled: "{{ matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] }}"
  1802. matrix_hookshot_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  1803. matrix_hookshot_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  1804. matrix_hookshot_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  1805. matrix_hookshot_provisioning_enabled: "{{ matrix_hookshot_provisioning_secret and matrix_dimension_enabled }}"
  1806. matrix_hookshot_metrics_enabled: "{{ prometheus_enabled or matrix_metrics_exposure_enabled }}"
  1807. matrix_hookshot_metrics_proxying_enabled: "{{ matrix_hookshot_metrics_enabled and matrix_metrics_exposure_enabled }}"
  1808. matrix_hookshot_metrics_proxying_hostname: "{{ matrix_metrics_exposure_hostname }}"
  1809. matrix_hookshot_metrics_proxying_path_prefix: "{{ matrix_metrics_exposure_path_prefix }}/hookshot"
  1810. matrix_hookshot_container_labels_metrics_middleware_basic_auth_enabled: "{{ matrix_metrics_exposure_http_basic_auth_enabled }}"
  1811. matrix_hookshot_container_labels_metrics_middleware_basic_auth_users: "{{ matrix_metrics_exposure_http_basic_auth_users }}"
  1812. matrix_hookshot_public_scheme: "{{ 'https' if matrix_playbook_ssl_enabled else 'http' }}"
  1813. matrix_hookshot_public_hostname: "{{ matrix_server_fqn_matrix }}"
  1814. ######################################################################
  1815. #
  1816. # /matrix-bridge-hookshot
  1817. #
  1818. ######################################################################
  1819. ######################################################################
  1820. #
  1821. # matrix-bridge-mx-puppet-slack
  1822. #
  1823. ######################################################################
  1824. # We don't enable bridges by default.
  1825. matrix_mx_puppet_slack_enabled: false
  1826. matrix_mx_puppet_slack_hostname: "{{ matrix_server_fqn_matrix }}"
  1827. matrix_mx_puppet_slack_systemd_required_services_list_auto: |
  1828. {{
  1829. matrix_addons_homeserver_systemd_services_list
  1830. +
  1831. ([postgres_identifier ~ '.service'] if (postgres_enabled and matrix_mx_puppet_slack_database_hostname == postgres_connection_hostname) else [])
  1832. }}
  1833. matrix_mx_puppet_slack_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  1834. matrix_mx_puppet_slack_container_network: "{{ matrix_addons_container_network }}"
  1835. matrix_mx_puppet_slack_container_additional_networks_auto: |-
  1836. {{
  1837. (
  1838. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  1839. +
  1840. ([postgres_container_network] if (postgres_enabled and matrix_mx_puppet_slack_database_hostname == postgres_connection_hostname and matrix_mx_puppet_slack_container_network != postgres_container_network) else [])
  1841. +
  1842. ([matrix_playbook_reverse_proxyable_services_additional_network] if (matrix_playbook_reverse_proxyable_services_additional_network and matrix_mx_puppet_slack_container_labels_traefik_enabled) else [])
  1843. ) | unique
  1844. }}
  1845. matrix_mx_puppet_slack_container_labels_traefik_enabled: "{{ matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] }}"
  1846. matrix_mx_puppet_slack_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  1847. matrix_mx_puppet_slack_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  1848. matrix_mx_puppet_slack_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  1849. matrix_mx_puppet_slack_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mxslk.as.tok', rounds=655555) | to_uuid }}"
  1850. matrix_mx_puppet_slack_homeserver_address: "{{ matrix_addons_homeserver_client_api_url }}"
  1851. matrix_mx_puppet_slack_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mxslk.hs.tok', rounds=655555) | to_uuid }}"
  1852. matrix_mx_puppet_slack_login_shared_secret: "{{ matrix_synapse_ext_password_provider_shared_secret_auth_shared_secret if matrix_synapse_ext_password_provider_shared_secret_auth_enabled else '' }}"
  1853. matrix_mx_puppet_slack_presence_enabled: "{{ matrix_homeserver_implementation != 'synapse' or matrix_synapse_presence_enabled }}"
  1854. # Postgres is the default, except if not using internal Postgres server
  1855. matrix_mx_puppet_slack_database_engine: "{{ 'postgres' if postgres_enabled else 'sqlite' }}"
  1856. matrix_mx_puppet_slack_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  1857. matrix_mx_puppet_slack_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mxpup.slack.db', rounds=655555) | to_uuid }}"
  1858. ######################################################################
  1859. #
  1860. # /matrix-bridge-mx-puppet-slack
  1861. #
  1862. ######################################################################
  1863. ######################################################################
  1864. #
  1865. # matrix-bridge-mx-puppet-twitter
  1866. #
  1867. ######################################################################
  1868. # We don't enable bridges by default.
  1869. matrix_mx_puppet_twitter_enabled: false
  1870. matrix_mx_puppet_twitter_hostname: "{{ matrix_server_fqn_matrix }}"
  1871. matrix_mx_puppet_twitter_systemd_required_services_list_auto: |
  1872. {{
  1873. matrix_addons_homeserver_systemd_services_list
  1874. +
  1875. ([postgres_identifier ~ '.service'] if (postgres_enabled and matrix_mx_puppet_twitter_database_hostname == postgres_connection_hostname) else [])
  1876. }}
  1877. matrix_mx_puppet_twitter_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  1878. matrix_mx_puppet_twitter_container_http_host_bind_port: "{{ (matrix_playbook_service_host_bind_interface_prefix ~ '' ~ matrix_mx_puppet_twitter_appservice_port) if matrix_playbook_service_host_bind_interface_prefix else '' }}"
  1879. matrix_mx_puppet_twitter_container_network: "{{ matrix_addons_container_network }}"
  1880. matrix_mx_puppet_twitter_container_additional_networks_auto: |-
  1881. {{
  1882. (
  1883. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  1884. +
  1885. ([postgres_container_network] if (postgres_enabled and matrix_mx_puppet_twitter_database_hostname == postgres_connection_hostname and matrix_mx_puppet_twitter_container_network != postgres_container_network) else [])
  1886. +
  1887. ([matrix_playbook_reverse_proxyable_services_additional_network] if (matrix_playbook_reverse_proxyable_services_additional_network and matrix_mx_puppet_twitter_container_labels_traefik_enabled) else [])
  1888. ) | unique
  1889. }}
  1890. matrix_mx_puppet_twitter_container_labels_traefik_enabled: "{{ matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] }}"
  1891. matrix_mx_puppet_twitter_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  1892. matrix_mx_puppet_twitter_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  1893. matrix_mx_puppet_twitter_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  1894. matrix_mx_puppet_twitter_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mxtwt.as.tok', rounds=655555) | to_uuid }}"
  1895. matrix_mx_puppet_twitter_homeserver_address: "{{ matrix_addons_homeserver_client_api_url }}"
  1896. matrix_mx_puppet_twitter_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mxtwt.hs.tok', rounds=655555) | to_uuid }}"
  1897. matrix_mx_puppet_twitter_login_shared_secret: "{{ matrix_synapse_ext_password_provider_shared_secret_auth_shared_secret if matrix_synapse_ext_password_provider_shared_secret_auth_enabled else '' }}"
  1898. matrix_mx_puppet_twitter_presence_enabled: "{{ matrix_homeserver_implementation != 'synapse' or matrix_synapse_presence_enabled }}"
  1899. # Postgres is the default, except if not using internal Postgres server
  1900. matrix_mx_puppet_twitter_database_engine: "{{ 'postgres' if postgres_enabled else 'sqlite' }}"
  1901. matrix_mx_puppet_twitter_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  1902. matrix_mx_puppet_twitter_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mxpup.twitter.db', rounds=655555) | to_uuid }}"
  1903. ######################################################################
  1904. #
  1905. # /matrix-bridge-mx-puppet-twitter
  1906. #
  1907. ######################################################################
  1908. ######################################################################
  1909. #
  1910. # matrix-bridge-mx-puppet-instagram
  1911. #
  1912. ######################################################################
  1913. # We don't enable bridges by default.
  1914. matrix_mx_puppet_instagram_enabled: false
  1915. matrix_mx_puppet_instagram_systemd_required_services_list_auto: |
  1916. {{
  1917. matrix_addons_homeserver_systemd_services_list
  1918. +
  1919. ([postgres_identifier ~ '.service'] if (postgres_enabled and matrix_mx_puppet_instagram_database_hostname == postgres_connection_hostname) else [])
  1920. }}
  1921. matrix_mx_puppet_instagram_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  1922. matrix_mx_puppet_instagram_container_network: "{{ matrix_addons_container_network }}"
  1923. matrix_mx_puppet_instagram_container_additional_networks_auto: |-
  1924. {{
  1925. (
  1926. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  1927. +
  1928. ([postgres_container_network] if (postgres_enabled and matrix_mx_puppet_instagram_database_hostname == postgres_connection_hostname and matrix_mx_puppet_instagram_container_network != postgres_container_network) else [])
  1929. ) | unique
  1930. }}
  1931. matrix_mx_puppet_instagram_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mxig.as.tok', rounds=655555) | to_uuid }}"
  1932. matrix_mx_puppet_instagram_homeserver_address: "{{ matrix_addons_homeserver_client_api_url }}"
  1933. matrix_mx_puppet_instagram_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mxig.hs.tok', rounds=655555) | to_uuid }}"
  1934. matrix_mx_puppet_instagram_login_shared_secret: "{{ matrix_synapse_ext_password_provider_shared_secret_auth_shared_secret if matrix_synapse_ext_password_provider_shared_secret_auth_enabled else '' }}"
  1935. matrix_mx_puppet_instagram_presence_enabled: "{{ matrix_homeserver_implementation != 'synapse' or matrix_synapse_presence_enabled }}"
  1936. # Postgres is the default, except if not using internal Postgres server
  1937. matrix_mx_puppet_instagram_database_engine: "{{ 'postgres' if postgres_enabled else 'sqlite' }}"
  1938. matrix_mx_puppet_instagram_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  1939. matrix_mx_puppet_instagram_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mxpup.ig.db', rounds=655555) | to_uuid }}"
  1940. ######################################################################
  1941. #
  1942. # /matrix-bridge-mx-puppet-instagram
  1943. #
  1944. ######################################################################
  1945. ######################################################################
  1946. #
  1947. # matrix-bridge-mx-puppet-discord
  1948. #
  1949. ######################################################################
  1950. # We don't enable bridges by default.
  1951. matrix_mx_puppet_discord_enabled: false
  1952. matrix_mx_puppet_discord_systemd_required_services_list_auto: |
  1953. {{
  1954. matrix_addons_homeserver_systemd_services_list
  1955. +
  1956. ([postgres_identifier ~ '.service'] if (postgres_enabled and matrix_mx_puppet_discord_database_hostname == postgres_connection_hostname) else [])
  1957. }}
  1958. matrix_mx_puppet_discord_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  1959. matrix_mx_puppet_discord_container_network: "{{ matrix_addons_container_network }}"
  1960. matrix_mx_puppet_discord_container_additional_networks_auto: |-
  1961. {{
  1962. (
  1963. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  1964. +
  1965. ([postgres_container_network] if (postgres_enabled and matrix_mx_puppet_discord_database_hostname == postgres_connection_hostname and matrix_mx_puppet_discord_container_network != postgres_container_network) else [])
  1966. ) | unique
  1967. }}
  1968. matrix_mx_puppet_discord_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mxdsc.as.tok', rounds=655555) | to_uuid }}"
  1969. matrix_mx_puppet_discord_homeserver_address: "{{ matrix_addons_homeserver_client_api_url }}"
  1970. matrix_mx_puppet_discord_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mxdsc.hs.tok', rounds=655555) | to_uuid }}"
  1971. matrix_mx_puppet_discord_login_shared_secret: "{{ matrix_synapse_ext_password_provider_shared_secret_auth_shared_secret if matrix_synapse_ext_password_provider_shared_secret_auth_enabled else '' }}"
  1972. matrix_mx_puppet_discord_presence_enabled: "{{ matrix_homeserver_implementation != 'synapse' or matrix_synapse_presence_enabled }}"
  1973. # Postgres is the default, except if not using internal Postgres server
  1974. matrix_mx_puppet_discord_database_engine: "{{ 'postgres' if postgres_enabled else 'sqlite' }}"
  1975. matrix_mx_puppet_discord_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  1976. matrix_mx_puppet_discord_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mxpup.dsc.db', rounds=655555) | to_uuid }}"
  1977. ######################################################################
  1978. #
  1979. # /matrix-bridge-mx-puppet-discord
  1980. #
  1981. ######################################################################
  1982. ######################################################################
  1983. #
  1984. # matrix-bridge-mx-puppet-steam
  1985. #
  1986. ######################################################################
  1987. # We don't enable bridges by default.
  1988. matrix_mx_puppet_steam_enabled: false
  1989. matrix_mx_puppet_steam_systemd_required_services_list_auto: |
  1990. {{
  1991. matrix_addons_homeserver_systemd_services_list
  1992. +
  1993. ([postgres_identifier ~ '.service'] if (postgres_enabled and matrix_mx_puppet_steam_database_hostname == postgres_connection_hostname) else [])
  1994. }}
  1995. matrix_mx_puppet_steam_container_image_self_build: "{{ matrix_architecture not in ['arm64', 'amd64'] }}"
  1996. matrix_mx_puppet_steam_container_network: "{{ matrix_addons_container_network }}"
  1997. matrix_mx_puppet_steam_container_additional_networks_auto: |-
  1998. {{
  1999. (
  2000. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  2001. +
  2002. ([postgres_container_network] if (postgres_enabled and matrix_mx_puppet_steam_database_hostname == postgres_connection_hostname and matrix_mx_puppet_steam_container_network != postgres_container_network) else [])
  2003. ) | unique
  2004. }}
  2005. matrix_mx_puppet_steam_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mxste.as.tok', rounds=655555) | to_uuid }}"
  2006. matrix_mx_puppet_steam_homeserver_address: "{{ matrix_addons_homeserver_client_api_url }}"
  2007. matrix_mx_puppet_steam_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mxste.hs.tok', rounds=655555) | to_uuid }}"
  2008. matrix_mx_puppet_steam_login_shared_secret: "{{ matrix_synapse_ext_password_provider_shared_secret_auth_shared_secret if matrix_synapse_ext_password_provider_shared_secret_auth_enabled else '' }}"
  2009. matrix_mx_puppet_steam_presence_enabled: "{{ matrix_homeserver_implementation != 'synapse' or matrix_synapse_presence_enabled }}"
  2010. # Postgres is the default, except if not using internal Postgres server
  2011. matrix_mx_puppet_steam_database_engine: "{{ 'postgres' if postgres_enabled else 'sqlite' }}"
  2012. matrix_mx_puppet_steam_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  2013. matrix_mx_puppet_steam_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mxpup.steam.db', rounds=655555) | to_uuid }}"
  2014. ######################################################################
  2015. #
  2016. # /matrix-bridge-mx-puppet-steam
  2017. #
  2018. ######################################################################
  2019. ######################################################################
  2020. #
  2021. # matrix-bridge-mx-puppet-groupme
  2022. #
  2023. ######################################################################
  2024. # We don't enable bridges by default.
  2025. matrix_mx_puppet_groupme_enabled: false
  2026. matrix_mx_puppet_groupme_systemd_required_services_list_auto: |
  2027. {{
  2028. matrix_addons_homeserver_systemd_services_list
  2029. +
  2030. ([postgres_identifier ~ '.service'] if (postgres_enabled and matrix_mx_puppet_groupme_database_hostname == postgres_connection_hostname) else [])
  2031. }}
  2032. matrix_mx_puppet_groupme_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  2033. matrix_mx_puppet_groupme_container_network: "{{ matrix_addons_container_network }}"
  2034. matrix_mx_puppet_groupme_container_additional_networks_auto: |-
  2035. {{
  2036. (
  2037. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  2038. +
  2039. ([postgres_container_network] if (postgres_enabled and matrix_mx_puppet_groupme_database_hostname == postgres_connection_hostname and matrix_mx_puppet_groupme_container_network != postgres_container_network) else [])
  2040. ) | unique
  2041. }}
  2042. matrix_mx_puppet_groupme_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mxgro.as.tok', rounds=655555) | to_uuid }}"
  2043. matrix_mx_puppet_groupme_homeserver_address: "{{ matrix_addons_homeserver_client_api_url }}"
  2044. matrix_mx_puppet_groupme_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mxgro.hs.tok', rounds=655555) | to_uuid }}"
  2045. matrix_mx_puppet_groupme_login_shared_secret: "{{ matrix_synapse_ext_password_provider_shared_secret_auth_shared_secret if matrix_synapse_ext_password_provider_shared_secret_auth_enabled else '' }}"
  2046. matrix_mx_puppet_groupme_presence_enabled: "{{ matrix_homeserver_implementation != 'synapse' or matrix_synapse_presence_enabled }}"
  2047. # Postgres is the default, except if not using internal Postgres server
  2048. matrix_mx_puppet_groupme_database_engine: "{{ 'postgres' if postgres_enabled else 'sqlite' }}"
  2049. matrix_mx_puppet_groupme_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  2050. matrix_mx_puppet_groupme_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mxpup.groupme.db', rounds=655555) | to_uuid }}"
  2051. ######################################################################
  2052. #
  2053. # /matrix-bridge-mx-puppet-groupme
  2054. #
  2055. ######################################################################
  2056. ######################################################################
  2057. #
  2058. # matrix-bridge-postmoogle
  2059. #
  2060. ######################################################################
  2061. # We don't enable bridges by default.
  2062. matrix_postmoogle_enabled: false
  2063. matrix_postmoogle_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm64'] }}"
  2064. matrix_postmoogle_ssl_path: |-
  2065. {{
  2066. {
  2067. 'playbook-managed-traefik': (traefik_certs_dumper_dumped_certificates_dir_path if traefik_certs_dumper_enabled else ''),
  2068. 'other-traefik-container': (traefik_certs_dumper_dumped_certificates_dir_path if traefik_certs_dumper_enabled else ''),
  2069. 'none': '',
  2070. }[matrix_playbook_reverse_proxy_type]
  2071. }}
  2072. matrix_playbook_bridge_postmoogle_traefik_tls_cert: "{% for domain in matrix_postmoogle_domains %}/ssl/{{ domain }}/certificate.crt {% endfor %}"
  2073. matrix_playbook_bridge_postmoogle_traefik_key: "{% for domain in matrix_postmoogle_domains %}/ssl/{{ domain }}/privatekey.key {% endfor %}"
  2074. matrix_postmoogle_tls_cert: |-
  2075. {{
  2076. {
  2077. 'playbook-managed-traefik': (matrix_playbook_bridge_postmoogle_traefik_tls_cert if traefik_certs_dumper_enabled else ''),
  2078. 'other-traefik-container': (matrix_playbook_bridge_postmoogle_traefik_tls_cert if traefik_certs_dumper_enabled else ''),
  2079. 'none': '',
  2080. }[matrix_playbook_reverse_proxy_type]
  2081. }}
  2082. matrix_postmoogle_tls_key: |-
  2083. {{
  2084. {
  2085. 'playbook-managed-traefik': (matrix_playbook_bridge_postmoogle_traefik_key if traefik_certs_dumper_enabled else ''),
  2086. 'other-traefik-container': (matrix_playbook_bridge_postmoogle_traefik_key if traefik_certs_dumper_enabled else ''),
  2087. 'none': '',
  2088. }[matrix_playbook_reverse_proxy_type]
  2089. }}
  2090. matrix_playbook_bridge_postmoogle_traefik_certs_dumper_waiter_services: "{% for domain in matrix_postmoogle_domains %}{{ traefik_certs_dumper_identifier }}-wait-for-domain@{{ domain }}.service {% endfor %}"
  2091. matrix_postmoogle_systemd_required_services_list_auto: |
  2092. {{
  2093. matrix_addons_homeserver_systemd_services_list
  2094. +
  2095. ([postgres_identifier ~ '.service'] if postgres_enabled and matrix_postmoogle_database_hostname == matrix_postmoogle_database_hostname else [])
  2096. +
  2097. (matrix_playbook_bridge_postmoogle_traefik_certs_dumper_waiter_services | trim | split(' ') if matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] and traefik_certs_dumper_enabled else [])
  2098. }}
  2099. # Postgres is the default, except if not using internal Postgres server
  2100. matrix_postmoogle_database_engine: "{{ 'postgres' if postgres_enabled else 'sqlite' }}"
  2101. matrix_postmoogle_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  2102. matrix_postmoogle_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'postmoogle.db', rounds=655555) | to_uuid }}"
  2103. matrix_postmoogle_homeserver: "{{ matrix_addons_homeserver_client_api_url }}"
  2104. matrix_postmoogle_container_network: "{{ matrix_addons_container_network }}"
  2105. matrix_postmoogle_container_additional_networks_auto: |-
  2106. {{
  2107. (
  2108. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  2109. +
  2110. ([postgres_container_network] if postgres_enabled and matrix_bot_matrix_reminder_bot_database_hostname == postgres_connection_hostname else [])
  2111. ) | unique
  2112. }}
  2113. ######################################################################
  2114. #
  2115. # /matrix-bridge-postmoogle
  2116. #
  2117. ######################################################################
  2118. ######################################################################
  2119. #
  2120. # matrix-bot-matrix-reminder-bot
  2121. #
  2122. ######################################################################
  2123. # We don't enable bots by default.
  2124. matrix_bot_matrix_reminder_bot_enabled: false
  2125. matrix_bot_matrix_reminder_bot_systemd_required_services_list_auto: |
  2126. {{
  2127. matrix_addons_homeserver_systemd_services_list
  2128. +
  2129. ([postgres_identifier ~ '.service'] if postgres_enabled and matrix_bot_matrix_reminder_bot_database_hostname == postgres_connection_hostname else [])
  2130. }}
  2131. matrix_bot_matrix_reminder_bot_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm64'] }}"
  2132. matrix_bot_matrix_reminder_bot_container_network: "{{ matrix_addons_container_network }}"
  2133. matrix_bot_matrix_reminder_bot_container_additional_networks_auto: |-
  2134. {{
  2135. (
  2136. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  2137. +
  2138. ([postgres_container_network] if postgres_enabled and matrix_bot_matrix_reminder_bot_database_hostname == postgres_connection_hostname else [])
  2139. ) | unique
  2140. }}
  2141. matrix_bot_matrix_reminder_bot_matrix_homeserver_url: "{{ matrix_addons_homeserver_client_api_url }}"
  2142. # Postgres is the default, except if not using internal Postgres server
  2143. matrix_bot_matrix_reminder_bot_database_engine: "{{ 'postgres' if postgres_enabled else 'sqlite' }}"
  2144. matrix_bot_matrix_reminder_bot_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  2145. matrix_bot_matrix_reminder_bot_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'reminder.bot.db', rounds=655555) | to_uuid }}"
  2146. matrix_bot_matrix_reminder_bot_allowlist_enabled: true
  2147. matrix_bot_matrix_reminder_bot_allowlist_regexes_auto:
  2148. - "@[a-z0-9-_.]+:{{ matrix_domain }}"
  2149. ######################################################################
  2150. #
  2151. # /matrix-bot-matrix-reminder-bot
  2152. #
  2153. ######################################################################
  2154. ######################################################################
  2155. #
  2156. # matrix-bot-matrix-registration-bot
  2157. #
  2158. ######################################################################
  2159. # We don't enable bots by default.
  2160. matrix_bot_matrix_registration_bot_enabled: false
  2161. matrix_bot_matrix_registration_bot_systemd_required_services_list_auto: |
  2162. {{
  2163. matrix_addons_homeserver_systemd_services_list
  2164. }}
  2165. matrix_bot_matrix_registration_bot_container_image_self_build: "{{ matrix_architecture not in ['amd64'] }}"
  2166. matrix_bot_matrix_registration_bot_container_network: "{{ matrix_addons_container_network }}"
  2167. matrix_bot_matrix_registration_bot_container_additional_networks_auto: |-
  2168. {{
  2169. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  2170. }}
  2171. matrix_bot_matrix_registration_bot_matrix_homeserver_url: "{{ matrix_addons_homeserver_client_api_url }}"
  2172. ######################################################################
  2173. #
  2174. # /matrix-bot-matrix-registration-bot
  2175. #
  2176. ######################################################################
  2177. ######################################################################
  2178. #
  2179. # matrix-bot-maubot
  2180. #
  2181. ######################################################################
  2182. # We don't enable bots by default.
  2183. matrix_bot_maubot_enabled: false
  2184. matrix_bot_maubot_systemd_required_services_list_auto: |
  2185. {{
  2186. matrix_addons_homeserver_systemd_services_list
  2187. +
  2188. ([postgres_identifier ~ '.service'] if (postgres_enabled and matrix_bot_maubot_database_hostname == postgres_connection_hostname) else [])
  2189. }}
  2190. matrix_bot_maubot_hostname: "{{ matrix_server_fqn_matrix }}"
  2191. matrix_bot_maubot_homeserver_url: "{{ matrix_addons_homeserver_client_api_url }}"
  2192. matrix_bot_maubot_homeserver_secret: |-
  2193. {{
  2194. {
  2195. 'synapse': matrix_synapse_registration_shared_secret | default(''),
  2196. 'dendrite': matrix_dendrite_client_api_registration_shared_secret | default(''),
  2197. }[matrix_homeserver_implementation] | default('')
  2198. }}
  2199. matrix_bot_maubot_container_image_self_build: "{{ matrix_architecture not in ['amd64'] }}"
  2200. matrix_bot_maubot_container_management_interface_http_bind_port: "{{ (matrix_playbook_service_host_bind_interface_prefix ~ '' ~ matrix_bot_maubot_server_port | string) if matrix_playbook_service_host_bind_interface_prefix else '' }}"
  2201. matrix_bot_maubot_container_network: "{{ matrix_addons_container_network }}"
  2202. matrix_bot_maubot_container_additional_networks_auto: |-
  2203. {{
  2204. (
  2205. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  2206. +
  2207. ([postgres_container_network] if (postgres_enabled and matrix_bot_maubot_database_hostname == postgres_connection_hostname and matrix_bot_maubot_container_network != postgres_container_network) else [])
  2208. +
  2209. ([matrix_playbook_reverse_proxyable_services_additional_network] if matrix_playbook_reverse_proxyable_services_additional_network and matrix_bot_maubot_container_labels_traefik_enabled else [])
  2210. ) | unique
  2211. }}
  2212. matrix_bot_maubot_container_labels_traefik_enabled: "{{ matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] }}"
  2213. matrix_bot_maubot_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  2214. matrix_bot_maubot_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  2215. matrix_bot_maubot_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  2216. matrix_bot_maubot_container_labels_management_hostname: "{{ matrix_server_fqn_matrix }}"
  2217. # Postgres is the default, except if not using internal Postgres server
  2218. matrix_bot_maubot_database_engine: "{{ 'postgres' if postgres_enabled else 'sqlite' }}"
  2219. matrix_bot_maubot_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  2220. matrix_bot_maubot_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mxpup.dsc.db', rounds=655555) | to_uuid }}"
  2221. ######################################################################
  2222. #
  2223. # /matrix-bot-maubot
  2224. #
  2225. ######################################################################
  2226. ######################################################################
  2227. #
  2228. # matrix-bot-honoroit
  2229. #
  2230. ######################################################################
  2231. # We don't enable bots by default.
  2232. matrix_bot_honoroit_enabled: false
  2233. matrix_bot_honoroit_hostname: "{{ matrix_server_fqn_matrix }}"
  2234. matrix_bot_honoroit_path_prefix: /honoroit
  2235. matrix_bot_honoroit_systemd_required_services_list_auto: |
  2236. {{
  2237. matrix_addons_homeserver_systemd_services_list
  2238. +
  2239. ([postgres_identifier ~ '.service'] if postgres_enabled and matrix_bot_honoroit_database_hostname == postgres_connection_hostname else [])
  2240. }}
  2241. matrix_bot_honoroit_container_network: "{{ matrix_addons_container_network }}"
  2242. matrix_bot_honoroit_container_additional_networks: |
  2243. {{
  2244. (
  2245. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  2246. +
  2247. ([postgres_container_network] if (postgres_enabled and matrix_bot_honoroit_database_hostname == postgres_connection_hostname and matrix_bot_honoroit_container_network != postgres_container_network) else [])
  2248. +
  2249. ([matrix_playbook_reverse_proxyable_services_additional_network] if matrix_playbook_reverse_proxyable_services_additional_network and matrix_bot_honoroit_container_labels_traefik_enabled else [])
  2250. ) | unique
  2251. }}
  2252. matrix_bot_honoroit_container_labels_traefik_enabled: "{{ matrix_playbook_traefik_labels_enabled }}"
  2253. matrix_bot_honoroit_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  2254. matrix_bot_honoroit_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  2255. matrix_bot_honoroit_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  2256. # For consistency with other things hosted at the Matrix FQN, we adjust the metrics endpoint
  2257. # so that metrics would be served at something like `/metrics/SERVICE_NAME`, and not at the default path for the role (`PREFIX/metrics`).
  2258. matrix_bot_honoroit_container_labels_traefik_metrics_path: "{{ matrix_metrics_exposure_path_prefix }}/honoroit"
  2259. matrix_bot_honoroit_homeserver: "{{ matrix_addons_homeserver_client_api_url }}"
  2260. # Postgres is the default, except if not using internal Postgres server
  2261. matrix_bot_honoroit_database_engine: "{{ 'postgres' if postgres_enabled else 'sqlite' }}"
  2262. matrix_bot_honoroit_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  2263. matrix_bot_honoroit_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'honoroit.bot.db', rounds=655555) | to_uuid }}"
  2264. matrix_bot_honoroit_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm64'] }}"
  2265. ######################################################################
  2266. #
  2267. # /matrix-bot-honoroit
  2268. #
  2269. ######################################################################
  2270. ######################################################################
  2271. #
  2272. # matrix-bot-buscarron
  2273. #
  2274. ######################################################################
  2275. # We don't enable bots by default.
  2276. matrix_bot_buscarron_enabled: false
  2277. matrix_bot_buscarron_hostname: "{{ matrix_server_fqn_buscarron }}"
  2278. matrix_bot_buscarron_systemd_required_services_list_auto: |
  2279. {{
  2280. matrix_addons_homeserver_systemd_services_list
  2281. +
  2282. ([postgres_identifier ~ '.service'] if (postgres_enabled and matrix_bot_buscarron_database_hostname == postgres_connection_hostname) else [])
  2283. }}
  2284. matrix_bot_buscarron_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm64'] }}"
  2285. matrix_bot_buscarron_container_network: "{{ matrix_addons_container_network }}"
  2286. matrix_bot_buscarron_container_additional_networks_auto: |-
  2287. {{
  2288. (
  2289. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  2290. +
  2291. ([postgres_container_network] if (postgres_enabled and matrix_bot_buscarron_database_hostname == postgres_connection_hostname and matrix_bot_buscarron_container_network != postgres_container_network) else [])
  2292. +
  2293. ([matrix_playbook_reverse_proxyable_services_additional_network] if matrix_playbook_reverse_proxyable_services_additional_network and matrix_bot_buscarron_container_labels_traefik_enabled else [])
  2294. ) | unique
  2295. }}
  2296. matrix_bot_buscarron_container_labels_traefik_enabled: "{{ matrix_playbook_traefik_labels_enabled }}"
  2297. matrix_bot_buscarron_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  2298. matrix_bot_buscarron_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  2299. matrix_bot_buscarron_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  2300. matrix_bot_buscarron_homeserver: "{{ matrix_addons_homeserver_client_api_url }}"
  2301. # Postgres is the default, except if not using internal Postgres server
  2302. matrix_bot_buscarron_database_engine: "{{ 'postgres' if postgres_enabled else 'sqlite' }}"
  2303. matrix_bot_buscarron_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  2304. matrix_bot_buscarron_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'buscarron.bot.db', rounds=655555) | to_uuid }}"
  2305. ######################################################################
  2306. #
  2307. # /matrix-bot-buscarron
  2308. #
  2309. ######################################################################
  2310. ######################################################################
  2311. #
  2312. # matrix-bot-baibot
  2313. #
  2314. ######################################################################
  2315. # We don't enable bots by default.
  2316. matrix_bot_baibot_enabled: false
  2317. matrix_bot_baibot_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm64'] }}"
  2318. matrix_bot_baibot_systemd_required_services_list_auto: |
  2319. {{
  2320. matrix_addons_homeserver_systemd_services_list
  2321. }}
  2322. matrix_bot_baibot_config_homeserver_url: "{{ matrix_addons_homeserver_client_api_url }}"
  2323. matrix_bot_baibot_container_network: "{{ matrix_addons_container_network }}"
  2324. matrix_bot_baibot_container_additional_networks_auto: |-
  2325. {{
  2326. (
  2327. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  2328. ) | unique
  2329. }}
  2330. ######################################################################
  2331. #
  2332. # /matrix-bot-baibot
  2333. #
  2334. ######################################################################
  2335. ######################################################################
  2336. #
  2337. # matrix-bot-chatgpt
  2338. #
  2339. ######################################################################
  2340. # We don't enable bots by default.
  2341. matrix_bot_chatgpt_enabled: false
  2342. matrix_bot_chatgpt_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm64'] }}"
  2343. matrix_bot_chatgpt_container_network: "{{ matrix_addons_container_network }}"
  2344. matrix_bot_chatgpt_container_additional_networks_auto: "{{ [] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network] }}"
  2345. matrix_bot_chatgpt_matrix_homeserver_url: "{{ matrix_addons_homeserver_client_api_url }}"
  2346. matrix_bot_chatgpt_systemd_required_services_list_auto: "{{ matrix_addons_homeserver_systemd_services_list }}"
  2347. ######################################################################
  2348. #
  2349. # /matrix-bot-chatgpt
  2350. #
  2351. ######################################################################
  2352. ######################################################################
  2353. #
  2354. # matrix-bot-go-neb
  2355. #
  2356. ######################################################################
  2357. # We don't enable bots by default.
  2358. matrix_bot_go_neb_enabled: false
  2359. matrix_bot_go_neb_scheme: "{{ 'https' if matrix_playbook_ssl_enabled else 'http' }}"
  2360. matrix_bot_go_neb_hostname: "{{ matrix_server_fqn_bot_go_neb }}"
  2361. matrix_bot_go_neb_systemd_required_services_list_auto: |
  2362. {{
  2363. matrix_addons_homeserver_systemd_services_list
  2364. }}
  2365. matrix_bot_go_neb_container_http_host_bind_port: "{{ (matrix_playbook_service_host_bind_interface_prefix ~ '4050') if matrix_playbook_service_host_bind_interface_prefix else '' }}"
  2366. matrix_bot_go_neb_container_network: "{{ matrix_addons_container_network }}"
  2367. matrix_bot_go_neb_container_additional_networks: |
  2368. {{
  2369. (
  2370. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  2371. +
  2372. ([matrix_playbook_reverse_proxyable_services_additional_network] if matrix_playbook_reverse_proxyable_services_additional_network and matrix_bot_go_neb_container_labels_traefik_enabled else [])
  2373. ) | unique
  2374. }}
  2375. matrix_bot_go_neb_container_labels_traefik_enabled: "{{ matrix_playbook_traefik_labels_enabled }}"
  2376. matrix_bot_go_neb_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  2377. matrix_bot_go_neb_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  2378. matrix_bot_go_neb_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  2379. ######################################################################
  2380. #
  2381. # /matrix-bot-go-neb
  2382. #
  2383. ######################################################################
  2384. ######################################################################
  2385. #
  2386. # matrix-bot-mjolnir
  2387. #
  2388. ######################################################################
  2389. # We don't enable bots by default.
  2390. matrix_bot_mjolnir_enabled: false
  2391. matrix_bot_mjolnir_systemd_required_services_list_auto: |
  2392. {{
  2393. matrix_addons_homeserver_systemd_services_list
  2394. +
  2395. (['matrix-pantalaimon.service'] if matrix_bot_mjolnir_pantalaimon_use else [])
  2396. }}
  2397. matrix_bot_mjolnir_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  2398. matrix_bot_mjolnir_container_network: "{{ matrix_addons_container_network }}"
  2399. matrix_bot_mjolnir_container_additional_networks_auto: |-
  2400. {{
  2401. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  2402. }}
  2403. matrix_bot_mjolnir_homeserver_url: "{{ 'http://matrix-pantalaimon:8009' if matrix_bot_mjolnir_pantalaimon_use else matrix_addons_homeserver_client_api_url }}"
  2404. matrix_bot_mjolnir_raw_homeserver_url: "{{ matrix_addons_homeserver_client_api_url }}"
  2405. ######################################################################
  2406. #
  2407. # /matrix-bot-mjolnir
  2408. #
  2409. ######################################################################
  2410. ######################################################################
  2411. #
  2412. # matrix-bot-draupnir
  2413. #
  2414. ######################################################################
  2415. # We don't enable bots by default.
  2416. matrix_bot_draupnir_enabled: false
  2417. matrix_bot_draupnir_container_http_host_bind_port: "{{ (matrix_playbook_service_host_bind_interface_prefix ~ '8769') if matrix_playbook_service_host_bind_interface_prefix else '' }}"
  2418. matrix_bot_draupnir_systemd_required_services_list_auto: |
  2419. {{
  2420. matrix_addons_homeserver_systemd_services_list
  2421. +
  2422. (['matrix-pantalaimon.service'] if matrix_bot_draupnir_pantalaimon_use else [])
  2423. }}
  2424. matrix_bot_draupnir_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm64'] }}"
  2425. matrix_bot_draupnir_container_network: "{{ matrix_addons_container_network }}"
  2426. matrix_bot_draupnir_container_additional_networks_auto: |-
  2427. {{
  2428. (
  2429. ([] if matrix_addons_homeserver_container_network == '' else
  2430. [matrix_addons_homeserver_container_network])
  2431. +
  2432. ([matrix_playbook_reverse_proxyable_services_additional_network] if
  2433. (matrix_playbook_reverse_proxyable_services_additional_network and matrix_bot_draupnir_container_labels_traefik_enabled) else [])
  2434. +
  2435. ([matrix_pantalaimon_container_network] if (matrix_bot_draupnir_pantalaimon_use and matrix_pantalaimon_container_network != matrix_bot_draupnir_container_network) else [])
  2436. ) | unique
  2437. }}
  2438. matrix_bot_draupnir_homeserver_url: "{{ 'http://matrix-pantalaimon:8009' if matrix_bot_draupnir_pantalaimon_use else matrix_addons_homeserver_client_api_url }}"
  2439. matrix_bot_draupnir_raw_homeserver_url: "{{ matrix_addons_homeserver_client_api_url }}"
  2440. matrix_bot_draupnir_container_labels_traefik_enabled: "{{ matrix_bot_draupnir_web_enabled and matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] }}"
  2441. matrix_bot_draupnir_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  2442. matrix_bot_draupnir_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  2443. matrix_bot_draupnir_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  2444. ######################################################################
  2445. #
  2446. # /matrix-bot-draupnir
  2447. #
  2448. ######################################################################
  2449. ######################################################################
  2450. #
  2451. # matrix-appservice-draupnir-for-all
  2452. #
  2453. ######################################################################
  2454. # We don't enable bots by default.
  2455. matrix_appservice_draupnir_for_all_enabled: false
  2456. matrix_appservice_draupnir_for_all_systemd_required_services_list_auto: |
  2457. {{
  2458. matrix_addons_homeserver_systemd_services_list
  2459. +
  2460. ([postgres_identifier ~ '.service'] if (postgres_enabled and matrix_appservice_draupnir_for_all_database_hostname == postgres_connection_hostname) else [])
  2461. }}
  2462. matrix_appservice_draupnir_for_all_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm64'] }}"
  2463. matrix_appservice_draupnir_for_all_container_network: "{{ matrix_addons_container_network }}"
  2464. matrix_appservice_draupnir_for_all_container_additional_networks_auto: |-
  2465. {{
  2466. (
  2467. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  2468. +
  2469. ([postgres_container_network] if (postgres_enabled and matrix_appservice_draupnir_for_all_database_hostname == postgres_connection_hostname and matrix_appservice_draupnir_for_all_container_network != postgres_container_network) else [])
  2470. ) | unique
  2471. }}
  2472. matrix_appservice_draupnir_for_all_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'd4a.as.token', rounds=655555) | to_uuid }}"
  2473. matrix_appservice_draupnir_for_all_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'd4a.hs.token', rounds=655555) | to_uuid }}"
  2474. matrix_appservice_draupnir_for_all_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  2475. matrix_appservice_draupnir_for_all_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'as.d4a.db', rounds=655555) | to_uuid }}"
  2476. ######################################################################
  2477. #
  2478. # /matrix-appservice-draupnir-for-all
  2479. #
  2480. ######################################################################
  2481. ######################################################################
  2482. #
  2483. # matrix-appservice-double-puppet
  2484. #
  2485. ######################################################################
  2486. matrix_appservice_double_puppet_enabled: false
  2487. matrix_appservice_double_puppet_registration_as_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'as.doub.pup', rounds=655555) | to_uuid }}"
  2488. matrix_appservice_double_puppet_registration_hs_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'hs.doub.pup', rounds=655555) | to_uuid }}"
  2489. ######################################################################
  2490. #
  2491. # /matrix-appservice-double-puppet
  2492. #
  2493. ######################################################################
  2494. ######################################################################
  2495. #
  2496. # matrix-pantalaimon
  2497. #
  2498. ######################################################################
  2499. matrix_pantalaimon_enabled: false
  2500. matrix_pantalaimon_systemd_required_services_list_auto: |
  2501. {{
  2502. matrix_addons_homeserver_systemd_services_list
  2503. }}
  2504. matrix_pantalaimon_container_network: "{{ matrix_homeserver_container_network }}"
  2505. matrix_pantalaimon_container_image_self_build: "{{ matrix_architecture not in ['amd64'] }}"
  2506. matrix_pantalaimon_homeserver_url: "{{ matrix_addons_homeserver_client_api_url }}"
  2507. ######################################################################
  2508. #
  2509. # /matrix-pantalaimon
  2510. #
  2511. ######################################################################
  2512. ######################################################################
  2513. #
  2514. # etke/backup_borg
  2515. #
  2516. ######################################################################
  2517. backup_borg_enabled: false
  2518. backup_borg_identifier: matrix-backup-borg
  2519. backup_borg_retention_prefix: matrix-
  2520. backup_borg_storage_archive_name_format: matrix-{now:%Y-%m-%d-%H%M%S}
  2521. backup_borg_base_path: "{{ matrix_base_data_path }}/backup-borg"
  2522. backup_borg_username: "{{ matrix_user_username }}"
  2523. backup_borg_uid: "{{ matrix_user_uid }}"
  2524. backup_borg_gid: "{{ matrix_user_gid }}"
  2525. backup_borg_container_network: "{{ postgres_container_network if postgres_enabled else backup_borg_identifier }}"
  2526. backup_borg_postgresql_version_detection_postgres_role_name: "{{ 'galaxy/postgres' if postgres_enabled else '' }}"
  2527. backup_borg_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm32', 'arm64'] }}"
  2528. backup_borg_postgresql_enabled: "{{ postgres_enabled }}"
  2529. backup_borg_postgresql_databases_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  2530. backup_borg_postgresql_databases_username: "{{ postgres_connection_username if postgres_enabled else '' }}"
  2531. backup_borg_postgresql_databases_password: "{{ postgres_connection_password if postgres_enabled else '' }}"
  2532. backup_borg_postgresql_databases_port: "{{ postgres_connection_port if postgres_enabled else 5432 }}"
  2533. backup_borg_postgresql_databases: "{{ postgres_managed_databases | map(attribute='name') if postgres_enabled else [] }}"
  2534. backup_borg_location_source_directories:
  2535. - "{{ matrix_base_data_path }}"
  2536. backup_borg_location_exclude_patterns: |
  2537. {{
  2538. ([matrix_synapse_media_store_path + '/local_thumbnails', matrix_synapse_media_store_path + '/remote_thumbnail', matrix_synapse_media_store_path + '/url_cache', matrix_synapse_media_store_path + '/url_cache_thumbnails'] if matrix_homeserver_implementation == 'synapse' else [])
  2539. +
  2540. ([postgres_data_path] if postgres_enabled else [])
  2541. }}
  2542. backup_borg_systemd_required_services_list: |
  2543. {{
  2544. [devture_systemd_docker_base_docker_service_name]
  2545. +
  2546. ([postgres_identifier ~ '.service'] if postgres_enabled else [])
  2547. }}
  2548. ######################################################################
  2549. #
  2550. # /etke/backup_borg
  2551. #
  2552. ######################################################################
  2553. ######################################################################
  2554. #
  2555. # matrix-cactus-comments
  2556. #
  2557. ######################################################################
  2558. matrix_cactus_comments_enabled: false
  2559. matrix_cactus_comments_systemd_required_services_list_auto: |
  2560. {{
  2561. matrix_addons_homeserver_systemd_services_list
  2562. }}
  2563. matrix_cactus_comments_container_image_self_build: "{{ matrix_architecture not in ['amd64'] }}"
  2564. matrix_cactus_comments_container_network: "{{ matrix_addons_container_network }}"
  2565. matrix_cactus_comments_container_additional_networks_auto: |-
  2566. {{
  2567. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  2568. }}
  2569. matrix_cactus_comments_as_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'cactus.as.token', rounds=655555) | to_uuid }}"
  2570. matrix_cactus_comments_hs_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'cactus.hs.token', rounds=655555) | to_uuid }}"
  2571. matrix_cactus_comments_homeserver_url: "{{ matrix_addons_homeserver_client_api_url }}"
  2572. ######################################################################
  2573. #
  2574. # /matrix-cactus-comments
  2575. #
  2576. ######################################################################
  2577. ######################################################################
  2578. #
  2579. # matrix-cactus-comments-client
  2580. #
  2581. ######################################################################
  2582. matrix_cactus_comments_client_enabled: "{{ matrix_cactus_comments_enabled }}"
  2583. matrix_cactus_comments_client_hostname: "{{ matrix_server_fqn_matrix }}"
  2584. matrix_cactus_comments_client_container_network: "{{ matrix_addons_container_network }}"
  2585. matrix_cactus_comments_client_container_additional_networks_auto: |-
  2586. {{
  2587. (
  2588. ([matrix_playbook_reverse_proxyable_services_additional_network] if (matrix_playbook_reverse_proxyable_services_additional_network and matrix_cactus_comments_client_container_labels_traefik_enabled) else [])
  2589. ) | unique
  2590. }}
  2591. matrix_cactus_comments_client_container_labels_traefik_enabled: "{{ matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] }}"
  2592. matrix_cactus_comments_client_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  2593. matrix_cactus_comments_client_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  2594. matrix_cactus_comments_client_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  2595. ######################################################################
  2596. #
  2597. # /matrix-cactus-comments-client
  2598. #
  2599. ######################################################################
  2600. ######################################################################
  2601. #
  2602. # matrix-corporal
  2603. #
  2604. ######################################################################
  2605. matrix_corporal_enabled: false
  2606. matrix_corporal_systemd_required_services_list_auto: |
  2607. {{
  2608. (['matrix-' + matrix_homeserver_implementation + '.service'])
  2609. }}
  2610. matrix_corporal_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm32', 'arm64'] }}"
  2611. matrix_corporal_container_http_gateway_host_bind_port: "{{ (matrix_playbook_service_host_bind_interface_prefix ~ '41080') if matrix_playbook_service_host_bind_interface_prefix else '' }}"
  2612. matrix_corporal_container_http_api_host_bind_port: "{{ (matrix_playbook_service_host_bind_interface_prefix ~ '41081') if matrix_playbook_service_host_bind_interface_prefix else '' }}"
  2613. matrix_corporal_container_network: matrix-corporal
  2614. matrix_corporal_container_additional_networks: |
  2615. {{
  2616. (
  2617. ([matrix_playbook_reverse_proxyable_services_additional_network] if matrix_playbook_reverse_proxyable_services_additional_network else [])
  2618. +
  2619. ([matrix_homeserver_container_network] if matrix_corporal_container_network != matrix_homeserver_container_network else [])
  2620. ) | unique
  2621. }}
  2622. matrix_corporal_container_labels_traefik_enabled: "{{ matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] }}"
  2623. matrix_corporal_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  2624. matrix_corporal_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  2625. matrix_corporal_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  2626. matrix_corporal_matrix_homeserver_scheme: "{{ 'https' if matrix_playbook_ssl_enabled else 'http' }}"
  2627. matrix_corporal_matrix_homeserver_api_endpoint: "{{ matrix_homeserver_container_url }}"
  2628. matrix_corporal_matrix_auth_shared_secret: "{{ matrix_synapse_ext_password_provider_shared_secret_auth_shared_secret }}"
  2629. # This is only useful if there's REST auth provider to make use of it.
  2630. matrix_corporal_http_gateway_internal_rest_auth_enabled: "{{ matrix_synapse_ext_password_provider_rest_auth_enabled }}"
  2631. matrix_corporal_matrix_registration_shared_secret: "{{ matrix_synapse_registration_shared_secret }}"
  2632. ######################################################################
  2633. #
  2634. # /matrix-corporal
  2635. #
  2636. ######################################################################
  2637. ######################################################################
  2638. #
  2639. # matrix-rageshake
  2640. #
  2641. ######################################################################
  2642. # We don't enable rageshake by default.
  2643. matrix_rageshake_enabled: false
  2644. matrix_rageshake_container_image_self_build: "{{ matrix_architecture not in ['amd64'] }}"
  2645. matrix_rageshake_hostname: "{{ matrix_server_fqn_rageshake }}"
  2646. matrix_rageshake_container_network: matrix-rageshake
  2647. matrix_rageshake_container_additional_networks: "{{ [matrix_playbook_reverse_proxyable_services_additional_network] if matrix_playbook_reverse_proxyable_services_additional_network else [] }}"
  2648. matrix_rageshake_container_http_host_bind_port: "{{ (matrix_playbook_service_host_bind_interface_prefix ~ '9110') if matrix_playbook_service_host_bind_interface_prefix else '' }}"
  2649. matrix_rageshake_container_labels_traefik_enabled: "{{ matrix_playbook_traefik_labels_enabled }}"
  2650. matrix_rageshake_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  2651. matrix_rageshake_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  2652. matrix_rageshake_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  2653. ######################################################################
  2654. #
  2655. # /matrix-rageshake
  2656. #
  2657. ######################################################################
  2658. ######################################################################
  2659. #
  2660. # matrix-coturn
  2661. #
  2662. ######################################################################
  2663. matrix_coturn_enabled: true
  2664. matrix_coturn_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm32', 'arm64'] }}"
  2665. # We make the assumption that `ansible_host` points to an external IP address, which may not always be the case.
  2666. # Users are free to set `matrix_coturn_turn_external_ip_address` to an empty string
  2667. # to allow auto-detection (via an EchoIP service) to happen at runtime.
  2668. matrix_coturn_turn_external_ip_address: "{{ ansible_host }}"
  2669. matrix_coturn_turn_static_auth_secret: "{{ ('%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'coturn.sas', rounds=655555) | to_uuid) if matrix_coturn_authentication_method == 'auth-secret' else '' }}"
  2670. matrix_coturn_lt_cred_mech_username: "{{ ('%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'coturn.user', rounds=655555) | to_uuid) if matrix_coturn_authentication_method == 'lt-cred-mech' else '' }}"
  2671. matrix_coturn_lt_cred_mech_password: "{{ ('%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'coturn.pass', rounds=655555) | to_uuid) if matrix_coturn_authentication_method == 'lt-cred-mech' else '' }}"
  2672. matrix_coturn_tls_enabled: "{{ matrix_playbook_ssl_enabled }}"
  2673. matrix_coturn_tls_cert_path: |-
  2674. {{
  2675. {
  2676. 'playbook-managed-traefik': ('/certificate.crt' if traefik_certs_dumper_enabled else ''),
  2677. 'other-traefik-container': ('/certificate.crt' if traefik_certs_dumper_enabled else ''),
  2678. 'none': '',
  2679. }[matrix_playbook_reverse_proxy_type]
  2680. }}
  2681. matrix_coturn_tls_key_path: |-
  2682. {{
  2683. {
  2684. 'playbook-managed-traefik': ('/privatekey.key' if traefik_certs_dumper_enabled else ''),
  2685. 'other-traefik-container': ('/privatekey.key' if traefik_certs_dumper_enabled else ''),
  2686. 'none': '',
  2687. }[matrix_playbook_reverse_proxy_type]
  2688. }}
  2689. matrix_coturn_container_additional_volumes: |
  2690. {{
  2691. (
  2692. [
  2693. {
  2694. 'src': (traefik_certs_dumper_dumped_certificates_dir_path + '/' + matrix_server_fqn_matrix + '/certificate.crt'),
  2695. 'dst': '/certificate.crt',
  2696. 'options': 'ro',
  2697. },
  2698. {
  2699. 'src': (traefik_certs_dumper_dumped_certificates_dir_path + '/' + matrix_server_fqn_matrix + '/privatekey.key'),
  2700. 'dst': '/privatekey.key',
  2701. 'options': 'ro',
  2702. },
  2703. ] if (matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] and traefik_certs_dumper_enabled and matrix_coturn_tls_enabled and (matrix_coturn_tls_cert_path and matrix_coturn_tls_key_path)) else []
  2704. )
  2705. }}
  2706. matrix_coturn_systemd_required_services_list: |
  2707. {{
  2708. [devture_systemd_docker_base_docker_service_name]
  2709. +
  2710. ([traefik_certs_dumper_identifier + '-wait-for-domain@' + matrix_server_fqn_matrix + '.service'] if matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] and traefik_certs_dumper_enabled and matrix_coturn_tls_enabled else [])
  2711. }}
  2712. ######################################################################
  2713. #
  2714. # /matrix-coturn
  2715. #
  2716. ######################################################################
  2717. ######################################################################
  2718. #
  2719. # matrix-dimension
  2720. #
  2721. ######################################################################
  2722. matrix_dimension_enabled: false
  2723. matrix_dimension_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  2724. matrix_dimension_scheme: "{{ 'https' if matrix_playbook_ssl_enabled else 'http' }}"
  2725. matrix_dimension_hostname: "{{ matrix_server_fqn_dimension }}"
  2726. matrix_dimension_container_network: "{{ matrix_addons_container_network }}"
  2727. # Dimension is connected both to `matrix_addons_homeserver_container_network` and `matrix_homeserver_container_network`,
  2728. # because `matrix_dimension_homeserver_clientServerUrl` and `matrix_dimension_homeserver_federationUrl` are potentially
  2729. # going to different places.
  2730. matrix_dimension_container_additional_networks: |
  2731. {{
  2732. (
  2733. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  2734. +
  2735. ([matrix_homeserver_container_network] if matrix_homeserver_container_network != matrix_dimension_container_network else [])
  2736. +
  2737. ([postgres_container_network] if (postgres_enabled and matrix_dimension_database_hostname == postgres_connection_hostname and postgres_container_network != matrix_dimension_container_network) else [])
  2738. +
  2739. ([matrix_playbook_reverse_proxyable_services_additional_network] if matrix_playbook_reverse_proxyable_services_additional_network else [])
  2740. ) | unique
  2741. }}
  2742. matrix_dimension_container_http_host_bind_port: "{{ (matrix_playbook_service_host_bind_interface_prefix ~ '8184') if matrix_playbook_service_host_bind_interface_prefix else '' }}"
  2743. matrix_dimension_container_labels_traefik_enabled: "{{ matrix_playbook_traefik_labels_enabled }}"
  2744. matrix_dimension_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  2745. matrix_dimension_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  2746. matrix_dimension_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  2747. matrix_dimension_homeserver_clientServerUrl: "{{ matrix_addons_homeserver_client_api_url }}"
  2748. matrix_dimension_homeserver_federationUrl: "{{ matrix_homeserver_container_federation_url }}"
  2749. matrix_dimension_homeserver_mediaUrl: "{{ ('https' if matrix_playbook_ssl_enabled else 'http') }}://{{ matrix_server_fqn_matrix }}"
  2750. # Dimension depends both on `matrix_addons_homeserver_systemd_services_list` and on the homeserver service,
  2751. # because `matrix_dimension_homeserver_clientServerUrl` and `matrix_dimension_homeserver_federationUrl` are potentially
  2752. # going to different places.
  2753. matrix_dimension_systemd_required_services_list_auto: |
  2754. {{
  2755. (
  2756. matrix_addons_homeserver_systemd_services_list
  2757. +
  2758. ['matrix-' + matrix_homeserver_implementation + '.service']
  2759. +
  2760. ([postgres_identifier ~ '.service'] if (postgres_enabled and matrix_dimension_database_hostname == postgres_connection_hostname) else [])
  2761. ) | unique
  2762. }}
  2763. # Postgres is the default, except if not using internal Postgres server
  2764. matrix_dimension_database_engine: "{{ 'postgres' if postgres_enabled else 'sqlite' }}"
  2765. matrix_dimension_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  2766. matrix_dimension_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'dimension.db', rounds=655555) | to_uuid }}"
  2767. ######################################################################
  2768. #
  2769. # /matrix-dimension
  2770. #
  2771. ######################################################################
  2772. ######################################################################
  2773. #
  2774. # etke/etherpad
  2775. #
  2776. ######################################################################
  2777. etherpad_enabled: false
  2778. etherpad_identifier: matrix-etherpad
  2779. etherpad_scheme: "{{ 'https' if matrix_playbook_ssl_enabled else 'http' }}"
  2780. etherpad_base_path: "{{ matrix_base_data_path }}/etherpad"
  2781. etherpad_framing_enabled: "{{ matrix_dimension_enabled or jitsi_enabled }}"
  2782. etherpad_hostname: "{{ matrix_server_fqn_etherpad }}"
  2783. etherpad_container_image_self_build: "{{ matrix_architecture not in ['amd64'] }}"
  2784. etherpad_container_http_host_bind_port: "{{ (matrix_playbook_service_host_bind_interface_prefix ~ '9001') if matrix_playbook_service_host_bind_interface_prefix else '' }}"
  2785. etherpad_container_network: "{{ matrix_addons_container_network }}"
  2786. etherpad_container_additional_networks: |
  2787. {{
  2788. (
  2789. ([matrix_playbook_reverse_proxyable_services_additional_network] if matrix_playbook_reverse_proxyable_services_additional_network else [])
  2790. +
  2791. ([postgres_container_network] if postgres_enabled and postgres_container_network != etherpad_container_network else [])
  2792. ) | unique
  2793. }}
  2794. etherpad_container_labels_traefik_enabled: "{{ matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] }}"
  2795. etherpad_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  2796. etherpad_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  2797. etherpad_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  2798. etherpad_systemd_required_services_list: |
  2799. {{
  2800. [devture_systemd_docker_base_docker_service_name]
  2801. +
  2802. ([postgres_identifier ~ '.service'] if postgres_enabled else [])
  2803. }}
  2804. etherpad_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  2805. etherpad_database_name: matrix_etherpad
  2806. etherpad_database_username: matrix_etherpad
  2807. etherpad_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'etherpad.db', rounds=655555) | to_uuid }}"
  2808. ######################################################################
  2809. #
  2810. # /etke/etherpad
  2811. #
  2812. ######################################################################
  2813. ######################################################################
  2814. #
  2815. # matrix-dynamic-dns
  2816. #
  2817. ######################################################################
  2818. matrix_dynamic_dns_enabled: false
  2819. matrix_dynamic_dns_container_network: matrix-dynamic-dns
  2820. ######################################################################
  2821. #
  2822. # /matrix-dynamic-dns
  2823. #
  2824. ######################################################################
  2825. ######################################################################
  2826. #
  2827. # matrix-email2matrix
  2828. #
  2829. ######################################################################
  2830. matrix_email2matrix_enabled: false
  2831. matrix_email2matrix_systemd_required_services_list_auto: |
  2832. {{
  2833. matrix_addons_homeserver_systemd_services_list
  2834. }}
  2835. matrix_email2matrix_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm32', 'arm64'] }}"
  2836. matrix_email2matrix_container_network: "{{ matrix_addons_container_network }}"
  2837. matrix_email2matrix_container_additional_networks_auto: |-
  2838. {{
  2839. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  2840. }}
  2841. ######################################################################
  2842. #
  2843. # /matrix-email2matrix
  2844. #
  2845. ######################################################################
  2846. ######################################################################
  2847. #
  2848. # jitsi
  2849. #
  2850. ######################################################################
  2851. jitsi_enabled: false
  2852. jitsi_architecture: "{{ matrix_architecture }}"
  2853. jitsi_hostname: "{{ matrix_server_fqn_jitsi }}"
  2854. jitsi_identifier: matrix-jitsi
  2855. jitsi_base_path: "{{ matrix_base_data_path }}/jitsi"
  2856. jitsi_uid: "{{ matrix_user_uid }}"
  2857. jitsi_gid: "{{ matrix_user_gid }}"
  2858. jitsi_user_username: "{{ matrix_user_username }}"
  2859. jitsi_web_container_http_host_bind_port: "{{ (matrix_playbook_service_host_bind_interface_prefix ~ '13080') if matrix_playbook_service_host_bind_interface_prefix else '' }}"
  2860. jitsi_web_container_additional_networks_auto: |
  2861. {{
  2862. ([matrix_playbook_reverse_proxyable_services_additional_network] if matrix_playbook_reverse_proxyable_services_additional_network else [])
  2863. }}
  2864. jitsi_jvb_container_colibri_ws_host_bind_port: "{{ (matrix_playbook_service_host_bind_interface_prefix ~ '13090') if matrix_playbook_service_host_bind_interface_prefix else '' }}"
  2865. jitsi_jvb_container_additional_networks_auto: |
  2866. {{
  2867. ([matrix_playbook_reverse_proxyable_services_additional_network] if matrix_playbook_reverse_proxyable_services_additional_network else [])
  2868. }}
  2869. jitsi_prosody_container_http_host_bind_port: "{{ (matrix_playbook_service_host_bind_interface_prefix ~ '5280') if matrix_playbook_service_host_bind_interface_prefix else '' }}"
  2870. jitsi_prosody_container_additional_networks_auto: |
  2871. {{
  2872. ([matrix_playbook_reverse_proxyable_services_additional_network] if matrix_playbook_reverse_proxyable_services_additional_network else [])
  2873. }}
  2874. jitsi_container_labels_traefik_enabled: "{{ matrix_playbook_traefik_labels_enabled }}"
  2875. jitsi_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  2876. jitsi_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  2877. jitsi_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  2878. jitsi_jibri_xmpp_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'jibri', rounds=655555) | to_uuid }}"
  2879. jitsi_jicofo_auth_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'jicofo', rounds=655555) | to_uuid }}"
  2880. jitsi_jvb_auth_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'jvb', rounds=655555) | to_uuid }}"
  2881. jitsi_web_stun_servers: |
  2882. {{
  2883. [
  2884. 'stun:' + matrix_server_fqn_matrix + ':5349',
  2885. 'stun:' + matrix_server_fqn_matrix + ':3478',
  2886. ]
  2887. if matrix_coturn_enabled
  2888. else [ 'stun:meet-jit-si-turnrelay.jitsi.net:443']
  2889. }}
  2890. # The Jitsi instance installed by this playbook is meant for embedding into Matrix clients, so framing is allowed.
  2891. jitsi_web_framing_enabled: true
  2892. # Jitsi (Prosody) only seems to support authenticating with Coturn using `auth-secret`, not `lt-cred-mech`.
  2893. # See: https://prosody.im/doc/coturn
  2894. jitsi_turn_credentials: "{{ matrix_coturn_turn_static_auth_secret if (matrix_coturn_enabled and matrix_coturn_authentication_method == 'auth-secret') else '' }}"
  2895. jitsi_turn_host: "{{ ('turn.' + matrix_server_fqn_matrix) if matrix_coturn_enabled else '' }}"
  2896. jitsi_turns_host: "{{ ('turn.' + matrix_server_fqn_matrix) if matrix_coturn_enabled else '' }}"
  2897. jitsi_turn_port: "{{ matrix_coturn_container_stun_plain_host_bind_port.split(':')[-1] if matrix_coturn_enabled else '' }}"
  2898. jitsi_turns_port: "{{ matrix_coturn_container_stun_tls_host_bind_port.split(':')[-1] if matrix_coturn_enabled else '' }}"
  2899. # If the self-hosted Etherpad instance is available, it will also show up in Jitsi conferences,
  2900. # unless explicitly disabled by setting `jitsi_etherpad_enabled` to false.
  2901. # Falls back to the scalar.vector.im etherpad in case someone sets `jitsi_etherpad_enabled` to true,
  2902. # while also setting `etherpad_enabled` to false.
  2903. jitsi_etherpad_enabled: "{{ etherpad_enabled }}"
  2904. jitsi_etherpad_base: "{{ etherpad_base_url if etherpad_enabled else 'https://scalar.vector.im/etherpad' }}"
  2905. # Allow verification using JWT and matrix-UVS
  2906. jitsi_prosody_auth_matrix_uvs_sync_power_levels: "{{ matrix_user_verification_service_enabled }}"
  2907. jitsi_prosody_auth_matrix_uvs_auth_token: "{{ matrix_user_verification_service_uvs_auth_token }}"
  2908. jitsi_prosody_auth_matrix_uvs_location: "{{ matrix_user_verification_service_container_url }}"
  2909. jitsi_self_check_validate_certificates: "{{ matrix_playbook_ssl_enabled }}"
  2910. # Gravatar is enabled by default upstream, but there's no need to leak data there needlessly
  2911. # when embedding Jitsi in Matrix rooms.
  2912. jitsi_disable_gravatar: true
  2913. ######################################################################
  2914. #
  2915. # /jitsi
  2916. #
  2917. ######################################################################
  2918. ######################################################################
  2919. #
  2920. # matrix-ldap-registration-proxy
  2921. #
  2922. ######################################################################
  2923. # This is only for users with a specific LDAP setup
  2924. matrix_ldap_registration_proxy_enabled: false
  2925. matrix_ldap_registration_proxy_hostname: "{{ matrix_server_fqn_matrix }}"
  2926. matrix_ldap_registration_proxy_matrix_server_url: "{{ matrix_addons_homeserver_client_api_url }}"
  2927. matrix_ldap_registration_proxy_systemd_required_services_list_auto: |
  2928. {{
  2929. matrix_addons_homeserver_systemd_services_list
  2930. }}
  2931. matrix_ldap_registration_proxy_container_network: "{{ matrix_addons_container_network }}"
  2932. matrix_ldap_registration_proxy_container_additional_networks_auto: |-
  2933. {{
  2934. (
  2935. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  2936. +
  2937. ([matrix_playbook_reverse_proxyable_services_additional_network] if (matrix_playbook_reverse_proxyable_services_additional_network and matrix_ldap_registration_proxy_container_labels_traefik_enabled) else [])
  2938. ) | unique
  2939. }}
  2940. matrix_ldap_registration_proxy_container_labels_traefik_enabled: "{{ matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] }}"
  2941. matrix_ldap_registration_proxy_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  2942. matrix_ldap_registration_proxy_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  2943. matrix_ldap_registration_proxy_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  2944. ######################################################################
  2945. #
  2946. # /matrix-ldap-registration-proxy
  2947. #
  2948. ######################################################################
  2949. ########################################################################
  2950. # #
  2951. # exim-relay #
  2952. # #
  2953. ########################################################################
  2954. # We set up an Exim email relay by default.
  2955. # This is so that the homeserver and various other services can send emails through it.
  2956. # To completely disable this service, use: `exim_relay_enabled: false`
  2957. exim_relay_identifier: "matrix-exim-relay"
  2958. exim_relay_base_path: "{{ matrix_base_data_path }}/exim-relay"
  2959. exim_relay_uid: "{{ matrix_user_uid }}"
  2960. exim_relay_gid: "{{ matrix_user_gid }}"
  2961. exim_relay_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm32', 'arm64'] }}"
  2962. exim_relay_hostname: "{{ matrix_server_fqn_matrix }}"
  2963. exim_relay_sender_address: "matrix@{{ exim_relay_hostname }}"
  2964. ########################################################################
  2965. # #
  2966. # /exim-relay #
  2967. # #
  2968. ########################################################################
  2969. ######################################################################
  2970. #
  2971. # matrix-ma1sd
  2972. #
  2973. ######################################################################
  2974. # We no longer install the ma1sd identity server by default.
  2975. #
  2976. # The main reason we used to install ma1sd by default in the past was to
  2977. # prevent Element from talking to the `matrix.org` / `vector.im` identity servers,
  2978. # by forcing it to talk to our own self-hosted (but otherwise useless) identity server instead,
  2979. # thus preventing contact list leaks.
  2980. #
  2981. # Since Element no longer defaults to using a public identity server if another one is not provided,
  2982. # we can stop installing ma1sd.
  2983. matrix_ma1sd_enabled: false
  2984. matrix_ma1sd_scheme: "{{ 'https' if matrix_playbook_ssl_enabled else 'http' }}"
  2985. matrix_ma1sd_hostname: "{{ matrix_server_fqn_matrix }}"
  2986. matrix_ma1sd_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  2987. matrix_ma1sd_container_http_host_bind_port: "{{ (matrix_playbook_service_host_bind_interface_prefix ~ '' ~ matrix_ma1sd_container_port | string) if matrix_playbook_service_host_bind_interface_prefix else '' }}"
  2988. matrix_ma1sd_container_network: "{{ matrix_homeserver_container_network }}"
  2989. matrix_ma1sd_container_additional_networks_auto: |
  2990. {{
  2991. (
  2992. ([matrix_homeserver_container_network] if (matrix_ma1sd_container_network != matrix_homeserver_container_network) else [])
  2993. +
  2994. ([postgres_container_network] if (postgres_enabled and matrix_ma1sd_database_hostname == postgres_connection_hostname and matrix_ma1sd_container_network != postgres_container_network) else [])
  2995. +
  2996. ([exim_relay_container_network] if (exim_relay_enabled and matrix_ma1sd_threepid_medium_email_connectors_smtp_host == exim_relay_identifier and matrix_ma1sd_container_network != exim_relay_container_network) else [])
  2997. +
  2998. ([matrix_playbook_reverse_proxyable_services_additional_network] if (matrix_playbook_reverse_proxyable_services_additional_network and matrix_ma1sd_container_labels_traefik_enabled) else [])
  2999. ) | unique
  3000. }}
  3001. matrix_ma1sd_container_labels_traefik_enabled: "{{ matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] }}"
  3002. matrix_ma1sd_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  3003. matrix_ma1sd_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  3004. matrix_ma1sd_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  3005. # We enable Synapse integration via its Postgres database by default.
  3006. # When using another Identity store, you might wish to disable this and define
  3007. # your own configuration in `matrix_ma1sd_configuration_extension_yaml`.
  3008. matrix_ma1sd_synapsesql_enabled: true
  3009. matrix_ma1sd_synapsesql_type: postgresql
  3010. matrix_ma1sd_synapsesql_connection: //{{ matrix_synapse_database_host }}/{{ matrix_synapse_database_database }}?user={{ matrix_synapse_database_user | urlencode() }}&password={{ matrix_synapse_database_password | urlencode() }}
  3011. matrix_ma1sd_dns_overwrite_enabled: true
  3012. matrix_ma1sd_dns_overwrite_homeserver_client_name: "{{ matrix_server_fqn_matrix }}"
  3013. matrix_ma1sd_dns_overwrite_homeserver_client_value: "{{ matrix_addons_homeserver_client_api_url }}"
  3014. # By default, we send mail through the exim relay service.
  3015. matrix_ma1sd_threepid_medium_email_identity_from: "{{ exim_relay_sender_address }}"
  3016. matrix_ma1sd_threepid_medium_email_connectors_smtp_host: "{{ exim_relay_identifier }}"
  3017. matrix_ma1sd_threepid_medium_email_connectors_smtp_port: 8025
  3018. matrix_ma1sd_threepid_medium_email_connectors_smtp_tls: 0
  3019. matrix_ma1sd_self_check_validate_certificates: "{{ matrix_playbook_ssl_enabled }}"
  3020. matrix_ma1sd_systemd_required_services_list_auto: |
  3021. {{
  3022. matrix_addons_homeserver_systemd_services_list
  3023. +
  3024. ([postgres_identifier ~ '.service'] if (postgres_enabled and matrix_ma1sd_database_hostname == postgres_connection_hostname) else [])
  3025. }}
  3026. matrix_ma1sd_systemd_wanted_services_list_auto: |
  3027. {{
  3028. ([exim_relay_identifier ~ '.service'] if (exim_relay_enabled and matrix_ma1sd_threepid_medium_email_connectors_smtp_host == exim_relay_identifier) else [])
  3029. }}
  3030. # Postgres is the default, except if not using internal Postgres server
  3031. matrix_ma1sd_database_engine: "{{ 'postgres' if postgres_enabled else 'sqlite' }}"
  3032. matrix_ma1sd_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  3033. matrix_ma1sd_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'ma1sd.db', rounds=655555) | to_uuid }}"
  3034. ######################################################################
  3035. #
  3036. # /matrix-ma1sd
  3037. #
  3038. ######################################################################
  3039. ######################################################################
  3040. #
  3041. # matrix-media-repo
  3042. #
  3043. ######################################################################
  3044. matrix_media_repo_enabled: false
  3045. matrix_media_repo_container_network: "{{ matrix_homeserver_container_network }}"
  3046. matrix_media_repo_container_additional_networks: |
  3047. {{
  3048. (
  3049. ([matrix_homeserver_container_network] if (matrix_media_repo_container_network != matrix_homeserver_container_network) else [])
  3050. +
  3051. ([postgres_container_network] if (postgres_enabled and matrix_media_repo_database_hostname == postgres_connection_hostname and postgres_container_network != matrix_media_repo_container_network) else [])
  3052. +
  3053. ([matrix_playbook_reverse_proxyable_services_additional_network] if (matrix_playbook_reverse_proxyable_services_additional_network and matrix_media_repo_container_labels_traefik_enabled) else [])
  3054. ) | unique
  3055. }}
  3056. matrix_media_repo_container_labels_traefik_enabled: "{{ matrix_playbook_traefik_labels_enabled }}"
  3057. matrix_media_repo_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  3058. matrix_media_repo_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  3059. matrix_media_repo_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  3060. matrix_media_repo_container_labels_traefik_internal_media_enabled: "{{ matrix_playbook_internal_matrix_client_api_traefik_entrypoint_enabled }}"
  3061. matrix_media_repo_container_labels_traefik_internal_media_entrypoints: "{{ matrix_playbook_internal_matrix_client_api_traefik_entrypoint_name }}"
  3062. matrix_media_repo_container_labels_traefik_internal_matrix_client_media_enabled: "{{ matrix_playbook_internal_matrix_client_api_traefik_entrypoint_enabled }}"
  3063. matrix_media_repo_container_labels_traefik_internal_matrix_client_media_entrypoints: "{{ matrix_playbook_internal_matrix_client_api_traefik_entrypoint_name }}"
  3064. matrix_media_repo_metrics_proxying_enabled: "{{ matrix_media_repo_metrics_enabled and matrix_metrics_exposure_enabled }}"
  3065. matrix_media_repo_metrics_proxying_hostname: "{{ matrix_metrics_exposure_hostname }}"
  3066. matrix_media_repo_metrics_proxying_path: "{{ matrix_metrics_exposure_path_prefix }}/matrix-media-repo"
  3067. matrix_media_repo_container_labels_traefik_metrics_middleware_basic_auth_enabled: "{{ matrix_metrics_exposure_http_basic_auth_enabled }}"
  3068. matrix_media_repo_container_labels_traefik_metrics_middleware_basic_auth_users: "{{ matrix_metrics_exposure_http_basic_auth_users }}"
  3069. matrix_media_repo_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  3070. matrix_media_repo_database_username: matrix_media_repo
  3071. matrix_media_repo_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mediarepo.db', rounds=655555) | to_uuid }}"
  3072. matrix_media_repo_database_name: matrix_media_repo
  3073. matrix_media_repo_systemd_required_services_list_auto: |
  3074. {{
  3075. matrix_addons_homeserver_systemd_services_list
  3076. +
  3077. ([postgres_identifier ~ '.service'] if postgres_enabled and matrix_media_repo_database_hostname == postgres_connection_hostname else [])
  3078. }}
  3079. matrix_media_repo_generate_signing_key: "{{ matrix_homeserver_implementation == 'synapse' or matrix_homeserver_implementation == 'dendrite'}}"
  3080. matrix_media_repo_homeserver_signing_key: "{{ matrix_media_repo_synapse_signing_key if matrix_homeserver_implementation == 'synapse' else (matrix_media_repo_dendrite_signing_key if matrix_homeserver_implementation == 'dendrite' else '') }}"
  3081. matrix_media_repo_synapse_signing_key: "{{ matrix_synapse_config_dir_path }}/{{ matrix_server_fqn_matrix }}.signing.key"
  3082. matrix_media_repo_dendrite_signing_key: "{{ matrix_dendrite_config_dir_path }}/{{ matrix_server_fqn_matrix }}.signing.pem"
  3083. # Auto configured server setup by the playbook
  3084. matrix_media_repo_homeservers_auto:
  3085. - # Keep the dash from this line.
  3086. # This should match the server_name of your homeserver, and the Host header
  3087. # provided to the media repo.
  3088. name: "{{ matrix_domain }}"
  3089. # The base URL to where the homeserver can actually be reached by MMR.
  3090. csApi: "{{ matrix_homeserver_container_url }}"
  3091. # The number of consecutive failures in calling this homeserver before the
  3092. # media repository will start backing off. This defaults to 10 if not given.
  3093. backoffAt: 10
  3094. # The admin API interface supported by the homeserver. MMR uses a subset of the admin API
  3095. # during certain operations, like attempting to purge media from a room or validating server
  3096. # admin status. This should be set to one of "synapse", "dendrite", or "matrix". When set
  3097. # to "matrix", most functionality requiring the admin API will not work.
  3098. adminApiKind: "{{ 'synapse' if matrix_homeserver_implementation == 'synapse' else ('dendrite' if matrix_homeserver_implementation == 'dendrite' else 'matrix') }}"
  3099. # The signing key to use for authorizing outbound federation requests. If not specified,
  3100. # requests will not be authorized. See https://docs.t2bot.io/matrix-media-repo/v1.3.5/installation/signing-key/
  3101. # for details.
  3102. signingKeyPath: "{{ '/config/' + matrix_media_repo_identifier + '.signing.key' if matrix_media_repo_generate_signing_key else '' }}"
  3103. matrix_media_repo_homeserver_federation_enabled: "{{ matrix_homeserver_federation_enabled }}"
  3104. ######################################################################
  3105. #
  3106. # /matrix-media-repo
  3107. #
  3108. ######################################################################
  3109. ########################################################################
  3110. # #
  3111. # postgres #
  3112. # #
  3113. ########################################################################
  3114. # To completely disable installing Postgres, use `postgres_enabled: false`.
  3115. postgres_identifier: matrix-postgres
  3116. postgres_architecture: "{{ matrix_architecture }}"
  3117. postgres_base_path: "{{ matrix_base_data_path }}/postgres"
  3118. postgres_uid: "{{ matrix_user_uid }}"
  3119. postgres_gid: "{{ matrix_user_gid }}"
  3120. postgres_connection_username: matrix
  3121. postgres_db_name: matrix
  3122. postgres_systemd_services_to_stop_for_maintenance_list_auto: "{{ devture_systemd_service_manager_services_list_auto | map(attribute='name') | reject('equalto', (postgres_identifier + '.service')) }}"
  3123. postgres_max_connections: "{{ 500 if matrix_synapse_workers_enabled else 200 }}"
  3124. postgres_managed_databases_auto: |
  3125. {{
  3126. ([{
  3127. 'name': matrix_synapse_database_database,
  3128. 'username': matrix_synapse_database_user,
  3129. 'password': matrix_synapse_database_password,
  3130. }] if (matrix_synapse_enabled and matrix_synapse_database_host == postgres_connection_hostname) else [])
  3131. +
  3132. ([{
  3133. 'name': matrix_dendrite_federation_api_database,
  3134. 'username': matrix_dendrite_database_user,
  3135. 'password': matrix_dendrite_database_password,
  3136. },{
  3137. 'name': matrix_dendrite_key_server_database,
  3138. 'username': matrix_dendrite_database_user,
  3139. 'password': matrix_dendrite_database_password,
  3140. },{
  3141. 'name': matrix_dendrite_media_api_database,
  3142. 'username': matrix_dendrite_database_user,
  3143. 'password': matrix_dendrite_database_password,
  3144. },{
  3145. 'name': matrix_dendrite_room_database,
  3146. 'username': matrix_dendrite_database_user,
  3147. 'password': matrix_dendrite_database_password,
  3148. },{
  3149. 'name': matrix_dendrite_sync_api_database,
  3150. 'username': matrix_dendrite_database_user,
  3151. 'password': matrix_dendrite_database_password,
  3152. },{
  3153. 'name': matrix_dendrite_user_api_database,
  3154. 'username': matrix_dendrite_database_user,
  3155. 'password': matrix_dendrite_database_password,
  3156. },{
  3157. 'name': matrix_dendrite_relay_api_database,
  3158. 'username': matrix_dendrite_database_user,
  3159. 'password': matrix_dendrite_database_password,
  3160. },{
  3161. 'name': matrix_dendrite_push_server_database,
  3162. 'username': matrix_dendrite_database_user,
  3163. 'password': matrix_dendrite_database_password,
  3164. },{
  3165. 'name': matrix_dendrite_mscs_database,
  3166. 'username': matrix_dendrite_database_user,
  3167. 'password': matrix_dendrite_database_password,
  3168. }] if (matrix_dendrite_enabled and matrix_dendrite_database_hostname == postgres_connection_hostname) else [])
  3169. +
  3170. ([{
  3171. 'name': matrix_authentication_service_config_database_database,
  3172. 'username': matrix_authentication_service_config_database_username,
  3173. 'password': matrix_authentication_service_config_database_password,
  3174. }] if (matrix_authentication_service_enabled and matrix_authentication_service_config_database_host == postgres_connection_hostname) else [])
  3175. +
  3176. ([{
  3177. 'name': matrix_sliding_sync_database_name,
  3178. 'username': matrix_sliding_sync_database_username,
  3179. 'password': matrix_sliding_sync_database_password,
  3180. }] if (matrix_sliding_sync_enabled) else [])
  3181. +
  3182. ([{
  3183. 'name': matrix_ma1sd_database_name,
  3184. 'username': matrix_ma1sd_database_username,
  3185. 'password': matrix_ma1sd_database_password,
  3186. }] if (matrix_ma1sd_enabled and matrix_ma1sd_database_engine == 'postgres' and matrix_ma1sd_database_hostname == postgres_connection_hostname) else [])
  3187. +
  3188. ([{
  3189. 'name': matrix_bot_matrix_reminder_bot_database_name,
  3190. 'username': matrix_bot_matrix_reminder_bot_database_username,
  3191. 'password': matrix_bot_matrix_reminder_bot_database_password,
  3192. }] if (matrix_bot_matrix_reminder_bot_enabled and matrix_bot_matrix_reminder_bot_database_engine == 'postgres' and matrix_bot_matrix_reminder_bot_database_hostname == postgres_connection_hostname) else [])
  3193. +
  3194. ([{
  3195. 'name': matrix_bot_honoroit_database_name,
  3196. 'username': matrix_bot_honoroit_database_username,
  3197. 'password': matrix_bot_honoroit_database_password,
  3198. }] if (matrix_bot_honoroit_enabled and matrix_bot_honoroit_database_engine == 'postgres' and matrix_bot_honoroit_database_hostname == postgres_connection_hostname) else [])
  3199. +
  3200. ([{
  3201. 'name': matrix_postmoogle_database_name,
  3202. 'username': matrix_postmoogle_database_username,
  3203. 'password': matrix_postmoogle_database_password,
  3204. }] if (matrix_postmoogle_enabled and matrix_postmoogle_database_engine == 'postgres' and matrix_postmoogle_database_hostname == postgres_connection_hostname) else [])
  3205. +
  3206. ([{
  3207. 'name': matrix_bot_maubot_database_name,
  3208. 'username': matrix_bot_maubot_database_username,
  3209. 'password': matrix_bot_maubot_database_password,
  3210. }] if (matrix_bot_maubot_enabled and matrix_bot_maubot_database_engine == 'postgres' and matrix_bot_maubot_database_hostname == postgres_connection_hostname) else [])
  3211. +
  3212. ([{
  3213. 'name': matrix_bot_buscarron_database_name,
  3214. 'username': matrix_bot_buscarron_database_username,
  3215. 'password': matrix_bot_buscarron_database_password,
  3216. }] if (matrix_bot_buscarron_enabled and matrix_bot_buscarron_database_engine == 'postgres' and matrix_bot_buscarron_database_hostname == postgres_connection_hostname) else [])
  3217. +
  3218. ([{
  3219. 'name': matrix_registration_database_name,
  3220. 'username': matrix_registration_database_username,
  3221. 'password': matrix_registration_database_password,
  3222. }] if (matrix_registration_enabled and matrix_registration_database_engine == 'postgres' and matrix_registration_database_hostname == postgres_connection_hostname) else [])
  3223. +
  3224. ([{
  3225. 'name': matrix_appservice_discord_database_name,
  3226. 'username': matrix_appservice_discord_database_username,
  3227. 'password': matrix_appservice_discord_database_password,
  3228. }] if (matrix_appservice_discord_enabled and matrix_appservice_discord_database_engine == 'postgres' and matrix_appservice_discord_database_hostname == postgres_connection_hostname) else [])
  3229. +
  3230. ([{
  3231. 'name': matrix_appservice_draupnir_for_all_database_name,
  3232. 'username': matrix_appservice_draupnir_for_all_database_username,
  3233. 'password': matrix_appservice_draupnir_for_all_database_password,
  3234. }] if (matrix_appservice_draupnir_for_all_enabled and matrix_appservice_draupnir_for_all_database_hostname == postgres_connection_hostname) else [])
  3235. +
  3236. ([{
  3237. 'name': matrix_appservice_slack_database_name,
  3238. 'username': matrix_appservice_slack_database_username,
  3239. 'password': matrix_appservice_slack_database_password,
  3240. }] if (matrix_appservice_slack_enabled and matrix_appservice_slack_database_engine == 'postgres' and matrix_appservice_slack_database_hostname == postgres_connection_hostname) else [])
  3241. +
  3242. ([{
  3243. 'name': matrix_appservice_irc_database_name,
  3244. 'username': matrix_appservice_irc_database_username,
  3245. 'password': matrix_appservice_irc_database_password,
  3246. }] if (matrix_appservice_irc_enabled and matrix_appservice_irc_database_engine == 'postgres' and matrix_appservice_irc_database_hostname == postgres_connection_hostname) else [])
  3247. +
  3248. ([{
  3249. 'name': matrix_appservice_kakaotalk_database_name,
  3250. 'username': matrix_appservice_kakaotalk_database_username,
  3251. 'password': matrix_appservice_kakaotalk_database_password,
  3252. }] if (matrix_appservice_kakaotalk_enabled and matrix_appservice_kakaotalk_database_engine == 'postgres' and matrix_appservice_kakaotalk_database_hostname == postgres_connection_hostname) else [])
  3253. +
  3254. ([{
  3255. 'name': matrix_beeper_linkedin_database_name,
  3256. 'username': matrix_beeper_linkedin_database_username,
  3257. 'password': matrix_beeper_linkedin_database_password,
  3258. }] if (matrix_beeper_linkedin_enabled and matrix_beeper_linkedin_database_engine == 'postgres' and matrix_beeper_linkedin_database_hostname == postgres_connection_hostname) else [])
  3259. +
  3260. ([{
  3261. 'name': matrix_go_skype_bridge_database_name,
  3262. 'username': matrix_go_skype_bridge_database_username,
  3263. 'password': matrix_go_skype_bridge_database_password,
  3264. }] if (matrix_go_skype_bridge_enabled and matrix_go_skype_bridge_database_engine == 'postgres' and matrix_go_skype_bridge_database_hostname == postgres_connection_hostname) else [])
  3265. +
  3266. ([{
  3267. 'name': matrix_wechat_database_name,
  3268. 'username': matrix_wechat_database_username,
  3269. 'password': matrix_wechat_database_password,
  3270. }] if (matrix_wechat_enabled and matrix_wechat_database_engine == 'postgres' and matrix_wechat_database_hostname == postgres_connection_hostname) else [])
  3271. +
  3272. ([{
  3273. 'name': matrix_mautrix_facebook_database_name,
  3274. 'username': matrix_mautrix_facebook_database_username,
  3275. 'password': matrix_mautrix_facebook_database_password,
  3276. }] if (matrix_mautrix_facebook_enabled and matrix_mautrix_facebook_database_engine == 'postgres' and matrix_mautrix_facebook_database_hostname == postgres_connection_hostname) else [])
  3277. +
  3278. ([{
  3279. 'name': matrix_mautrix_hangouts_database_name,
  3280. 'username': matrix_mautrix_hangouts_database_username,
  3281. 'password': matrix_mautrix_hangouts_database_password,
  3282. }] if (matrix_mautrix_hangouts_enabled and matrix_mautrix_hangouts_database_engine == 'postgres' and matrix_mautrix_hangouts_database_hostname == postgres_connection_hostname) else [])
  3283. +
  3284. ([{
  3285. 'name': matrix_mautrix_googlechat_database_name,
  3286. 'username': matrix_mautrix_googlechat_database_username,
  3287. 'password': matrix_mautrix_googlechat_database_password,
  3288. }] if (matrix_mautrix_googlechat_enabled and matrix_mautrix_googlechat_database_engine == 'postgres' and matrix_mautrix_googlechat_database_hostname == postgres_connection_hostname) else [])
  3289. +
  3290. ([{
  3291. 'name': matrix_mautrix_instagram_database_name,
  3292. 'username': matrix_mautrix_instagram_database_username,
  3293. 'password': matrix_mautrix_instagram_database_password,
  3294. }] if (matrix_mautrix_instagram_enabled and matrix_mautrix_instagram_database_engine == 'postgres' and matrix_mautrix_instagram_database_hostname == postgres_connection_hostname) else [])
  3295. +
  3296. ([{
  3297. 'name': matrix_mautrix_signal_database_name,
  3298. 'username': matrix_mautrix_signal_database_username,
  3299. 'password': matrix_mautrix_signal_database_password,
  3300. }] if (matrix_mautrix_signal_enabled and matrix_mautrix_signal_database_engine == 'postgres' and matrix_mautrix_signal_database_hostname == postgres_connection_hostname) else [])
  3301. +
  3302. ([{
  3303. 'name': matrix_mautrix_meta_messenger_database_name,
  3304. 'username': matrix_mautrix_meta_messenger_database_username,
  3305. 'password': matrix_mautrix_meta_messenger_database_password,
  3306. }] if (matrix_mautrix_meta_messenger_enabled and matrix_mautrix_meta_messenger_database_engine == 'postgres' and matrix_mautrix_meta_messenger_database_hostname == postgres_connection_hostname) else [])
  3307. +
  3308. ([{
  3309. 'name': matrix_mautrix_meta_instagram_database_name,
  3310. 'username': matrix_mautrix_meta_instagram_database_username,
  3311. 'password': matrix_mautrix_meta_instagram_database_password,
  3312. }] if (matrix_mautrix_meta_instagram_enabled and matrix_mautrix_meta_instagram_database_engine == 'postgres' and matrix_mautrix_meta_instagram_database_hostname == postgres_connection_hostname) else [])
  3313. +
  3314. ([{
  3315. 'name': matrix_mautrix_wsproxy_syncproxy_database_name,
  3316. 'username': matrix_mautrix_wsproxy_syncproxy_database_username,
  3317. 'password': matrix_mautrix_wsproxy_syncproxy_database_password,
  3318. }] if (matrix_mautrix_wsproxy_enabled and matrix_mautrix_wsproxy_syncproxy_database_engine == 'postgres' and matrix_mautrix_wsproxy_syncproxy_database_hostname == 'matrix-postgres') else [])
  3319. +
  3320. ([{
  3321. 'name': matrix_mautrix_telegram_database_name,
  3322. 'username': matrix_mautrix_telegram_database_username,
  3323. 'password': matrix_mautrix_telegram_database_password,
  3324. }] if (matrix_mautrix_telegram_enabled and matrix_mautrix_telegram_database_engine == 'postgres' and matrix_mautrix_telegram_database_hostname == postgres_connection_hostname) else [])
  3325. +
  3326. ([{
  3327. 'name': matrix_mautrix_twitter_database_name,
  3328. 'username': matrix_mautrix_twitter_database_username,
  3329. 'password': matrix_mautrix_twitter_database_password,
  3330. }] if (matrix_mautrix_twitter_enabled and matrix_mautrix_twitter_database_engine == 'postgres' and matrix_mautrix_twitter_database_hostname == postgres_connection_hostname) else [])
  3331. +
  3332. ([{
  3333. 'name': matrix_mautrix_gmessages_database_name,
  3334. 'username': matrix_mautrix_gmessages_database_username,
  3335. 'password': matrix_mautrix_gmessages_database_password,
  3336. }] if (matrix_mautrix_gmessages_enabled and matrix_mautrix_gmessages_database_engine == 'postgres' and matrix_mautrix_gmessages_database_hostname == postgres_connection_hostname) else [])
  3337. +
  3338. ([{
  3339. 'name': matrix_mautrix_whatsapp_database_name,
  3340. 'username': matrix_mautrix_whatsapp_database_username,
  3341. 'password': matrix_mautrix_whatsapp_database_password,
  3342. }] if (matrix_mautrix_whatsapp_enabled and matrix_mautrix_whatsapp_database_engine == 'postgres' and matrix_mautrix_whatsapp_database_hostname == postgres_connection_hostname) else [])
  3343. +
  3344. ([{
  3345. 'name': matrix_mautrix_discord_database_name,
  3346. 'username': matrix_mautrix_discord_database_username,
  3347. 'password': matrix_mautrix_discord_database_password,
  3348. }] if (matrix_mautrix_discord_enabled and matrix_mautrix_discord_database_engine == 'postgres' and matrix_mautrix_discord_database_hostname == postgres_connection_hostname) else [])
  3349. +
  3350. ([{
  3351. 'name': matrix_mautrix_slack_database_name,
  3352. 'username': matrix_mautrix_slack_database_username,
  3353. 'password': matrix_mautrix_slack_database_password,
  3354. }] if (matrix_mautrix_slack_enabled and matrix_mautrix_slack_database_engine == 'postgres' and matrix_mautrix_slack_database_hostname == postgres_connection_hostname) else [])
  3355. +
  3356. ([{
  3357. 'name': matrix_mx_puppet_slack_database_name,
  3358. 'username': matrix_mx_puppet_slack_database_username,
  3359. 'password': matrix_mx_puppet_slack_database_password,
  3360. }] if (matrix_mx_puppet_slack_enabled and matrix_mx_puppet_slack_database_engine == 'postgres' and matrix_mx_puppet_slack_database_hostname == postgres_connection_hostname) else [])
  3361. +
  3362. ([{
  3363. 'name': matrix_mx_puppet_twitter_database_name,
  3364. 'username': matrix_mx_puppet_twitter_database_username,
  3365. 'password': matrix_mx_puppet_twitter_database_password,
  3366. }] if (matrix_mx_puppet_twitter_enabled and matrix_mx_puppet_twitter_database_engine == 'postgres' and matrix_mx_puppet_twitter_database_hostname == postgres_connection_hostname) else [])
  3367. +
  3368. ([{
  3369. 'name': matrix_mx_puppet_instagram_database_name,
  3370. 'username': matrix_mx_puppet_instagram_database_username,
  3371. 'password': matrix_mx_puppet_instagram_database_password,
  3372. }] if (matrix_mx_puppet_instagram_enabled and matrix_mx_puppet_instagram_database_engine == 'postgres' and matrix_mx_puppet_instagram_database_hostname == postgres_connection_hostname) else [])
  3373. +
  3374. ([{
  3375. 'name': matrix_mx_puppet_discord_database_name,
  3376. 'username': matrix_mx_puppet_discord_database_username,
  3377. 'password': matrix_mx_puppet_discord_database_password,
  3378. }] if (matrix_mx_puppet_discord_enabled and matrix_mx_puppet_discord_database_engine == 'postgres' and matrix_mx_puppet_discord_database_hostname == postgres_connection_hostname) else [])
  3379. +
  3380. ([{
  3381. 'name': matrix_mx_puppet_steam_database_name,
  3382. 'username': matrix_mx_puppet_steam_database_username,
  3383. 'password': matrix_mx_puppet_steam_database_password,
  3384. }] if (matrix_mx_puppet_steam_enabled and matrix_mx_puppet_steam_database_engine == 'postgres' and matrix_mx_puppet_steam_database_hostname == postgres_connection_hostname) else [])
  3385. +
  3386. ([{
  3387. 'name': matrix_mx_puppet_groupme_database_name,
  3388. 'username': matrix_mx_puppet_groupme_database_username,
  3389. 'password': matrix_mx_puppet_groupme_database_password,
  3390. }] if (matrix_mx_puppet_groupme_enabled and matrix_mx_puppet_groupme_database_engine == 'postgres' and matrix_mx_puppet_groupme_database_hostname == postgres_connection_hostname) else [])
  3391. +
  3392. ([{
  3393. 'name': matrix_dimension_database_name,
  3394. 'username': matrix_dimension_database_username,
  3395. 'password': matrix_dimension_database_password,
  3396. }] if (matrix_dimension_enabled and matrix_dimension_database_engine == 'postgres' and matrix_dimension_database_hostname == postgres_connection_hostname) else [])
  3397. +
  3398. ([{
  3399. 'name': etherpad_database_name,
  3400. 'username': etherpad_database_username,
  3401. 'password': etherpad_database_password,
  3402. }] if (etherpad_enabled and etherpad_database_engine == 'postgres' and etherpad_database_hostname == postgres_connection_hostname) else [])
  3403. +
  3404. ([{
  3405. 'name': prometheus_postgres_exporter_database_name,
  3406. 'username': prometheus_postgres_exporter_database_username,
  3407. 'password': prometheus_postgres_exporter_database_password,
  3408. }] if (prometheus_postgres_exporter_enabled and prometheus_postgres_exporter_database_hostname == postgres_connection_hostname) else [])
  3409. +
  3410. ([{
  3411. 'name': matrix_media_repo_database_name,
  3412. 'username': matrix_media_repo_database_username,
  3413. 'password': matrix_media_repo_database_password,
  3414. }] if (matrix_media_repo_enabled and matrix_media_repo_database_hostname == postgres_connection_hostname) else [])
  3415. }}
  3416. ########################################################################
  3417. # #
  3418. # /postgres #
  3419. # #
  3420. ########################################################################
  3421. ########################################################################
  3422. # #
  3423. # postgres_backup #
  3424. # #
  3425. ########################################################################
  3426. postgres_backup_enabled: false
  3427. postgres_backup_identifier: matrix-postgres-backup
  3428. postgres_backup_architecture: "{{ matrix_architecture }}"
  3429. postgres_backup_base_path: "{{ matrix_base_data_path }}/postgres-backup"
  3430. postgres_backup_systemd_required_services_list_auto: |
  3431. {{
  3432. ([(postgres_identifier + '.service')] if (postgres_enabled and postgres_backup_connection_hostname == postgres_connection_hostname) else [])
  3433. }}
  3434. postgres_backup_container_network: "{{ (postgres_container_network if (postgres_enabled and postgres_backup_connection_hostname == postgres_connection_hostname) else postgres_backup_identifier) }}"
  3435. postgres_backup_container_additional_networks_auto: |-
  3436. {{
  3437. ([postgres_container_network] if (postgres_enabled and postgres_backup_connection_hostname == postgres_connection_hostname and postgres_backup_container_network != postgres_container_network) else [])
  3438. }}
  3439. postgres_backup_uid: "{{ matrix_user_uid }}"
  3440. postgres_backup_gid: "{{ matrix_user_gid }}"
  3441. postgres_backup_connection_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  3442. postgres_backup_connection_port: "{{ postgres_connection_port if postgres_enabled else 5432 }}"
  3443. postgres_backup_connection_username: "{{ postgres_connection_username if postgres_enabled else '' }}"
  3444. postgres_backup_connection_password: "{{ postgres_connection_password if postgres_enabled else '' }}"
  3445. postgres_backup_postgres_data_path: "{{ postgres_data_path if postgres_enabled else '' }}"
  3446. postgres_backup_postgres_role_include_name: galaxy/postgres
  3447. postgres_backup_databases: "{{ postgres_managed_databases | map(attribute='name') if postgres_enabled else [] }}"
  3448. ########################################################################
  3449. # #
  3450. # /postgres_backup #
  3451. # #
  3452. ########################################################################
  3453. ######################################################################
  3454. #
  3455. # matrix-sygnal
  3456. #
  3457. ######################################################################
  3458. # Most people don't need their own push-server, because they also need their own app to utilize it from.
  3459. matrix_sygnal_enabled: false
  3460. matrix_sygnal_metrics_prometheus_enabled: "{{ prometheus_enabled or matrix_metrics_exposure_enabled }}"
  3461. matrix_sygnal_hostname: "{{ matrix_server_fqn_sygnal }}"
  3462. matrix_sygnal_container_network: "{{ matrix_homeserver_container_network }}"
  3463. matrix_sygnal_container_additional_networks: "{{ [matrix_playbook_reverse_proxyable_services_additional_network] if matrix_playbook_reverse_proxyable_services_additional_network else [] }}"
  3464. matrix_sygnal_container_http_host_bind_port: "{{ (matrix_playbook_service_host_bind_interface_prefix ~ '6000') if matrix_playbook_service_host_bind_interface_prefix else '' }}"
  3465. matrix_sygnal_container_labels_traefik_enabled: "{{ matrix_playbook_traefik_labels_enabled }}"
  3466. matrix_sygnal_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  3467. matrix_sygnal_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  3468. matrix_sygnal_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  3469. ######################################################################
  3470. #
  3471. # /matrix-sygnal
  3472. #
  3473. ######################################################################
  3474. ######################################################################
  3475. #
  3476. # etke/ntfy
  3477. #
  3478. ######################################################################
  3479. ntfy_enabled: false
  3480. ntfy_identifier: matrix-ntfy
  3481. ntfy_base_path: "{{ matrix_base_data_path }}/ntfy"
  3482. ntfy_uid: "{{ matrix_user_uid }}"
  3483. ntfy_gid: "{{ matrix_user_gid }}"
  3484. ntfy_hostname: "{{ matrix_server_fqn_ntfy }}"
  3485. ntfy_container_additional_networks: "{{ [matrix_playbook_reverse_proxyable_services_additional_network] if matrix_playbook_reverse_proxyable_services_additional_network else [] }}"
  3486. ntfy_container_http_host_bind_port: "{{ (matrix_playbook_service_host_bind_interface_prefix ~ '2586') if matrix_playbook_service_host_bind_interface_prefix else '' }}"
  3487. ntfy_container_labels_traefik_enabled: "{{ matrix_playbook_traefik_labels_enabled }}"
  3488. ntfy_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  3489. ntfy_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  3490. ntfy_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  3491. ntfy_visitor_request_limit_exempt_hosts_hostnames_auto: |
  3492. {{
  3493. [matrix_server_fqn_matrix]
  3494. }}
  3495. ######################################################################
  3496. #
  3497. # /etky/ntfy
  3498. #
  3499. ######################################################################
  3500. ######################################################################
  3501. #
  3502. # redis
  3503. #
  3504. ######################################################################
  3505. redis_enabled: "{{ not (keydb_enabled or valkey_enabled) and (matrix_synapse_workers_enabled or (matrix_hookshot_enabled and matrix_hookshot_encryption_enabled)) }}"
  3506. redis_identifier: matrix-redis
  3507. redis_uid: "{{ matrix_user_uid }}"
  3508. redis_gid: "{{ matrix_user_gid }}"
  3509. redis_base_path: "{{ matrix_base_data_path }}/redis"
  3510. ######################################################################
  3511. #
  3512. # /redis
  3513. #
  3514. ######################################################################
  3515. ######################################################################
  3516. #
  3517. # keydb
  3518. #
  3519. ######################################################################
  3520. keydb_enabled: false
  3521. keydb_identifier: matrix-keydb
  3522. keydb_uid: "{{ matrix_user_uid }}"
  3523. keydb_gid: "{{ matrix_user_gid }}"
  3524. keydb_base_path: "{{ matrix_base_data_path }}/keydb"
  3525. keydb_arch: |-
  3526. {{
  3527. ({
  3528. 'amd64': 'x86_64',
  3529. 'arm32': 'arm32',
  3530. 'arm64': 'arm64',
  3531. })[matrix_architecture]
  3532. }}
  3533. ######################################################################
  3534. #
  3535. # keydb
  3536. #
  3537. ######################################################################
  3538. ######################################################################
  3539. #
  3540. # valkey
  3541. #
  3542. ######################################################################
  3543. valkey_enabled: "{{ matrix_synapse_workers_enabled or (matrix_hookshot_enabled and matrix_hookshot_encryption_enabled) }}"
  3544. valkey_identifier: matrix-valkey
  3545. valkey_uid: "{{ matrix_user_uid }}"
  3546. valkey_gid: "{{ matrix_user_gid }}"
  3547. valkey_base_path: "{{ matrix_base_data_path }}/valkey"
  3548. valkey_arch: "{{ matrix_architecture }}"
  3549. ######################################################################
  3550. #
  3551. # valkey
  3552. #
  3553. ######################################################################
  3554. ######################################################################
  3555. #
  3556. # matrix-client-element
  3557. #
  3558. ######################################################################
  3559. # By default, this playbook installs the Element Web on the `matrix_server_fqn_element` domain.
  3560. # If you wish to connect to your Matrix server by other means, you may wish to disable this.
  3561. matrix_client_element_enabled: true
  3562. matrix_client_element_scheme: "{{ 'https' if matrix_playbook_ssl_enabled else 'http' }}"
  3563. matrix_client_element_container_image_self_build: "{{ matrix_architecture not in ['arm64', 'amd64'] }}"
  3564. matrix_client_element_container_http_host_bind_port: "{{ (matrix_playbook_service_host_bind_interface_prefix ~ '8765') if matrix_playbook_service_host_bind_interface_prefix else '' }}"
  3565. matrix_client_element_container_network: "{{ matrix_addons_container_network }}"
  3566. matrix_client_element_container_additional_networks: "{{ [matrix_playbook_reverse_proxyable_services_additional_network] if (matrix_client_element_container_labels_traefik_enabled and matrix_playbook_reverse_proxyable_services_additional_network) else [] }}"
  3567. matrix_client_element_container_labels_traefik_enabled: "{{ matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] }}"
  3568. matrix_client_element_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  3569. matrix_client_element_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  3570. matrix_client_element_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  3571. matrix_client_element_container_labels_traefik_compression_middleware_enabled: "{{ matrix_playbook_reverse_proxy_traefik_middleware_compression_enabled }}"
  3572. matrix_client_element_container_labels_traefik_compression_middleware_name: "{{ matrix_playbook_reverse_proxy_traefik_middleware_compression_name if matrix_playbook_reverse_proxy_traefik_middleware_compression_enabled else '' }}"
  3573. matrix_client_element_default_hs_url: "{{ matrix_homeserver_url }}"
  3574. matrix_client_element_default_is_url: "{{ matrix_identity_server_url }}"
  3575. # Use Dimension if enabled, otherwise fall back to Scalar
  3576. matrix_client_element_integrations_ui_url: "{{ matrix_dimension_integrations_ui_url if matrix_dimension_enabled else 'https://scalar.vector.im/' }}"
  3577. matrix_client_element_integrations_rest_url: "{{ matrix_dimension_integrations_rest_url if matrix_dimension_enabled else 'https://scalar.vector.im/api' }}"
  3578. matrix_client_element_integrations_widgets_urls: "{{ matrix_dimension_integrations_widgets_urls if matrix_dimension_enabled else ['https://scalar.vector.im/api'] }}"
  3579. matrix_client_element_integrations_jitsi_widget_url: "{{ matrix_dimension_integrations_jitsi_widget_url if matrix_dimension_enabled else 'https://scalar.vector.im/api/widgets/jitsi.html' }}"
  3580. matrix_client_element_self_check_validate_certificates: "{{ matrix_playbook_ssl_enabled }}"
  3581. matrix_client_element_registration_enabled: "{{ matrix_synapse_enable_registration }}"
  3582. matrix_client_element_enable_presence_by_hs_url: |-
  3583. {{
  3584. none
  3585. if matrix_synapse_presence_enabled
  3586. else {matrix_client_element_default_hs_url: false}
  3587. }}
  3588. matrix_client_element_jitsi_preferred_domain: "{{ matrix_server_fqn_jitsi if jitsi_enabled else '' }}"
  3589. ######################################################################
  3590. #
  3591. # /matrix-client-element
  3592. #
  3593. ######################################################################
  3594. ######################################################################
  3595. #
  3596. # matrix-client-hydrogen
  3597. #
  3598. ######################################################################
  3599. matrix_client_hydrogen_enabled: false
  3600. matrix_client_hydrogen_container_image_self_build: "{{ matrix_architecture not in ['arm64', 'amd64'] }}"
  3601. matrix_client_hydrogen_container_http_host_bind_port: "{{ (matrix_playbook_service_host_bind_interface_prefix ~ '8768') if matrix_playbook_service_host_bind_interface_prefix else '' }}"
  3602. matrix_client_hydrogen_container_network: "{{ matrix_addons_container_network }}"
  3603. matrix_client_hydrogen_container_additional_networks: "{{ [matrix_playbook_reverse_proxyable_services_additional_network] if (matrix_client_hydrogen_container_labels_traefik_enabled and matrix_playbook_reverse_proxyable_services_additional_network) else [] }}"
  3604. matrix_client_hydrogen_container_labels_traefik_enabled: "{{ matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] }}"
  3605. matrix_client_hydrogen_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  3606. matrix_client_hydrogen_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  3607. matrix_client_hydrogen_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  3608. matrix_client_hydrogen_container_labels_traefik_compression_middleware_enabled: "{{ matrix_playbook_reverse_proxy_traefik_middleware_compression_enabled }}"
  3609. matrix_client_hydrogen_container_labels_traefik_compression_middleware_name: "{{ matrix_playbook_reverse_proxy_traefik_middleware_compression_name if matrix_playbook_reverse_proxy_traefik_middleware_compression_enabled else '' }}"
  3610. matrix_client_hydrogen_scheme: "{{ 'https' if matrix_playbook_ssl_enabled else 'http' }}"
  3611. matrix_client_hydrogen_default_hs_url: "{{ matrix_homeserver_url }}"
  3612. matrix_client_hydrogen_self_check_validate_certificates: "{{ matrix_playbook_ssl_enabled }}"
  3613. ######################################################################
  3614. #
  3615. # /matrix-client-hydrogen
  3616. #
  3617. ######################################################################
  3618. ######################################################################
  3619. #
  3620. # matrix-client-cinny
  3621. #
  3622. ######################################################################
  3623. matrix_client_cinny_enabled: false
  3624. matrix_client_cinny_container_image_self_build: "{{ matrix_architecture not in ['arm64', 'amd64'] }}"
  3625. matrix_client_cinny_container_http_host_bind_port: "{{ (matrix_playbook_service_host_bind_interface_prefix ~ '8080') if matrix_playbook_service_host_bind_interface_prefix else '' }}"
  3626. matrix_client_cinny_container_network: "{{ matrix_addons_container_network }}"
  3627. matrix_client_cinny_container_additional_networks: "{{ [matrix_playbook_reverse_proxyable_services_additional_network] if (matrix_client_cinny_container_labels_traefik_enabled and matrix_playbook_reverse_proxyable_services_additional_network) else [] }}"
  3628. matrix_client_cinny_container_labels_traefik_enabled: "{{ matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] }}"
  3629. matrix_client_cinny_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  3630. matrix_client_cinny_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  3631. matrix_client_cinny_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  3632. matrix_client_cinny_container_labels_traefik_compression_middleware_enabled: "{{ matrix_playbook_reverse_proxy_traefik_middleware_compression_enabled }}"
  3633. matrix_client_cinny_container_labels_traefik_compression_middleware_name: "{{ matrix_playbook_reverse_proxy_traefik_middleware_compression_name if matrix_playbook_reverse_proxy_traefik_middleware_compression_enabled else '' }}"
  3634. matrix_client_cinny_scheme: "{{ 'https' if matrix_playbook_ssl_enabled else 'http' }}"
  3635. matrix_client_cinny_default_hs_url: "{{ matrix_homeserver_url }}"
  3636. matrix_client_cinny_self_check_validate_certificates: "{{ matrix_playbook_ssl_enabled }}"
  3637. ######################################################################
  3638. #
  3639. # /matrix-client-cinny
  3640. #
  3641. ######################################################################
  3642. ######################################################################
  3643. #
  3644. # matrix-client-schildichat
  3645. #
  3646. ######################################################################
  3647. matrix_client_schildichat_enabled: false
  3648. matrix_client_schildichat_scheme: "{{ 'https' if matrix_playbook_ssl_enabled else 'http' }}"
  3649. matrix_client_schildichat_container_image_self_build: "{{ matrix_architecture not in ['arm64', 'amd64'] }}"
  3650. matrix_client_schildichat_container_http_host_bind_port: "{{ (matrix_playbook_service_host_bind_interface_prefix ~ '8765') if matrix_playbook_service_host_bind_interface_prefix else '' }}"
  3651. matrix_client_schildichat_container_network: "{{ matrix_addons_container_network }}"
  3652. matrix_client_schildichat_container_additional_networks: "{{ [matrix_playbook_reverse_proxyable_services_additional_network] if (matrix_client_schildichat_container_labels_traefik_enabled and matrix_playbook_reverse_proxyable_services_additional_network) else [] }}"
  3653. matrix_client_schildichat_container_labels_traefik_enabled: "{{ matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] }}"
  3654. matrix_client_schildichat_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  3655. matrix_client_schildichat_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  3656. matrix_client_schildichat_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  3657. matrix_client_schildichat_default_hs_url: "{{ matrix_homeserver_url }}"
  3658. matrix_client_schildichat_default_is_url: "{{ matrix_identity_server_url }}"
  3659. # Use Dimension if enabled, otherwise fall back to Scalar
  3660. matrix_client_schildichat_integrations_ui_url: "{{ matrix_dimension_integrations_ui_url if matrix_dimension_enabled else 'https://scalar.vector.im/' }}"
  3661. matrix_client_schildichat_integrations_rest_url: "{{ matrix_dimension_integrations_rest_url if matrix_dimension_enabled else 'https://scalar.vector.im/api' }}"
  3662. matrix_client_schildichat_integrations_widgets_urls: "{{ matrix_dimension_integrations_widgets_urls if matrix_dimension_enabled else ['https://scalar.vector.im/api'] }}"
  3663. matrix_client_schildichat_integrations_jitsi_widget_url: "{{ matrix_dimension_integrations_jitsi_widget_url if matrix_dimension_enabled else 'https://scalar.vector.im/api/widgets/jitsi.html' }}"
  3664. matrix_client_schildichat_self_check_validate_certificates: "{{ matrix_playbook_ssl_enabled }}"
  3665. matrix_client_schildichat_registration_enabled: "{{ matrix_synapse_enable_registration }}"
  3666. matrix_client_schildichat_enable_presence_by_hs_url: |-
  3667. {{
  3668. none
  3669. if matrix_synapse_presence_enabled
  3670. else {matrix_client_schildichat_default_hs_url: false}
  3671. }}
  3672. matrix_client_schildichat_jitsi_preferred_domain: "{{ matrix_server_fqn_jitsi if jitsi_enabled else '' }}"
  3673. ######################################################################
  3674. #
  3675. # /matrix-client-schildichat
  3676. #
  3677. ######################################################################
  3678. ######################################################################
  3679. #
  3680. # matrix-synapse
  3681. #
  3682. ######################################################################
  3683. matrix_synapse_enabled: "{{ matrix_homeserver_implementation == 'synapse' }}"
  3684. matrix_synapse_username: "{{ matrix_user_username }}"
  3685. matrix_synapse_uid: "{{ matrix_user_uid }}"
  3686. matrix_synapse_gid: "{{ matrix_user_gid }}"
  3687. matrix_synapse_federation_enabled: "{{ matrix_homeserver_federation_enabled }}"
  3688. matrix_synapse_container_image_self_build: "{{ matrix_architecture not in ['arm64', 'amd64'] }}"
  3689. matrix_synapse_account_threepid_delegates_msisdn_mas1sd_url: "{{ ('http://matrix-ma1sd:' + matrix_ma1sd_container_port| string) }}"
  3690. # When ma1sd is enabled, we can use it to validate phone numbers. It's something that the homeserver cannot do by itself.
  3691. matrix_synapse_account_threepid_delegates_msisdn: "{{ matrix_synapse_account_threepid_delegates_msisdn_mas1sd_url if matrix_ma1sd_enabled else '' }}"
  3692. # For exposing the Matrix Federation API's TLS port (HTTPS) to the internet on all network interfaces.
  3693. matrix_synapse_container_federation_api_tls_host_bind_port: "{{ matrix_federation_public_port if (matrix_synapse_federation_enabled and matrix_synapse_tls_federation_listener_enabled) else '' }}"
  3694. #
  3695. # For exposing the Synapse Metrics API's port (plain HTTP) to the local host.
  3696. matrix_synapse_container_metrics_api_host_bind_port: "{{ (matrix_playbook_service_host_bind_interface_prefix ~ '9100') if matrix_synapse_metrics_enabled and matrix_playbook_service_host_bind_interface_prefix else '' }}"
  3697. #
  3698. # For exposing the Synapse Manhole port (plain HTTP) to the local host.
  3699. matrix_synapse_container_manhole_api_host_bind_port: "{{ (matrix_playbook_service_host_bind_interface_prefix ~ '9000') if matrix_synapse_metrics_enabled and matrix_playbook_service_host_bind_interface_prefix else '' }}"
  3700. matrix_synapse_container_network: "{{ matrix_homeserver_container_network }}"
  3701. matrix_synapse_container_additional_networks_auto: |
  3702. {{
  3703. (
  3704. ([matrix_playbook_reverse_proxyable_services_additional_network] if matrix_synapse_container_labels_traefik_enabled and matrix_playbook_reverse_proxyable_services_additional_network else [])
  3705. +
  3706. ([postgres_container_network] if (postgres_enabled and postgres_container_network != matrix_synapse_container_network and matrix_synapse_database_host == postgres_connection_hostname) else [])
  3707. +
  3708. ([redis_container_network] if matrix_synapse_redis_enabled and matrix_synapse_redis_host == redis_identifier else [])
  3709. +
  3710. ([keydb_container_network] if matrix_synapse_redis_enabled and matrix_synapse_redis_host == keydb_identifier else [])
  3711. +
  3712. ([valkey_container_network] if matrix_synapse_redis_enabled and matrix_synapse_redis_host == valkey_identifier else [])
  3713. +
  3714. ([exim_relay_container_network] if (exim_relay_enabled and matrix_synapse_email_enabled and matrix_synapse_email_smtp_host == exim_relay_identifier and matrix_synapse_container_network != exim_relay_container_network) else [])
  3715. +
  3716. ([matrix_ma1sd_container_network] if (matrix_ma1sd_enabled and matrix_synapse_account_threepid_delegates_msisdn == matrix_synapse_account_threepid_delegates_msisdn_mas1sd_url and matrix_synapse_container_network != matrix_ma1sd_container_network) else [])
  3717. ) | unique
  3718. }}
  3719. matrix_synapse_container_labels_traefik_enabled: "{{ matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] }}"
  3720. matrix_synapse_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  3721. matrix_synapse_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  3722. matrix_synapse_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  3723. matrix_synapse_container_labels_traefik_hostname: "{{ matrix_server_fqn_matrix }}"
  3724. matrix_synapse_container_labels_traefik_compression_middleware_enabled: "{{ matrix_playbook_reverse_proxy_traefik_middleware_compression_enabled }}"
  3725. matrix_synapse_container_labels_traefik_compression_middleware_name: "{{ matrix_playbook_reverse_proxy_traefik_middleware_compression_name if matrix_playbook_reverse_proxy_traefik_middleware_compression_enabled else '' }}"
  3726. matrix_synapse_container_labels_matrix_labels_enabled: "{{ not matrix_synapse_workers_enabled }}"
  3727. matrix_synapse_container_labels_public_client_root_redirection_enabled: "{{ matrix_synapse_container_labels_public_client_root_redirection_url != '' }}"
  3728. matrix_synapse_container_labels_public_client_root_redirection_url: "{{ (('https://' if matrix_playbook_ssl_enabled else 'http://') + matrix_server_fqn_element) if matrix_client_element_enabled else '' }}"
  3729. matrix_synapse_container_labels_public_client_synapse_admin_api_enabled: "{{ matrix_synapse_admin_enabled }}"
  3730. matrix_synapse_container_labels_public_federation_api_traefik_hostname: "{{ matrix_server_fqn_matrix_federation }}"
  3731. matrix_synapse_container_labels_public_federation_api_traefik_entrypoints: "{{ matrix_federation_traefik_entrypoint_name }}"
  3732. matrix_synapse_container_labels_public_federation_api_traefik_tls: "{{ matrix_federation_traefik_entrypoint_tls }}"
  3733. matrix_synapse_container_labels_public_federation_api_traefik_tls_certResolver: "{{ matrix_synapse_container_labels_traefik_tls_certResolver }}" # noqa var-naming
  3734. matrix_synapse_container_labels_public_metrics_middleware_basic_auth_enabled: "{{ matrix_metrics_exposure_http_basic_auth_enabled }}"
  3735. matrix_synapse_container_labels_public_metrics_middleware_basic_auth_users: "{{ matrix_metrics_exposure_http_basic_auth_users }}"
  3736. matrix_synapse_container_labels_internal_client_api_enabled: "{{ matrix_playbook_internal_matrix_client_api_traefik_entrypoint_enabled }}"
  3737. matrix_synapse_container_labels_internal_client_api_traefik_entrypoints: "{{ matrix_playbook_internal_matrix_client_api_traefik_entrypoint_name }}"
  3738. # For exposing the Synapse worker (and metrics) ports to the local host.
  3739. matrix_synapse_workers_container_host_bind_address: "{{ matrix_playbook_service_host_bind_interface_prefix[0:-1] if (matrix_synapse_workers_enabled and matrix_playbook_service_host_bind_interface_prefix) else '' }}"
  3740. matrix_synapse_database_host: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  3741. matrix_synapse_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'synapse.db', rounds=655555) | to_uuid }}"
  3742. matrix_synapse_macaroon_secret_key: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'synapse.mac', rounds=655555) | to_uuid }}"
  3743. # We do not enable TLS in Synapse by default, since it's handled by Traefik.
  3744. matrix_synapse_tls_federation_listener_enabled: false
  3745. matrix_synapse_tls_certificate_path: ~
  3746. matrix_synapse_tls_private_key_path: ~
  3747. matrix_synapse_federation_port_openid_resource_required: "{{ not matrix_synapse_federation_enabled and (matrix_dimension_enabled or matrix_ma1sd_enabled or matrix_user_verification_service_enabled) }}"
  3748. matrix_synapse_metrics_enabled: "{{ prometheus_enabled or matrix_metrics_exposure_enabled }}"
  3749. matrix_synapse_metrics_proxying_enabled: "{{ matrix_synapse_metrics_enabled and matrix_metrics_exposure_enabled }}"
  3750. matrix_synapse_metrics_proxying_hostname: "{{ matrix_metrics_exposure_hostname }}"
  3751. matrix_synapse_metrics_proxying_path_prefix: "{{ matrix_metrics_exposure_path_prefix }}/synapse"
  3752. matrix_synapse_email_enabled: "{{ exim_relay_enabled }}"
  3753. matrix_synapse_email_smtp_host: "{{ exim_relay_identifier }}"
  3754. matrix_synapse_email_smtp_port: 8025
  3755. matrix_synapse_email_smtp_require_transport_security: false
  3756. matrix_synapse_email_notif_from: "Matrix <{{ exim_relay_sender_address }}>"
  3757. matrix_synapse_turn_uris: |
  3758. {{
  3759. ([
  3760. 'turns:' + matrix_server_fqn_matrix + '?transport=udp',
  3761. 'turns:' + matrix_server_fqn_matrix + '?transport=tcp',
  3762. ] if matrix_coturn_enabled and matrix_coturn_tls_enabled else [])
  3763. +
  3764. ([
  3765. 'turn:' + matrix_server_fqn_matrix + '?transport=udp',
  3766. 'turn:' + matrix_server_fqn_matrix + '?transport=tcp',
  3767. ] if matrix_coturn_enabled else [])
  3768. }}
  3769. matrix_synapse_turn_shared_secret: "{{ matrix_coturn_turn_static_auth_secret if (matrix_coturn_enabled and matrix_coturn_authentication_method == 'auth-secret') else '' }}"
  3770. matrix_synapse_turn_username: "{{ matrix_coturn_lt_cred_mech_username if (matrix_coturn_enabled and matrix_coturn_authentication_method == 'lt-cred-mech') else '' }}"
  3771. matrix_synapse_turn_password: "{{ matrix_coturn_lt_cred_mech_password if (matrix_coturn_enabled and matrix_coturn_authentication_method == 'lt-cred-mech') else '' }}"
  3772. matrix_synapse_self_check_validate_certificates: "{{ matrix_playbook_ssl_enabled }}"
  3773. matrix_synapse_systemd_required_services_list_auto: |
  3774. {{
  3775. ([postgres_identifier ~ '.service'] if (postgres_enabled and postgres_container_network != matrix_synapse_container_network and matrix_synapse_database_host == postgres_connection_hostname) else [])
  3776. +
  3777. ([redis_identifier ~ '.service'] if matrix_synapse_redis_enabled and matrix_synapse_redis_host == redis_identifier else [])
  3778. +
  3779. ([keydb_identifier ~ '.service'] if matrix_synapse_redis_enabled and matrix_synapse_redis_host == keydb_identifier else [])
  3780. +
  3781. ([valkey_identifier ~ '.service'] if matrix_synapse_redis_enabled and matrix_synapse_redis_host == valkey_identifier else [])
  3782. +
  3783. (['matrix-goofys.service'] if matrix_s3_media_store_enabled else [])
  3784. +
  3785. (['matrix-authentication-service.service'] if (matrix_authentication_service_enabled and matrix_synapse_experimental_features_msc3861_enabled) else [])
  3786. }}
  3787. matrix_synapse_systemd_wanted_services_list_auto: |
  3788. {{
  3789. (['matrix-coturn.service'] if matrix_coturn_enabled else [])
  3790. +
  3791. ([exim_relay_identifier ~ '.service'] if exim_relay_enabled else [])
  3792. }}
  3793. # Synapse workers (used for parallel load-scaling) need Redis for IPC.
  3794. matrix_synapse_redis_enabled: "{{ redis_enabled or keydb_enabled or valkey_enabled }}"
  3795. matrix_synapse_redis_host: "{{ valkey_identifier if valkey_enabled else (redis_identifier if redis_enabled else (keydb_identifier if keydb_enabled else '')) }}"
  3796. matrix_synapse_redis_password: "{{ valkey_connection_password if valkey_enabled else (redis_connection_password if redis_enabled else (keydb_connection_password if keydb_enabled else '')) }}"
  3797. matrix_synapse_container_extra_arguments_auto: "{{ matrix_homeserver_container_extra_arguments_auto }}"
  3798. matrix_synapse_app_service_config_files_auto: "{{ matrix_homeserver_app_service_config_files_auto }}"
  3799. # Disable creation of media repository Synapse worker when using media-repo
  3800. matrix_synapse_ext_media_repo_enabled: "{{ matrix_media_repo_enabled }}"
  3801. # Enable Synapse statistics reporting when using synapse-usage-exporter
  3802. matrix_synapse_report_stats: "{{ matrix_synapse_usage_exporter_enabled }}"
  3803. matrix_synapse_report_stats_endpoint: "http://{{ matrix_synapse_usage_exporter_identifier }}:{{ matrix_synapse_usage_exporter_container_port | string }}/report-usage-stats/push"
  3804. matrix_synapse_experimental_features_msc3861_enabled: "{{ matrix_authentication_service_enabled and not matrix_authentication_service_migration_in_progress }}"
  3805. matrix_synapse_experimental_features_msc3861_issuer: "{{ matrix_authentication_service_http_base_container_url if matrix_authentication_service_enabled else '' }}"
  3806. matrix_synapse_experimental_features_msc3861_client_secret: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'syn.ngauth.cs', rounds=655555) | to_uuid }}"
  3807. matrix_synapse_experimental_features_msc3861_admin_token: "{{ matrix_authentication_service_config_matrix_secret if matrix_authentication_service_enabled else '' }}"
  3808. matrix_synapse_experimental_features_msc3861_account_management_url: "{{ matrix_authentication_service_account_management_url if matrix_authentication_service_enabled else '' }}"
  3809. matrix_synapse_experimental_features_msc4108_enabled: "{{ matrix_authentication_service_enabled and not matrix_authentication_service_migration_in_progress }}"
  3810. # Disable password authentication when delegating authentication to Matrix Authentication Service.
  3811. # Unless this is done, Synapse fails on startup with:
  3812. # > Error in configuration at 'password_config.enabled':
  3813. # > Password auth cannot be enabled when OAuth delegation is enabled
  3814. matrix_synapse_password_config_enabled: "{{ not matrix_synapse_experimental_features_msc3861_enabled }}"
  3815. matrix_synapse_register_user_script_matrix_authentication_service_path: "{{ matrix_authentication_service_bin_path }}/register-user"
  3816. ######################################################################
  3817. #
  3818. # /matrix-synapse
  3819. #
  3820. ######################################################################
  3821. ######################################################################
  3822. #
  3823. # matrix-synapse-auto-compressor
  3824. #
  3825. ######################################################################
  3826. # Not enabled by default, for now
  3827. matrix_synapse_auto_compressor_enabled: false
  3828. matrix_synapse_auto_compressor_uid: "{{ matrix_user_uid }}"
  3829. matrix_synapse_auto_compressor_gid: "{{ matrix_user_gid }}"
  3830. matrix_synapse_auto_compressor_postgres_image: "{{ postgres_container_image_to_use }}"
  3831. matrix_synapse_auto_compressor_container_image_self_build: "{{ matrix_architecture not in ['amd64'] }}"
  3832. matrix_synapse_auto_compressor_container_network: "{{ (postgres_container_network if (postgres_enabled and matrix_synapse_auto_compressor_database_hostname == matrix_synapse_database_host and matrix_synapse_database_host == postgres_connection_hostname) else 'matrix-synapse-auto-compressor') }}"
  3833. matrix_synapse_auto_compressor_database_username: "{{ matrix_synapse_database_user if matrix_synapse_enabled else '' }}"
  3834. matrix_synapse_auto_compressor_database_password: "{{ matrix_synapse_database_password if matrix_synapse_enabled else '' }}"
  3835. matrix_synapse_auto_compressor_database_hostname: "{{ matrix_synapse_database_host if matrix_synapse_enabled else '' }}"
  3836. matrix_synapse_auto_compressor_database_port: "{{ matrix_synapse_database_port if matrix_synapse_enabled else '5432' }}"
  3837. matrix_synapse_auto_compressor_database_name: "{{ matrix_synapse_database_database if matrix_synapse_enabled else '' }}"
  3838. matrix_synapse_auto_compressor_systemd_required_services_list_auto: |
  3839. {{
  3840. ([postgres_identifier ~ '.service'] if (matrix_synapse_auto_compressor_container_network == postgres_container_network) else [])
  3841. }}
  3842. ######################################################################
  3843. #
  3844. # /matrix-synapse-auto-compressor
  3845. #
  3846. ######################################################################
  3847. ######################################################################
  3848. #
  3849. # matrix-synapse-reverse-proxy-companion
  3850. #
  3851. ######################################################################
  3852. matrix_synapse_reverse_proxy_companion_enabled: "{{ matrix_synapse_enabled and matrix_synapse_workers_enabled }}"
  3853. matrix_synapse_reverse_proxy_companion_container_network: "{{ matrix_synapse_container_network }}"
  3854. matrix_synapse_reverse_proxy_companion_container_additional_networks_auto: |
  3855. {{
  3856. (
  3857. ([matrix_playbook_reverse_proxyable_services_additional_network] if matrix_synapse_reverse_proxy_companion_container_labels_traefik_enabled and matrix_playbook_reverse_proxyable_services_additional_network else [])
  3858. +
  3859. ([matrix_prometheus_nginxlog_exporter_container_network] if (matrix_prometheus_nginxlog_exporter_enabled and matrix_prometheus_nginxlog_exporter_container_network != matrix_synapse_reverse_proxy_companion_container_network) else [])
  3860. +
  3861. ([] if matrix_homeserver_container_network in ['', matrix_synapse_reverse_proxy_companion_container_network] else [matrix_homeserver_container_network])
  3862. ) | unique
  3863. }}
  3864. matrix_synapse_reverse_proxy_companion_client_api_client_max_body_size_mb: "{{ matrix_synapse_max_upload_size_mb }}"
  3865. matrix_synapse_reverse_proxy_companion_container_client_api_host_bind_port: "{{ (matrix_playbook_service_host_bind_interface_prefix ~ '8008') if matrix_playbook_service_host_bind_interface_prefix else '' }}"
  3866. matrix_synapse_reverse_proxy_companion_container_federation_api_host_bind_port: "{{ (matrix_playbook_service_host_bind_interface_prefix ~ '8048') if matrix_playbook_service_host_bind_interface_prefix else '' }}"
  3867. matrix_synapse_reverse_proxy_companion_container_labels_traefik_enabled: "{{ matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] }}"
  3868. matrix_synapse_reverse_proxy_companion_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  3869. matrix_synapse_reverse_proxy_companion_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  3870. matrix_synapse_reverse_proxy_companion_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  3871. matrix_synapse_reverse_proxy_companion_container_labels_traefik_hostname: "{{ matrix_server_fqn_matrix }}"
  3872. matrix_synapse_reverse_proxy_companion_container_labels_traefik_compression_middleware_enabled: "{{ matrix_playbook_reverse_proxy_traefik_middleware_compression_enabled }}"
  3873. matrix_synapse_reverse_proxy_companion_container_labels_traefik_compression_middleware_name: "{{ matrix_playbook_reverse_proxy_traefik_middleware_compression_name if matrix_playbook_reverse_proxy_traefik_middleware_compression_enabled else '' }}"
  3874. matrix_synapse_reverse_proxy_companion_container_labels_public_client_synapse_client_api_enabled: "{{ matrix_synapse_container_labels_public_client_synapse_client_api_enabled }}"
  3875. matrix_synapse_reverse_proxy_companion_container_labels_public_client_synapse_admin_api_enabled: "{{ matrix_synapse_container_labels_public_client_synapse_admin_api_enabled }}"
  3876. matrix_synapse_reverse_proxy_companion_container_labels_public_federation_api_traefik_entrypoints: "{{ matrix_synapse_container_labels_public_federation_api_traefik_entrypoints }}"
  3877. matrix_synapse_reverse_proxy_companion_container_labels_public_federation_api_traefik_tls: "{{ matrix_synapse_container_labels_public_federation_api_traefik_tls }}"
  3878. matrix_synapse_reverse_proxy_companion_container_labels_internal_client_api_enabled: "{{ matrix_synapse_container_labels_internal_client_api_enabled }}"
  3879. matrix_synapse_reverse_proxy_companion_container_labels_internal_client_api_traefik_entrypoints: "{{ matrix_synapse_container_labels_internal_client_api_traefik_entrypoints }}"
  3880. matrix_synapse_reverse_proxy_companion_synapse_workers_enabled: "{{ matrix_synapse_workers_enabled }}"
  3881. matrix_synapse_reverse_proxy_companion_synapse_workers_list: "{{ matrix_synapse_workers_enabled_list }}"
  3882. matrix_synapse_reverse_proxy_companion_synapse_room_worker_client_server_locations: "{{ matrix_synapse_workers_room_worker_client_server_endpoints }}"
  3883. matrix_synapse_reverse_proxy_companion_synapse_room_worker_federation_locations: "{{ matrix_synapse_workers_room_worker_federation_endpoints }}"
  3884. matrix_synapse_reverse_proxy_companion_synapse_sync_worker_client_server_locations: "{{ matrix_synapse_workers_sync_worker_client_server_endpoints }}"
  3885. matrix_synapse_reverse_proxy_companion_synapse_client_reader_client_server_locations: "{{ matrix_synapse_workers_client_reader_client_server_endpoints }}"
  3886. matrix_synapse_reverse_proxy_companion_synapse_federation_reader_federation_locations: "{{ matrix_synapse_workers_federation_reader_federation_endpoints }}"
  3887. matrix_synapse_reverse_proxy_companion_synapse_generic_worker_client_server_locations: "{{ matrix_synapse_workers_generic_worker_client_server_endpoints }}"
  3888. matrix_synapse_reverse_proxy_companion_synapse_generic_worker_federation_locations: "{{ matrix_synapse_workers_generic_worker_federation_endpoints }}"
  3889. matrix_synapse_reverse_proxy_companion_synapse_stream_writer_typing_stream_worker_client_server_locations: "{{ matrix_synapse_workers_stream_writer_typing_stream_worker_client_server_endpoints }}"
  3890. matrix_synapse_reverse_proxy_companion_synapse_stream_writer_to_device_stream_worker_client_server_locations: "{{ matrix_synapse_workers_stream_writer_to_device_stream_worker_client_server_endpoints }}"
  3891. matrix_synapse_reverse_proxy_companion_synapse_stream_writer_account_data_stream_worker_client_server_locations: "{{ matrix_synapse_workers_stream_writer_account_data_stream_worker_client_server_endpoints }}"
  3892. matrix_synapse_reverse_proxy_companion_synapse_stream_writer_receipts_stream_worker_client_server_locations: "{{ matrix_synapse_workers_stream_writer_receipts_stream_worker_client_server_endpoints }}"
  3893. matrix_synapse_reverse_proxy_companion_synapse_stream_writer_presence_stream_worker_client_server_locations: "{{ matrix_synapse_workers_stream_writer_presence_stream_worker_client_server_endpoints }}"
  3894. matrix_synapse_reverse_proxy_companion_synapse_media_repository_locations: "{{matrix_synapse_workers_media_repository_endpoints|default([]) }}"
  3895. matrix_synapse_reverse_proxy_companion_synapse_user_dir_locations: "{{ matrix_synapse_workers_user_dir_worker_client_server_endpoints|default([]) }}"
  3896. matrix_synapse_reverse_proxy_companion_access_log_syslog_integration_enabled: "{{ matrix_prometheus_nginxlog_exporter_enabled }}"
  3897. matrix_synapse_reverse_proxy_companion_access_log_syslog_integration_server_port: "{{ (matrix_prometheus_nginxlog_exporter_identifier | string +':'+ matrix_prometheus_nginxlog_exporter_container_syslog_port | string) | default('') }}"
  3898. ######################################################################
  3899. #
  3900. # /matrix-synapse-reverse-proxy-companion
  3901. #
  3902. ######################################################################
  3903. ######################################################################
  3904. #
  3905. # matrix-synapse-admin
  3906. #
  3907. ######################################################################
  3908. matrix_synapse_admin_enabled: false
  3909. matrix_synapse_admin_container_http_host_bind_port: "{{ (matrix_playbook_service_host_bind_interface_prefix ~ '8766') if matrix_playbook_service_host_bind_interface_prefix else '' }}"
  3910. matrix_synapse_admin_container_image_self_build: "{{ matrix_architecture not in ['arm64', 'amd64'] }}"
  3911. matrix_synapse_admin_container_network: "{{ matrix_addons_container_network }}"
  3912. matrix_synapse_admin_container_additional_networks: "{{ [matrix_playbook_reverse_proxyable_services_additional_network] if matrix_playbook_reverse_proxyable_services_additional_network else [] }}"
  3913. matrix_synapse_admin_container_labels_traefik_enabled: "{{ matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] }}"
  3914. matrix_synapse_admin_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  3915. matrix_synapse_admin_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  3916. matrix_synapse_admin_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  3917. matrix_synapse_admin_config_asManagedUsers_auto: |
  3918. {{
  3919. ([
  3920. '^@'+(matrix_alertmanager_receiver_config_matrix_user_id_localpart | default('') | regex_escape) +':'+(matrix_domain | regex_escape)+'$',
  3921. ] if matrix_alertmanager_receiver_enabled else [])
  3922. +
  3923. ([
  3924. '^@'+(matrix_appservice_draupnir_for_all_user_prefix | default('') | regex_escape) +'_[a-zA-Z0-9]+:'+(matrix_domain | regex_escape)+'$',
  3925. ] if matrix_appservice_draupnir_for_all_enabled else [])
  3926. +
  3927. ([
  3928. '^@'+(matrix_bot_baibot_config_user_mxid_localpart | default('') | regex_escape) +':'+(matrix_domain | regex_escape)+'$',
  3929. ] if matrix_bot_baibot_enabled else [])
  3930. +
  3931. ([
  3932. '^@'+(matrix_bot_buscarron_login | default('') | regex_escape) +':'+(matrix_domain | regex_escape)+'$',
  3933. ] if matrix_bot_buscarron_enabled else [])
  3934. +
  3935. ([
  3936. '^@'+(matrix_bot_chatgpt_matrix_bot_username_localpart | default('') | regex_escape) +':'+(matrix_domain | regex_escape)+'$',
  3937. ] if matrix_bot_chatgpt_enabled else [])
  3938. +
  3939. ([
  3940. '^@'+(matrix_bot_honoroit_login | default('') | regex_escape) +':'+(matrix_domain | regex_escape)+'$',
  3941. ] if matrix_bot_honoroit_enabled else [])
  3942. +
  3943. ([
  3944. '^@'+(matrix_bot_matrix_registration_bot_matrix_user_id_localpart | default('') | regex_escape) +':'+(matrix_domain | regex_escape)+'$',
  3945. ] if matrix_bot_matrix_registration_bot_enabled else [])
  3946. +
  3947. ([
  3948. '^@'+(matrix_bot_matrix_reminder_bot_matrix_user_id_localpart | default('') | regex_escape) +':'+(matrix_domain | regex_escape)+'$',
  3949. ] if matrix_bot_matrix_reminder_bot_enabled else [])
  3950. +
  3951. ([
  3952. '^@'+(matrix_bot_maubot_login | default('') | regex_escape) +':'+(matrix_domain | regex_escape)+'$',
  3953. ] if matrix_bot_maubot_enabled else [])
  3954. +
  3955. ([
  3956. '^@'+(matrix_postmoogle_login | default('') | regex_escape) +':'+(matrix_domain | regex_escape)+'$',
  3957. ] if matrix_postmoogle_enabled else [])
  3958. +
  3959. ([
  3960. '^@_discord_[a-zA-Z0-9]+:'+(matrix_domain | regex_escape)+'$',
  3961. ] if matrix_appservice_discord_enabled else [])
  3962. +
  3963. ([
  3964. '^@'+(matrix_appservice_slack_bot_name | default('') | regex_escape)+':'+(matrix_domain | regex_escape)+'$',
  3965. '^@'+(matrix_appservice_slack_user_prefix | default('') | regex_escape)+'[a-zA-Z0-9]+:'+(matrix_domain | regex_escape)+'$',
  3966. ] if matrix_appservice_slack_enabled else [])
  3967. +
  3968. ([
  3969. '^@'+(matrix_appservice_webhooks_bot_name | default('') | regex_escape)+':'+(matrix_domain | regex_escape)+'$',
  3970. '^@'+(matrix_appservice_webhooks_user_prefix | default('') | regex_escape)+'[a-zA-Z0-9]+:'+(matrix_domain | regex_escape)+'$',
  3971. ] if matrix_appservice_webhooks_enabled else [])
  3972. +
  3973. ([
  3974. '^@'+(matrix_beeper_linkedin_appservice_bot_username | default('') | regex_escape)+':'+(matrix_domain | regex_escape)+'$',
  3975. '^@linkedin_[a-zA-Z0-9]+:'+(matrix_domain | regex_escape)+'$',
  3976. ] if matrix_beeper_linkedin_enabled else [])
  3977. +
  3978. ([
  3979. '^@'+(matrix_go_skype_bridge_appservice_bot_username | default('') | regex_escape)+':'+(matrix_domain | regex_escape)+'$',
  3980. '^@skype_[a-zA-Z0-9]+:'+(matrix_domain | regex_escape)+'$',
  3981. ] if matrix_go_skype_bridge_enabled else [])
  3982. +
  3983. ([
  3984. '^@heisenbridge:'+(matrix_domain | regex_escape)+'$',
  3985. '^@hbirc_[a-zA-Z0-9]+:'+(matrix_domain | regex_escape)+'$',
  3986. ] if matrix_heisenbridge_enabled else [])
  3987. +
  3988. ([
  3989. '^@hookshot:'+(matrix_domain | regex_escape)+'$',
  3990. '^@_github_[a-zA-Z0-9]+:'+(matrix_domain | regex_escape)+'$',
  3991. '^@_gitlab_[a-zA-Z0-9]+:'+(matrix_domain | regex_escape)+'$',
  3992. '^@_jira_[a-zA-Z0-9]+:'+(matrix_domain | regex_escape)+'$',
  3993. '^@'+(matrix_hookshot_generic_userIdPrefix | default('') | regex_escape)+'[a-zA-Z0-9]+:'+(matrix_domain | regex_escape)+'$',
  3994. ] if matrix_hookshot_enabled else [])
  3995. +
  3996. ([
  3997. '^@'+(matrix_mautrix_discord_appservice_bot_username | default('') | regex_escape)+':'+(matrix_domain | regex_escape)+'$',
  3998. '^@discord_[0-9]+:'+(matrix_domain | regex_escape)+'$',
  3999. ] if matrix_mautrix_discord_enabled else [])
  4000. +
  4001. ([
  4002. '^@'+(matrix_mautrix_facebook_appservice_bot_username | default('') | regex_escape)+':'+(matrix_domain | regex_escape)+'$',
  4003. '^@facebook_[a-zA-Z0-9]+:'+(matrix_domain | regex_escape)+'$',
  4004. ] if matrix_mautrix_facebook_enabled else [])
  4005. +
  4006. ([
  4007. '^@'+(matrix_mautrix_gmessages_appservice_bot_username | default('') | regex_escape)+':'+(matrix_domain | regex_escape)+'$',
  4008. '^@gmessages_[a-zA-Z0-9]+:'+(matrix_domain | regex_escape)+'$',
  4009. ] if matrix_mautrix_gmessages_enabled else [])
  4010. +
  4011. ([
  4012. '^@'+(matrix_mautrix_googlechat_appservice_bot_username | default('') | regex_escape)+':'+(matrix_domain | regex_escape)+'$',
  4013. '^@googlechat_[a-zA-Z0-9]+:'+(matrix_domain | regex_escape)+'$',
  4014. ] if matrix_mautrix_googlechat_enabled else [])
  4015. +
  4016. ([
  4017. '^@'+(matrix_mautrix_hangouts_appservice_bot_username | default('') | regex_escape)+':'+(matrix_domain | regex_escape)+'$',
  4018. '^@hangouts_[a-zA-Z0-9]+:'+(matrix_domain | regex_escape)+'$',
  4019. ] if matrix_mautrix_hangouts_enabled else [])
  4020. +
  4021. ([
  4022. '^@'+(matrix_mautrix_instagram_appservice_bot_username | default('') | regex_escape)+':'+(matrix_domain | regex_escape)+'$',
  4023. '^@instagram_[a-zA-Z0-9]+:'+(matrix_domain | regex_escape)+'$',
  4024. ] if matrix_mautrix_instagram_enabled else [])
  4025. +
  4026. ([
  4027. '^@'+(matrix_mautrix_meta_instagram_appservice_username | default('') | regex_escape)+':'+(matrix_domain | regex_escape)+'$',
  4028. '^@'+(matrix_mautrix_meta_instagram_bridge_username_prefix | default('') | regex_escape)+'[a-zA-Z0-9]+:'+(matrix_domain | regex_escape)+'$',
  4029. ] if matrix_mautrix_meta_instagram_enabled else [])
  4030. +
  4031. ([
  4032. '^@'+(matrix_mautrix_meta_messenger_appservice_username | default('') | regex_escape)+':'+(matrix_domain | regex_escape)+'$',
  4033. '^@'+(matrix_mautrix_meta_messenger_bridge_username_prefix | default('') | regex_escape)+'[a-zA-Z0-9]+:'+(matrix_domain | regex_escape)+'$',
  4034. ] if matrix_mautrix_meta_messenger_enabled else [])
  4035. +
  4036. ([
  4037. '^@'+(matrix_mautrix_signal_appservice_bot_username | default('') | regex_escape)+':'+(matrix_domain | regex_escape)+'$',
  4038. '^@signal_[a-zA-Z0-9]+:'+(matrix_domain | regex_escape)+'$',
  4039. ] if matrix_mautrix_signal_enabled else [])
  4040. +
  4041. ([
  4042. '^@'+(matrix_mautrix_slack_appservice_bot_username | default('') | regex_escape)+':'+(matrix_domain | regex_escape)+'$',
  4043. '^@slack_[a-zA-Z0-9\-]+:'+(matrix_domain | regex_escape)+'$',
  4044. ] if matrix_mautrix_slack_enabled else [])
  4045. +
  4046. ([
  4047. '^@'+(matrix_mautrix_telegram_appservice_bot_username | default('') | regex_escape)+':'+(matrix_domain | regex_escape)+'$',
  4048. '^@telegram_[a-zA-Z0-9]+:'+(matrix_domain | regex_escape)+'$',
  4049. ] if matrix_mautrix_telegram_enabled else [])
  4050. +
  4051. ([
  4052. '^@'+(matrix_mautrix_twitter_appservice_bot_username | default('') | regex_escape)+':'+(matrix_domain | regex_escape)+'$',
  4053. '^@twitter_[a-zA-Z0-9]+:'+(matrix_domain | regex_escape)+'$',
  4054. ] if matrix_mautrix_twitter_enabled else [])
  4055. +
  4056. ([
  4057. '^@'+(matrix_mautrix_whatsapp_appservice_bot_username | default('') | regex_escape)+':'+(matrix_domain | regex_escape)+'$',
  4058. '^@whatsapp_[0-9]+:'+(matrix_domain | regex_escape)+'$',
  4059. ] if matrix_mautrix_whatsapp_enabled else [])
  4060. +
  4061. ([
  4062. '^@'+(matrix_mautrix_imessage_appservice_bot_username | default('') | regex_escape)+':'+(matrix_domain | regex_escape)+'$',
  4063. '^@imessage_[a-zA-Z0-9]+:'+(matrix_domain | regex_escape)+'$',
  4064. ] if matrix_mautrix_wsproxy_enabled else [])
  4065. +
  4066. ([
  4067. '^@_discordpuppet_[a-zA-Z0-9]+:'+(matrix_domain | regex_escape)+'$',
  4068. ] if matrix_mx_puppet_discord_enabled else [])
  4069. +
  4070. ([
  4071. '^@_groupmepuppet_[a-zA-Z0-9]+:'+(matrix_domain | regex_escape)+'$',
  4072. ] if matrix_mx_puppet_groupme_enabled else [])
  4073. +
  4074. ([
  4075. '^@_instagrampuppet_[a-zA-Z0-9]+:'+(matrix_domain | regex_escape)+'$',
  4076. ] if matrix_mx_puppet_instagram_enabled else [])
  4077. +
  4078. ([
  4079. '^@_slackpuppet_[a-zA-Z0-9]+:'+(matrix_domain | regex_escape)+'$',
  4080. ] if matrix_mx_puppet_slack_enabled else [])
  4081. +
  4082. ([
  4083. '^@_steampuppet_[a-zA-Z0-9]+:'+(matrix_domain | regex_escape)+'$',
  4084. ] if matrix_mx_puppet_steam_enabled else [])
  4085. +
  4086. ([
  4087. '^@'+(matrix_mx_puppet_twitter_bot_localpart | default('') | regex_escape)+':'+ (matrix_domain | regex_escape)+'$',
  4088. '^@'+(matrix_mx_puppet_twitter_namespace_prefix | default('') | regex_escape)+'[a-zA-Z0-9]+:'+(matrix_domain | regex_escape)+'$',
  4089. ] if matrix_mx_puppet_twitter_enabled else [])
  4090. +
  4091. ([
  4092. '^@smsbot:'+(matrix_domain | regex_escape)+'$',
  4093. '^@sms_[a-zA-Z0-9]+:'+(matrix_domain | regex_escape)+'$',
  4094. ] if matrix_sms_bridge_enabled else [])
  4095. +
  4096. ([
  4097. '^@'+(matrix_wechat_appservice_bot_username | default('') | regex_escape)+':'+(matrix_domain | regex_escape)+'$',
  4098. '^@_wechat_[a-zA-Z0-9]+:'+(matrix_domain | regex_escape)+'$',
  4099. ] if matrix_wechat_enabled else [])
  4100. }}
  4101. ######################################################################
  4102. #
  4103. # /matrix-synapse-admin
  4104. #
  4105. ######################################################################
  4106. ######################################################################
  4107. #
  4108. # matrix-synapse-usage-exporter
  4109. #
  4110. ######################################################################
  4111. matrix_synapse_usage_exporter_enabled: false
  4112. matrix_synapse_usage_exporter_container_network: "{{ matrix_monitoring_container_network }}"
  4113. matrix_synapse_usage_exporter_container_additional_networks: "{{ [matrix_playbook_reverse_proxyable_services_additional_network] if matrix_playbook_reverse_proxyable_services_additional_network else [] }}"
  4114. matrix_synapse_usage_exporter_container_labels_traefik_enabled: "{{ matrix_synapse_usage_exporter_proxying_enabled }}"
  4115. matrix_synapse_usage_exporter_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  4116. matrix_synapse_usage_exporter_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  4117. matrix_synapse_usage_exporter_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  4118. ######################################################################
  4119. #
  4120. # /matrix-synapse-usage-exporter
  4121. #
  4122. ######################################################################
  4123. ######################################################################
  4124. #
  4125. # etke/prometheus_node_exporter
  4126. #
  4127. ######################################################################
  4128. prometheus_node_exporter_enabled: false
  4129. prometheus_node_exporter_identifier: matrix-prometheus-node-exporter
  4130. prometheus_node_exporter_base_path: "{{ matrix_base_data_path }}/prometheus-node-exporter"
  4131. prometheus_node_exporter_uid: "{{ matrix_user_uid }}"
  4132. prometheus_node_exporter_gid: "{{ matrix_user_gid }}"
  4133. prometheus_node_exporter_hostname: "{{ matrix_server_fqn_matrix }}"
  4134. prometheus_node_exporter_container_network: "{{ matrix_monitoring_container_network }}"
  4135. prometheus_node_exporter_container_additional_networks: "{{ [matrix_playbook_reverse_proxyable_services_additional_network] if matrix_playbook_reverse_proxyable_services_additional_network else [] }}"
  4136. prometheus_node_exporter_container_labels_traefik_enabled: "{{ matrix_metrics_exposure_enabled }}"
  4137. prometheus_node_exporter_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  4138. prometheus_node_exporter_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  4139. prometheus_node_exporter_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  4140. prometheus_node_exporter_container_labels_metrics_middleware_basic_auth_enabled: "{{ matrix_metrics_exposure_http_basic_auth_enabled }}"
  4141. prometheus_node_exporter_container_labels_metrics_middleware_basic_auth_users: "{{ matrix_metrics_exposure_http_basic_auth_users }}"
  4142. ######################################################################
  4143. #
  4144. # /etke/prometheus_node_exporter
  4145. #
  4146. ######################################################################
  4147. ######################################################################
  4148. #
  4149. # etke/prometheus_postgres_exporter
  4150. #
  4151. ######################################################################
  4152. prometheus_postgres_exporter_enabled: false
  4153. prometheus_postgres_exporter_identifier: matrix-prometheus-postgres-exporter
  4154. prometheus_postgres_exporter_base_path: "{{ matrix_base_data_path }}/prometheus-postgres-exporter"
  4155. prometheus_postgres_exporter_uid: "{{ matrix_user_uid }}"
  4156. prometheus_postgres_exporter_gid: "{{ matrix_user_gid }}"
  4157. prometheus_postgres_exporter_hostname: "{{ matrix_server_fqn_matrix }}"
  4158. prometheus_postgres_exporter_container_network: "{{ matrix_monitoring_container_network }}"
  4159. prometheus_postgres_exporter_container_additional_networks: |
  4160. {{
  4161. ([postgres_container_network] if (postgres_enabled and prometheus_postgres_exporter_database_hostname == postgres_connection_hostname and prometheus_postgres_exporter_container_network != postgres_container_network) else [])
  4162. +
  4163. ([matrix_playbook_reverse_proxyable_services_additional_network] if matrix_playbook_reverse_proxyable_services_additional_network and prometheus_postgres_exporter_container_labels_traefik_enabled else [])
  4164. }}
  4165. prometheus_postgres_exporter_container_labels_traefik_enabled: "{{ matrix_metrics_exposure_enabled }}"
  4166. prometheus_postgres_exporter_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  4167. prometheus_postgres_exporter_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  4168. prometheus_postgres_exporter_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  4169. prometheus_postgres_exporter_container_labels_metrics_middleware_basic_auth_enabled: "{{ matrix_metrics_exposure_http_basic_auth_enabled }}"
  4170. prometheus_postgres_exporter_container_labels_metrics_middleware_basic_auth_users: "{{ matrix_metrics_exposure_http_basic_auth_users }}"
  4171. prometheus_postgres_exporter_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  4172. prometheus_postgres_exporter_database_username: matrix_prometheus_postgres_exporter
  4173. prometheus_postgres_exporter_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'prometheus.pg.db', rounds=655555) | to_uuid }}"
  4174. prometheus_postgres_exporter_database_name: matrix_prometheus_postgres_exporter
  4175. prometheus_postgres_exporter_systemd_required_services_list_auto: |
  4176. {{
  4177. ([postgres_identifier ~ '.service'] if (postgres_enabled and prometheus_postgres_exporter_database_hostname == postgres_connection_hostname) else [])
  4178. }}
  4179. ######################################################################
  4180. #
  4181. # /etke/prometheus_postgres_exporter
  4182. #
  4183. ######################################################################
  4184. ######################################################################
  4185. #
  4186. # matrix-prometheus-nginxlog-exporter
  4187. #
  4188. ######################################################################
  4189. matrix_prometheus_nginxlog_exporter_enabled: false
  4190. matrix_prometheus_nginxlog_exporter_identifier: matrix-prometheus-nginxlog-exporter
  4191. matrix_prometheus_nginxlog_exporter_hostname: "{{ matrix_server_fqn_matrix }}"
  4192. matrix_prometheus_nginxlog_exporter_container_network: "{{ matrix_monitoring_container_network }}"
  4193. matrix_prometheus_nginxlog_exporter_container_additional_networks_auto: |-
  4194. {{
  4195. ([matrix_playbook_reverse_proxyable_services_additional_network] if (matrix_playbook_reverse_proxyable_services_additional_network and matrix_prometheus_nginxlog_exporter_container_labels_traefik_enabled) else [])
  4196. }}
  4197. matrix_prometheus_nginxlog_exporter_container_labels_traefik_enabled: "{{ matrix_metrics_exposure_enabled }}"
  4198. matrix_prometheus_nginxlog_exporter_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  4199. matrix_prometheus_nginxlog_exporter_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  4200. matrix_prometheus_nginxlog_exporter_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  4201. matrix_prometheus_nginxlog_exporter_container_labels_metrics_middleware_basic_auth_enabled: "{{ matrix_metrics_exposure_http_basic_auth_enabled }}"
  4202. matrix_prometheus_nginxlog_exporter_container_labels_metrics_middleware_basic_auth_users: "{{ matrix_metrics_exposure_http_basic_auth_users }}"
  4203. matrix_prometheus_nginxlog_exporter_config_namespaces_matrix_source_tags_auto: |
  4204. {{
  4205. ([matrix_synapse_reverse_proxy_companion_access_log_syslog_integration_tag] if matrix_synapse_reverse_proxy_companion_access_log_syslog_integration_enabled else [])
  4206. }}
  4207. ######################################################################
  4208. #
  4209. # /matrix-prometheus-nginxlog-exporter
  4210. #
  4211. ######################################################################
  4212. ######################################################################
  4213. #
  4214. # prometheus
  4215. #
  4216. ######################################################################
  4217. prometheus_enabled: false
  4218. prometheus_identifier: matrix-prometheus
  4219. prometheus_base_path: "{{ matrix_base_data_path }}/prometheus"
  4220. prometheus_uid: "{{ matrix_user_uid }}"
  4221. prometheus_gid: "{{ matrix_user_gid }}"
  4222. prometheus_container_network: "{{ matrix_monitoring_container_network }}"
  4223. prometheus_container_additional_networks_auto: |
  4224. {{
  4225. (
  4226. ([prometheus_node_exporter_container_network] if prometheus_self_node_scraper_enabled and prometheus_node_exporter_container_network != prometheus_container_network else [])
  4227. +
  4228. ([matrix_synapse_container_network] if matrix_prometheus_services_connect_scraper_synapse_enabled and matrix_synapse_container_network != prometheus_container_network else [])
  4229. +
  4230. ([prometheus_postgres_exporter_container_network] if matrix_prometheus_services_connect_scraper_postgres_enabled and prometheus_postgres_exporter_container_network != prometheus_container_network else [])
  4231. +
  4232. ([matrix_hookshot_container_network] if matrix_prometheus_services_connect_scraper_hookshot_enabled and matrix_hookshot_container_network != prometheus_container_network else [])
  4233. +
  4234. ([matrix_prometheus_nginxlog_exporter_container_network] if matrix_prometheus_services_connect_scraper_nginxlog_enabled and matrix_prometheus_nginxlog_exporter_container_network != prometheus_container_network else [])
  4235. +
  4236. ([matrix_media_repo_container_network] if matrix_prometheus_services_connect_scraper_media_repo_enabled and matrix_media_repo_container_network != prometheus_container_network else [])
  4237. +
  4238. ([matrix_synapse_usage_exporter_container_network] if matrix_prometheus_services_connect_scraper_synapse_usage_exporter_enabled and matrix_synapse_usage_exporter_container_network != prometheus_container_network else [])
  4239. ) | unique
  4240. }}
  4241. prometheus_container_http_host_bind_port: "{{ (matrix_playbook_service_host_bind_interface_prefix ~ '9090') if matrix_playbook_service_host_bind_interface_prefix else '' }}"
  4242. prometheus_config_rule_files_auto: |
  4243. {{
  4244. (['synapse-v2.rules'] if matrix_prometheus_services_connect_synapse_rules_enabled else [])
  4245. }}
  4246. prometheus_self_node_scraper_enabled: "{{ prometheus_node_exporter_enabled }}"
  4247. prometheus_self_node_scraper_static_configs_target: "{{ (prometheus_node_exporter_identifier + ':9100') if prometheus_node_exporter_enabled else '' }}"
  4248. prometheus_config_scrape_configs_auto: |
  4249. {{
  4250. (matrix_prometheus_services_connect_scraper_synapse_configs if matrix_prometheus_services_connect_scraper_synapse_enabled else [])
  4251. +
  4252. (matrix_prometheus_services_connect_scraper_postgres_scrape_configs if matrix_prometheus_services_connect_scraper_postgres_enabled else [])
  4253. +
  4254. (matrix_prometheus_services_connect_scraper_hookshot_scrape_configs if matrix_prometheus_services_connect_scraper_hookshot_enabled else [])
  4255. +
  4256. (matrix_prometheus_services_connect_scraper_nginxlog_scrape_configs if matrix_prometheus_services_connect_scraper_nginxlog_enabled else [])
  4257. +
  4258. (matrix_prometheus_services_connect_scraper_media_repo_scrape_configs if matrix_prometheus_services_connect_scraper_media_repo_enabled else [])
  4259. +
  4260. (matrix_prometheus_services_connect_scraper_synapse_usage_exporter_scrape_configs if matrix_prometheus_services_connect_scraper_synapse_usage_exporter_enabled else [])
  4261. }}
  4262. ######################################################################
  4263. #
  4264. # /prometheus
  4265. #
  4266. ######################################################################
  4267. ######################################################################
  4268. #
  4269. # matrix-prometheus-services-connect
  4270. #
  4271. ######################################################################
  4272. matrix_prometheus_services_connect_synapse_enabled: "{{ prometheus_enabled and matrix_synapse_enabled }}"
  4273. matrix_prometheus_services_connect_synapse_rules_download_synapse_tag: "{{ matrix_synapse_docker_image_tag }}"
  4274. matrix_prometheus_services_connect_synapse_rules_download_dir_path: "{{ prometheus_config_path }}"
  4275. matrix_prometheus_services_connect_synapse_rules_download_owner: "{{ prometheus_uid }}"
  4276. matrix_prometheus_services_connect_synapse_rules_download_group: "{{ prometheus_gid }}"
  4277. matrix_prometheus_services_connect_scraper_synapse_enabled: "{{ matrix_synapse_enabled and matrix_synapse_metrics_enabled }}"
  4278. matrix_prometheus_services_connect_scraper_synapse_main_process_static_configs_target: "matrix-synapse:{{ matrix_synapse_metrics_port }}"
  4279. matrix_prometheus_services_connect_scraper_synapse_workers_enabled_list: "{{ matrix_synapse_workers_enabled_list }}"
  4280. matrix_prometheus_services_connect_scraper_postgres_enabled: "{{ prometheus_postgres_exporter_enabled }}"
  4281. matrix_prometheus_services_connect_scraper_postgres_static_configs_target: "{{ prometheus_postgres_exporter_identifier }}:{{ prometheus_postgres_exporter_port | string }}"
  4282. matrix_prometheus_services_connect_scraper_hookshot_enabled: "{{ matrix_hookshot_enabled and matrix_hookshot_metrics_enabled }}"
  4283. matrix_prometheus_services_connect_scraper_hookshot_static_configs_target: "{{ matrix_hookshot_container_url }}:{{ matrix_hookshot_metrics_port | string }}"
  4284. matrix_prometheus_services_connect_scraper_nginxlog_enabled: "{{ matrix_prometheus_nginxlog_exporter_enabled }}"
  4285. matrix_prometheus_services_connect_scraper_nginxlog_static_configs_target: "{{ matrix_prometheus_nginxlog_exporter_identifier }}:{{ matrix_prometheus_nginxlog_exporter_container_metrics_port | string }}"
  4286. matrix_prometheus_services_connect_scraper_media_repo_enabled: "{{ matrix_media_repo_enabled and matrix_media_repo_metrics_enabled }}"
  4287. matrix_prometheus_services_connect_scraper_media_repo_static_configs_target: "{{ matrix_media_repo_identifier }}:{{ matrix_media_repo_metrics_port }}"
  4288. matrix_prometheus_services_connect_scraper_synapse_usage_exporter_enabled: "{{ matrix_synapse_usage_exporter_enabled }}"
  4289. matrix_prometheus_services_connect_scraper_synapse_usage_exporter_static_configs_target: "{{ matrix_synapse_usage_exporter_identifier }}:{{ matrix_synapse_usage_exporter_container_port | string }}"
  4290. ######################################################################
  4291. #
  4292. # /matrix-prometheus-services-connect
  4293. #
  4294. ######################################################################
  4295. ######################################################################
  4296. #
  4297. # etke/grafana
  4298. #
  4299. ######################################################################
  4300. grafana_enabled: false
  4301. grafana_identifier: matrix-grafana
  4302. grafana_uid: "{{ matrix_user_uid }}"
  4303. grafana_gid: "{{ matrix_user_gid }}"
  4304. grafana_hostname: "{{ matrix_server_fqn_grafana }}"
  4305. grafana_base_path: "{{ matrix_base_data_path }}/grafana"
  4306. grafana_container_network: "{{ matrix_monitoring_container_network }}"
  4307. grafana_container_additional_networks_auto: |
  4308. {{
  4309. (
  4310. ([matrix_playbook_reverse_proxyable_services_additional_network] if matrix_playbook_reverse_proxyable_services_additional_network and grafana_container_labels_traefik_enabled else [])
  4311. +
  4312. ([prometheus_container_network] if prometheus_enabled and prometheus_container_network != grafana_container_network else [])
  4313. ) | unique
  4314. }}
  4315. grafana_container_labels_traefik_enabled: "{{ matrix_playbook_traefik_labels_enabled }}"
  4316. grafana_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  4317. grafana_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  4318. grafana_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  4319. grafana_container_http_host_bind_port: "{{ (matrix_playbook_service_host_bind_interface_prefix ~ '3000') if matrix_playbook_service_host_bind_interface_prefix else '' }}"
  4320. grafana_provisioning_datasources: |
  4321. {{
  4322. ([{
  4323. 'name': (matrix_server_fqn_matrix + ' - Prometheus'),
  4324. 'type': 'prometheus',
  4325. 'access': 'proxy',
  4326. 'url': ('http://' + prometheus_identifier + ':9090'),
  4327. 'jsonData': {
  4328. 'timeInterval': prometheus_config_global_scrape_interval,
  4329. }
  4330. }] if prometheus_enabled else [])
  4331. }}
  4332. grafana_dashboard_download_urls: |
  4333. {{
  4334. (matrix_synapse_grafana_dashboard_urls if matrix_homeserver_implementation == 'synapse' and matrix_synapse_metrics_enabled else [])
  4335. +
  4336. (prometheus_node_exporter_dashboard_urls if prometheus_node_exporter_enabled else [])
  4337. +
  4338. (prometheus_postgres_exporter_dashboard_urls if prometheus_postgres_exporter_enabled else [])
  4339. +
  4340. (matrix_prometheus_nginxlog_exporter_dashboard_urls if matrix_prometheus_nginxlog_exporter_enabled else [])
  4341. +
  4342. (matrix_media_repo_dashboard_urls if matrix_media_repo_metrics_enabled else [])
  4343. +
  4344. (matrix_synapse_usage_exporter_dashboard_urls if matrix_synapse_usage_exporter_enabled else [])
  4345. }}
  4346. grafana_provisioning_dashboard_template_files: |
  4347. {{
  4348. ([{
  4349. 'path': 'roles/custom/matrix-prometheus-nginxlog-exporter/templates/grafana/nginx-proxy.json',
  4350. 'name': 'nginx-proxy.json',
  4351. }] if matrix_prometheus_nginxlog_exporter_enabled else [])
  4352. }}
  4353. grafana_default_home_dashboard_path: |-
  4354. {{
  4355. {
  4356. 'synapse': ('/etc/grafana/dashboards/synapse.json' if matrix_synapse_metrics_enabled and matrix_synapse_metrics_enabled else ('/etc/grafana/dashboards/node-exporter-full.json' if prometheus_node_exporter_enabled else '')),
  4357. 'dendrite': ('/etc/grafana/dashboards/node-exporter-full.json' if prometheus_node_exporter_enabled else ''),
  4358. 'conduit': ('/etc/grafana/dashboards/node-exporter-full.json' if prometheus_node_exporter_enabled else ''),
  4359. }[matrix_homeserver_implementation]
  4360. }}
  4361. ######################################################################
  4362. #
  4363. # /etke/grafana
  4364. #
  4365. ######################################################################
  4366. ######################################################################
  4367. #
  4368. # matrix-registration
  4369. #
  4370. ######################################################################
  4371. matrix_registration_enabled: false
  4372. matrix_registration_scheme: "{{ 'https' if matrix_playbook_ssl_enabled else 'http' }}"
  4373. matrix_registration_hostname: "{{ matrix_server_fqn_matrix }}"
  4374. matrix_registration_path_prefix: /matrix-registration
  4375. matrix_registration_systemd_required_services_list_auto: |
  4376. {{
  4377. ([postgres_identifier ~ '.service'] if (postgres_enabled and matrix_registration_database_hostname == postgres_connection_hostname) else [])
  4378. }}
  4379. matrix_registration_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  4380. matrix_registration_container_http_host_bind_port: "{{ (matrix_playbook_service_host_bind_interface_prefix ~ '8767') if matrix_playbook_service_host_bind_interface_prefix else '' }}"
  4381. matrix_registration_container_network: "{{ matrix_addons_container_network }}"
  4382. matrix_registration_container_additional_networks_auto: |-
  4383. {{
  4384. (
  4385. ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
  4386. +
  4387. ([postgres_container_network] if (postgres_enabled and matrix_registration_database_hostname == postgres_connection_hostname and matrix_mautrix_facebook_container_network != postgres_container_network) else [])
  4388. +
  4389. ([matrix_playbook_reverse_proxyable_services_additional_network] if (matrix_playbook_reverse_proxyable_services_additional_network and matrix_registration_container_labels_traefik_enabled) else [])
  4390. ) | unique
  4391. }}
  4392. matrix_registration_container_labels_traefik_enabled: "{{ matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] }}"
  4393. matrix_registration_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  4394. matrix_registration_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  4395. matrix_registration_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  4396. matrix_registration_riot_instance: "{{ (('https://' if matrix_playbook_ssl_enabled else 'http://') + matrix_server_fqn_element) if matrix_client_element_enabled else 'https://element.io/app/' }}"
  4397. matrix_registration_shared_secret: |-
  4398. {{
  4399. {
  4400. 'synapse': matrix_synapse_registration_shared_secret | default (''),
  4401. 'dendrite': matrix_dendrite_client_api_registration_shared_secret | default (''),
  4402. 'conduit': '',
  4403. }[matrix_homeserver_implementation]
  4404. }}
  4405. matrix_registration_server_location: "{{ matrix_addons_homeserver_client_api_url }}"
  4406. matrix_registration_api_validate_certs: "{{ matrix_playbook_ssl_enabled }}"
  4407. # Postgres is the default, except if not using internal Postgres server
  4408. matrix_registration_database_engine: "{{ 'postgres' if postgres_enabled else 'sqlite' }}"
  4409. matrix_registration_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  4410. matrix_registration_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mx.registr.db', rounds=655555) | to_uuid }}"
  4411. ######################################################################
  4412. #
  4413. # /matrix-registration
  4414. #
  4415. ######################################################################
  4416. ######################################################################
  4417. #
  4418. # matrix-sliding-sync
  4419. #
  4420. ######################################################################
  4421. # We don't enable the sliding sync proxy by default.
  4422. matrix_sliding_sync_enabled: false
  4423. matrix_sliding_sync_scheme: "{{ 'https' if matrix_playbook_ssl_enabled else 'http' }}"
  4424. matrix_sliding_sync_hostname: "{{ matrix_server_fqn_matrix }}"
  4425. matrix_sliding_sync_path_prefix: /sliding-sync
  4426. matrix_sliding_sync_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm64'] }}"
  4427. matrix_sliding_sync_container_network: "{{ matrix_homeserver_container_network }}"
  4428. matrix_sliding_sync_container_additional_networks: |
  4429. {{
  4430. (
  4431. ([matrix_playbook_reverse_proxyable_services_additional_network] if matrix_sliding_sync_container_labels_traefik_enabled and matrix_playbook_reverse_proxyable_services_additional_network else [])
  4432. +
  4433. ([] if matrix_homeserver_container_network in ['', matrix_sliding_sync_container_network] else [matrix_homeserver_container_network])
  4434. +
  4435. ([postgres_container_network] if postgres_enabled and postgres_container_network != matrix_sliding_sync_container_network else [])
  4436. ) | unique
  4437. }}
  4438. matrix_sliding_sync_container_labels_traefik_enabled: "{{ matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] }}"
  4439. matrix_sliding_sync_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  4440. matrix_sliding_sync_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  4441. matrix_sliding_sync_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  4442. matrix_sliding_sync_container_labels_public_metrics_middleware_basic_auth_enabled: "{{ matrix_metrics_exposure_http_basic_auth_enabled }}"
  4443. matrix_sliding_sync_container_labels_public_metrics_middleware_basic_auth_users: "{{ matrix_metrics_exposure_http_basic_auth_users }}"
  4444. matrix_sliding_sync_systemd_required_services_list_auto: |
  4445. {{
  4446. matrix_homeserver_systemd_services_list
  4447. +
  4448. ([postgres_identifier ~ '.service'] if (postgres_enabled and matrix_sliding_sync_database_hostname == postgres_connection_hostname) else [])
  4449. }}
  4450. matrix_sliding_sync_environment_variable_syncv3_server: "{{ matrix_homeserver_container_url }}"
  4451. matrix_sliding_sync_environment_variable_syncv3_secret: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'ss.secret', rounds=655555) | to_uuid }}"
  4452. matrix_sliding_sync_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  4453. matrix_sliding_sync_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'ss.db', rounds=655555) | to_uuid }}"
  4454. matrix_sliding_sync_metrics_enabled: "{{ prometheus_enabled or matrix_metrics_exposure_enabled }}"
  4455. matrix_sliding_sync_metrics_proxying_enabled: "{{ matrix_sliding_sync_metrics_enabled and matrix_metrics_exposure_enabled }}"
  4456. matrix_sliding_sync_metrics_proxying_hostname: "{{ matrix_metrics_exposure_hostname }}"
  4457. matrix_sliding_sync_metrics_proxying_path_prefix: "{{ matrix_metrics_exposure_path_prefix }}/sliding-sync"
  4458. #####################################################################
  4459. #
  4460. # /matrix-sliding-sync
  4461. #
  4462. ######################################################################
  4463. ######################################################################
  4464. #
  4465. # matrix-dendrite
  4466. #
  4467. ######################################################################
  4468. matrix_dendrite_enabled: "{{ matrix_homeserver_implementation == 'dendrite' }}"
  4469. matrix_dendrite_hostname: "{{ matrix_server_fqn_matrix }}"
  4470. matrix_dendrite_federation_enabled: "{{ matrix_homeserver_federation_enabled }}"
  4471. matrix_dendrite_container_network: "{{ matrix_homeserver_container_network }}"
  4472. matrix_dendrite_container_additional_networks_auto: |
  4473. {{
  4474. (
  4475. ([matrix_playbook_reverse_proxyable_services_additional_network] if matrix_dendrite_container_labels_traefik_enabled and matrix_playbook_reverse_proxyable_services_additional_network else [])
  4476. +
  4477. ([postgres_container_network] if (postgres_enabled and matrix_dendrite_database_hostname == postgres_connection_hostname and postgres_container_network != matrix_dendrite_container_network) else [])
  4478. ) | unique
  4479. }}
  4480. matrix_dendrite_container_http_host_bind_address: "{{ (matrix_playbook_service_host_bind_interface_prefix ~ matrix_dendrite_http_bind_port | string) if matrix_playbook_service_host_bind_interface_prefix else '' }}"
  4481. matrix_dendrite_container_https_host_bind_address: "{{ '' if not matrix_dendrite_https_bind_port or not matrix_playbook_service_host_bind_interface_prefix else (matrix_playbook_service_host_bind_interface_prefix + matrix_dendrite_https_bind_port | string) }}"
  4482. matrix_dendrite_container_labels_traefik_enabled: "{{ matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] and not matrix_synapse_workers_enabled }}"
  4483. matrix_dendrite_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  4484. matrix_dendrite_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  4485. matrix_dendrite_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  4486. matrix_dendrite_container_labels_public_client_synapse_admin_api_enabled: "{{ matrix_synapse_admin_enabled }}"
  4487. matrix_dendrite_container_labels_public_client_root_redirection_enabled: "{{ matrix_dendrite_container_labels_public_client_root_redirection_url != '' }}"
  4488. matrix_dendrite_container_labels_public_client_root_redirection_url: "{{ (('https://' if matrix_playbook_ssl_enabled else 'http://') + matrix_server_fqn_element) if matrix_client_element_enabled else '' }}"
  4489. matrix_dendrite_container_labels_public_federation_api_traefik_hostname: "{{ matrix_server_fqn_matrix_federation }}"
  4490. matrix_dendrite_container_labels_public_federation_api_traefik_entrypoints: "{{ matrix_federation_traefik_entrypoint_name }}"
  4491. matrix_dendrite_container_labels_public_federation_api_traefik_tls: "{{ matrix_federation_traefik_entrypoint_tls }}"
  4492. matrix_dendrite_container_labels_public_metrics_middleware_basic_auth_enabled: "{{ matrix_metrics_exposure_http_basic_auth_enabled }}"
  4493. matrix_dendrite_container_labels_public_metrics_middleware_basic_auth_users: "{{ matrix_metrics_exposure_http_basic_auth_users }}"
  4494. matrix_dendrite_metrics_enabled: "{{ prometheus_enabled or matrix_metrics_exposure_enabled }}"
  4495. matrix_dendrite_metrics_proxying_enabled: "{{ matrix_dendrite_metrics_enabled and matrix_metrics_exposure_enabled }}"
  4496. matrix_dendrite_metrics_proxying_hostname: "{{ matrix_metrics_exposure_hostname }}"
  4497. matrix_dendrite_metrics_proxying_path_prefix: "{{ matrix_metrics_exposure_path_prefix }}/dendrite"
  4498. matrix_dendrite_client_api_registration_shared_secret: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'dendrite.rss', rounds=655555) | to_uuid }}"
  4499. matrix_dendrite_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
  4500. matrix_dendrite_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'dendrite.db', rounds=655555) | to_uuid }}"
  4501. # Even if TURN doesn't support TLS (it does by default),
  4502. # it doesn't hurt to try a secure connection anyway.
  4503. matrix_dendrite_client_api_turn_uris: |
  4504. {{
  4505. [
  4506. 'turns:' + matrix_server_fqn_matrix + '?transport=udp',
  4507. 'turns:' + matrix_server_fqn_matrix + '?transport=tcp',
  4508. 'turn:' + matrix_server_fqn_matrix + '?transport=udp',
  4509. 'turn:' + matrix_server_fqn_matrix + '?transport=tcp',
  4510. ]
  4511. if matrix_coturn_enabled
  4512. else []
  4513. }}
  4514. matrix_dendrite_client_api_turn_shared_secret: "{{ matrix_coturn_turn_static_auth_secret if (matrix_coturn_enabled and matrix_coturn_authentication_method == 'auth-secret') else '' }}"
  4515. matrix_dendrite_client_api_turn_username: "{{ matrix_coturn_lt_cred_mech_username if (matrix_coturn_enabled and matrix_coturn_authentication_method == 'lt-cred-mech') else '' }}"
  4516. matrix_dendrite_client_api_turn_password: "{{ matrix_coturn_lt_cred_mech_password if (matrix_coturn_enabled and matrix_coturn_authentication_method == 'lt-cred-mech') else '' }}"
  4517. matrix_dendrite_disable_tls_validation: "{{ not matrix_playbook_ssl_enabled }}"
  4518. matrix_dendrite_self_check_validate_certificates: "{{ matrix_playbook_ssl_enabled }}"
  4519. matrix_dendrite_trusted_id_servers: "{{ [matrix_server_fqn_matrix] if matrix_ma1sd_enabled else ['matrix.org', 'vector.im'] }}"
  4520. matrix_dendrite_systemd_required_services_list_auto: |
  4521. {{
  4522. ([postgres_identifier ~ '.service'] if (postgres_enabled and matrix_dendrite_database_hostname == postgres_connection_hostname) else [])
  4523. +
  4524. (['matrix-goofys.service'] if matrix_s3_media_store_enabled else [])
  4525. }}
  4526. matrix_dendrite_systemd_wanted_services_list_auto: |
  4527. {{
  4528. (['matrix-coturn.service'] if matrix_coturn_enabled else [])
  4529. }}
  4530. matrix_dendrite_container_extra_arguments_auto: "{{ matrix_homeserver_container_extra_arguments_auto }}"
  4531. matrix_dendrite_app_service_config_files_auto: "{{ matrix_homeserver_app_service_config_files_auto }}"
  4532. ######################################################################
  4533. #
  4534. # /matrix-dendrite
  4535. #
  4536. ######################################################################
  4537. ######################################################################
  4538. #
  4539. # matrix-conduit
  4540. #
  4541. ######################################################################
  4542. matrix_conduit_enabled: "{{ matrix_homeserver_implementation == 'conduit' }}"
  4543. matrix_conduit_hostname: "{{ matrix_server_fqn_matrix }}"
  4544. matrix_conduit_allow_federation: "{{ matrix_homeserver_federation_enabled }}"
  4545. matrix_conduit_container_network: "{{ matrix_homeserver_container_network }}"
  4546. matrix_conduit_container_additional_networks_auto: |
  4547. {{
  4548. (
  4549. ([matrix_playbook_reverse_proxyable_services_additional_network] if matrix_conduit_container_labels_traefik_enabled and matrix_playbook_reverse_proxyable_services_additional_network else [])
  4550. ) | unique
  4551. }}
  4552. matrix_conduit_container_labels_traefik_enabled: "{{ matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] and not matrix_synapse_workers_enabled }}"
  4553. matrix_conduit_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  4554. matrix_conduit_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  4555. matrix_conduit_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  4556. matrix_conduit_container_labels_public_client_root_redirection_enabled: "{{ matrix_conduit_container_labels_public_client_root_redirection_url != '' }}"
  4557. matrix_conduit_container_labels_public_client_root_redirection_url: "{{ (('https://' if matrix_playbook_ssl_enabled else 'http://') + matrix_server_fqn_element) if matrix_client_element_enabled else '' }}"
  4558. matrix_conduit_container_labels_public_federation_api_traefik_hostname: "{{ matrix_server_fqn_matrix_federation }}"
  4559. matrix_conduit_container_labels_public_federation_api_traefik_entrypoints: "{{ matrix_federation_traefik_entrypoint_name }}"
  4560. matrix_conduit_container_labels_public_federation_api_traefik_tls: "{{ matrix_federation_traefik_entrypoint_tls }}"
  4561. matrix_conduit_container_labels_internal_client_api_enabled: "{{ matrix_playbook_internal_matrix_client_api_traefik_entrypoint_enabled }}"
  4562. matrix_conduit_container_labels_internal_client_api_traefik_entrypoints: "{{ matrix_playbook_internal_matrix_client_api_traefik_entrypoint_name }}"
  4563. matrix_conduit_turn_uris: |
  4564. {{
  4565. ([
  4566. 'turns:' + matrix_server_fqn_matrix + '?transport=udp',
  4567. 'turns:' + matrix_server_fqn_matrix + '?transport=tcp',
  4568. ] if matrix_coturn_enabled and matrix_coturn_tls_enabled else [])
  4569. +
  4570. ([
  4571. 'turn:' + matrix_server_fqn_matrix + '?transport=udp',
  4572. 'turn:' + matrix_server_fqn_matrix + '?transport=tcp',
  4573. ] if matrix_coturn_enabled else [])
  4574. }}
  4575. matrix_conduit_turn_secret: "{{ matrix_coturn_turn_static_auth_secret if (matrix_coturn_enabled and matrix_coturn_authentication_method == 'auth-secret') else '' }}"
  4576. matrix_conduit_turn_username: "{{ matrix_coturn_lt_cred_mech_username if (matrix_coturn_enabled and matrix_coturn_authentication_method == 'lt-cred-mech') else '' }}"
  4577. matrix_conduit_turn_password: "{{ matrix_coturn_lt_cred_mech_password if (matrix_coturn_enabled and matrix_coturn_authentication_method == 'lt-cred-mech') else '' }}"
  4578. ######################################################################
  4579. #
  4580. # /matrix-conduit
  4581. #
  4582. ######################################################################
  4583. ######################################################################
  4584. #
  4585. # matrix-user-creator
  4586. #
  4587. ######################################################################
  4588. matrix_user_creator_users_auto: |
  4589. {{
  4590. ([{
  4591. 'username': matrix_bot_matrix_registration_bot_matrix_user_id_localpart,
  4592. 'initial_password': matrix_bot_matrix_registration_bot_bot_password,
  4593. 'initial_type': 'admin',
  4594. }] if matrix_bot_matrix_registration_bot_enabled else [])
  4595. +
  4596. ([{
  4597. 'username': matrix_bot_baibot_config_user_mxid_localpart,
  4598. 'initial_password': matrix_bot_baibot_config_user_password,
  4599. 'initial_type': 'bot',
  4600. }] if matrix_bot_baibot_enabled else [])
  4601. +
  4602. ([{
  4603. 'username': matrix_bot_chatgpt_matrix_bot_username_localpart,
  4604. 'initial_password': matrix_bot_chatgpt_matrix_bot_password,
  4605. 'initial_type': 'bot',
  4606. }] if matrix_bot_chatgpt_enabled and matrix_bot_chatgpt_matrix_bot_password | length > 0 else [])
  4607. +
  4608. ([{
  4609. 'username': matrix_bot_matrix_reminder_bot_matrix_user_id_localpart,
  4610. 'initial_password': matrix_bot_matrix_reminder_bot_matrix_user_password,
  4611. 'initial_type': 'bot',
  4612. }] if matrix_bot_matrix_reminder_bot_enabled else [])
  4613. +
  4614. ([{
  4615. 'username': matrix_bot_honoroit_login,
  4616. 'initial_password': matrix_bot_honoroit_password,
  4617. 'initial_type': 'bot',
  4618. }] if matrix_bot_honoroit_enabled else [])
  4619. +
  4620. ([{
  4621. 'username': matrix_postmoogle_login,
  4622. 'initial_password': matrix_postmoogle_password,
  4623. 'initial_type': 'bot',
  4624. }] if matrix_postmoogle_enabled else [])
  4625. +
  4626. ([{
  4627. 'username': matrix_bot_buscarron_login,
  4628. 'initial_password': matrix_bot_buscarron_password,
  4629. 'initial_type': 'bot',
  4630. }] if matrix_bot_buscarron_enabled else [])
  4631. +
  4632. ([{
  4633. 'username': matrix_bot_maubot_login,
  4634. 'initial_password': matrix_bot_maubot_initial_password,
  4635. 'initial_type': 'bot',
  4636. }] if matrix_bot_maubot_enabled else [])
  4637. }}
  4638. ######################################################################
  4639. #
  4640. # /matrix-user-creator
  4641. #
  4642. ######################################################################
  4643. ######################################################################
  4644. #
  4645. # matrix-user-verification-service
  4646. #
  4647. ######################################################################
  4648. matrix_user_verification_service_enabled: false
  4649. matrix_user_verification_service_systemd_required_services_list: |
  4650. {{
  4651. [devture_systemd_docker_base_docker_service_name]
  4652. +
  4653. (['matrix-' + matrix_homeserver_implementation + '.service'])
  4654. }}
  4655. matrix_user_verification_service_container_network: "{{ matrix_addons_container_network }}"
  4656. matrix_user_verification_service_container_additional_networks: |
  4657. {{
  4658. (
  4659. ([matrix_playbook_reverse_proxyable_services_additional_network] if matrix_playbook_reverse_proxyable_services_additional_network else [])
  4660. +
  4661. ([matrix_homeserver_container_network] if matrix_homeserver_container_network != matrix_user_verification_service_container_network else [])
  4662. ) | unique
  4663. }}
  4664. # If Jitsi is managed by this playbook we can use the docker network - no need to expose a port.
  4665. # If Jitsi is not managed by this playbook, or you otherwise have a need for it, you can expose
  4666. # matrix-user-verfification-services's client-server port to port 3003.
  4667. # By default Matrix-User-Verification-Service binds to port 3000, which collides with grafana, therefore this uses port 3003.
  4668. matrix_user_verification_service_container_http_host_bind_port: "{{ '' if (jitsi_enabled | bool and jitsi_enable_auth | bool and jitsi_auth_type == 'matrix') else matrix_playbook_service_host_bind_interface_prefix ~ '3003' }}"
  4669. # URL exposed in the docker network
  4670. matrix_user_verification_service_container_url: "http://{{ matrix_user_verification_service_container_name }}:3000"
  4671. matrix_user_verification_service_uvs_homeserver_url: "{{ matrix_addons_homeserver_client_api_url }}"
  4672. # We connect via the container network (private IPs), so we need to disable IP checks
  4673. matrix_user_verification_service_uvs_disable_ip_blacklist: "{{'true' if matrix_synapse_enabled else 'false'}}"
  4674. matrix_user_verification_service_uvs_auth_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'uvs.auth.token', rounds=655555) | to_uuid }}"
  4675. ######################################################################
  4676. #
  4677. # /matrix-user-verification-service
  4678. #
  4679. ######################################################################
  4680. ########################################################################
  4681. # #
  4682. # matrix-static-files #
  4683. # #
  4684. ########################################################################
  4685. matrix_static_files_enabled: true
  4686. matrix_static_files_container_network: "{{ (matrix_static_files_identifier if matrix_playbook_reverse_proxy_type == 'none' else matrix_playbook_reverse_proxy_container_network) }}"
  4687. matrix_static_files_container_labels_traefik_enabled: "{{ matrix_playbook_traefik_labels_enabled }}"
  4688. matrix_static_files_container_labels_traefik_docker_network: "{{ matrix_playbook_reverse_proxyable_services_additional_network }}"
  4689. matrix_static_files_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
  4690. matrix_static_files_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"
  4691. matrix_static_files_container_labels_well_known_matrix_endpoint_traefik_hostname: "{{ matrix_server_fqn_matrix }}"
  4692. # Base domain serving is not enabled by default (see `matrix_static_files_container_labels_base_domain_enabled`),
  4693. # but we pass the hostname, so that enabling it is easy.
  4694. matrix_static_files_container_labels_base_domain_traefik_hostname: "{{ matrix_domain }}"
  4695. # If we're not serving a static webpage, serve a redirect instead of a 404.
  4696. matrix_static_files_container_labels_base_domain_root_path_redirection_enabled: "{{ not matrix_static_files_file_index_html_enabled }}"
  4697. matrix_static_files_container_labels_base_domain_root_path_redirection_url: "{{ ('https://' if matrix_playbook_ssl_enabled else 'http://') + matrix_server_fqn_matrix }}"
  4698. matrix_static_files_file_matrix_client_property_io_element_jitsi_preferred_domain: "{{ matrix_server_fqn_jitsi if jitsi_enabled else '' }}"
  4699. matrix_static_files_file_matrix_client_property_org_matrix_msc3575_proxy_url: "{{ matrix_homeserver_sliding_sync_url }}"
  4700. matrix_static_files_file_matrix_client_property_org_matrix_msc2965_authentication_enabled: "{{ matrix_authentication_service_enabled }}"
  4701. matrix_static_files_file_matrix_client_property_org_matrix_msc2965_authentication_issuer: "{{ matrix_authentication_service_config_http_issuer if matrix_authentication_service_enabled else '' }}"
  4702. matrix_static_files_file_matrix_client_property_org_matrix_msc2965_authentication_account: "{{ matrix_authentication_service_account_management_url }}"
  4703. matrix_static_files_file_matrix_client_property_m_tile_server_entries_enabled: "{{ matrix_client_element_location_sharing_enabled }}"
  4704. matrix_static_files_file_matrix_client_property_m_tile_server_map_style_url: "{{ ('https://' if matrix_playbook_ssl_enabled else 'http://') + matrix_server_fqn_element }}/map_style.json"
  4705. # We set this regardless of whether synapse-admin is enabled, because people may wish to use a hosted (externally) synapse-admin installation and still have it auto-configured.
  4706. # See: https://github.com/etkecc/synapse-admin/pull/126
  4707. matrix_static_files_file_matrix_client_property_cc_etke_synapse_admin_auto: "{{ matrix_synapse_admin_configuration if matrix_homeserver_implementation == 'synapse' else {} }}"
  4708. matrix_static_files_file_matrix_server_property_m_server: "{{ matrix_server_fqn_matrix_federation }}:{{ matrix_federation_public_port }}"
  4709. matrix_static_files_scheme: "{{ 'https' if matrix_playbook_ssl_enabled else 'http' }}"
  4710. matrix_static_files_self_check_hostname_matrix: "{{ matrix_server_fqn_matrix }}"
  4711. matrix_static_files_self_check_hostname_identity: "{{ matrix_domain }}"
  4712. ########################################################################
  4713. # #
  4714. # /matrix-static-files #
  4715. # #
  4716. ########################################################################
  4717. ########################################################################
  4718. # #
  4719. # com.devture.ansible.role.container_socket_proxy #
  4720. # #
  4721. ########################################################################
  4722. devture_container_socket_proxy_enabled: "{{ matrix_playbook_reverse_proxy_type == 'playbook-managed-traefik' }}"
  4723. devture_container_socket_proxy_identifier: matrix-container-socket-proxy
  4724. devture_container_socket_proxy_base_path: "{{ matrix_base_data_path }}/container-socket-proxy"
  4725. devture_container_socket_proxy_uid: "{{ matrix_user_uid }}"
  4726. devture_container_socket_proxy_gid: "{{ matrix_user_gid }}"
  4727. # Traefik requires read access to the containers APIs to do its job
  4728. devture_container_socket_proxy_api_containers_enabled: true
  4729. ########################################################################
  4730. # #
  4731. # /com.devture.ansible.role.container_socket_proxy #
  4732. # #
  4733. ########################################################################
  4734. ########################################################################
  4735. # #
  4736. # traefik #
  4737. # #
  4738. ########################################################################
  4739. traefik_enabled: "{{ matrix_playbook_reverse_proxy_type == 'playbook-managed-traefik' }}"
  4740. traefik_identifier: matrix-traefik
  4741. traefik_base_path: "{{ matrix_base_data_path }}/traefik"
  4742. traefik_uid: "{{ matrix_user_uid }}"
  4743. traefik_gid: "{{ matrix_user_gid }}"
  4744. # It's common for setups to deal with large file uploads which may take longer than the default readTimeout (60s).
  4745. # This override (for the `web` entrypoint) also cascades to overriding the `web-secure` entrypoint and the `matrix-federation` entrypoint.
  4746. traefik_config_entrypoint_web_transport_respondingTimeouts_readTimeout: 300s
  4747. traefik_additional_entrypoints_auto: |
  4748. {{
  4749. ([matrix_playbook_public_matrix_federation_api_traefik_entrypoint_definition] if matrix_playbook_public_matrix_federation_api_traefik_entrypoint_enabled else [])
  4750. +
  4751. ([matrix_playbook_internal_matrix_client_api_traefik_entrypoint_definition] if matrix_playbook_internal_matrix_client_api_traefik_entrypoint_enabled else [])
  4752. }}
  4753. traefik_config_providers_docker_endpoint: "{{ devture_container_socket_proxy_endpoint if devture_container_socket_proxy_enabled else 'unix:///var/run/docker.sock' }}"
  4754. traefik_container_additional_networks_auto: |
  4755. {{
  4756. ([devture_container_socket_proxy_container_network] if devture_container_socket_proxy_enabled else [])
  4757. }}
  4758. traefik_systemd_required_services_list: |
  4759. {{
  4760. ([devture_systemd_docker_base_docker_service_name])
  4761. +
  4762. ([devture_container_socket_proxy_identifier + '.service'] if devture_container_socket_proxy_enabled else [])
  4763. }}
  4764. ########################################################################
  4765. # #
  4766. # /traefik #
  4767. # #
  4768. ########################################################################
  4769. ########################################################################
  4770. # #
  4771. # traefik_certs_dumper #
  4772. # #
  4773. ########################################################################
  4774. traefik_certs_dumper_enabled: "{{ (matrix_playbook_reverse_proxy_type == 'playbook-managed-traefik' and traefik_config_entrypoint_web_secure_enabled and traefik_config_certificatesResolvers_acme_enabled) or matrix_playbook_reverse_proxy_type == 'other-traefik-container' }}"
  4775. traefik_certs_dumper_identifier: matrix-traefik-certs-dumper
  4776. traefik_certs_dumper_base_path: "{{ matrix_base_data_path }}/traefik-certs-dumper"
  4777. traefik_certs_dumper_uid: "{{ matrix_user_uid }}"
  4778. traefik_certs_dumper_gid: "{{ matrix_user_gid }}"
  4779. traefik_certs_dumper_ssl_dir_path: "{{ traefik_ssl_dir_path if traefik_enabled else '' }}"
  4780. ########################################################################
  4781. # #
  4782. # /traefik_certs_dumper #
  4783. # #
  4784. ########################################################################