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

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