Matrix Docker Ansible eploy
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 

2469 linhas
108 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. # matrix-base
  13. #
  14. ######################################################################
  15. matrix_identity_server_url: "{{ ('https://' + matrix_server_fqn_matrix) if matrix_ma1sd_enabled else None }}"
  16. # If Synapse workers are enabled and matrix-nginx-proxy is disabled, certain APIs may not work over 'http://matrix-synapse:{{ matrix_synapse_container_client_api_port }}'.
  17. # This is because we explicitly disable them for the main Synapse process.
  18. matrix_homeserver_container_url: |-
  19. {{
  20. 'http://matrix-nginx-proxy:12080' if matrix_nginx_proxy_enabled else {
  21. 'synapse': ('http://matrix-synapse:'+ matrix_synapse_container_client_api_port | string),
  22. 'dendrite': ('http://matrix-dendrite:' + matrix_dendrite_http_bind_port | string),
  23. }[matrix_homeserver_implementation]
  24. }}
  25. matrix_homeserver_container_federation_url: |-
  26. {{
  27. 'http://matrix-nginx-proxy:12088' if matrix_nginx_proxy_enabled else {
  28. 'synapse': ('http://matrix-synapse:'+ matrix_synapse_container_federation_api_plain_port | string),
  29. 'dendrite': ('http://matrix-dendrite:' + matrix_dendrite_http_bind_port | string),
  30. }[matrix_homeserver_implementation]
  31. }}
  32. matrix_integration_manager_rest_url: "{{ matrix_dimension_integrations_rest_url if matrix_dimension_enabled else None }}"
  33. matrix_integration_manager_ui_url: "{{ matrix_dimension_integrations_ui_url if matrix_dimension_enabled else None }}"
  34. ######################################################################
  35. #
  36. # /matrix-base
  37. #
  38. ######################################################################
  39. ######################################################################
  40. #
  41. # matrix-bridge-appservice-discord
  42. #
  43. ######################################################################
  44. # We don't enable bridges by default.
  45. matrix_appservice_discord_enabled: false
  46. # Normally, matrix-nginx-proxy is enabled and nginx can reach matrix-appservice-discord over the container network.
  47. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  48. # matrix-appservice-discord's client-server port to the local host.
  49. matrix_appservice_discord_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:9005' }}"
  50. # If the homeserver disables presence, it's likely better (less wasteful) to also disable presence on the bridge side.
  51. matrix_appservice_discord_bridge_disablePresence: "{{ not matrix_synapse_presence_enabled }}"
  52. matrix_appservice_discord_systemd_required_services_list: |
  53. {{
  54. ['docker.service']
  55. +
  56. ['matrix-' + matrix_homeserver_implementation + '.service']
  57. +
  58. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  59. +
  60. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  61. }}
  62. matrix_appservice_discord_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'discord.as.token') | to_uuid }}"
  63. matrix_appservice_discord_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'discord.hs.token') | to_uuid }}"
  64. # We only make this use Postgres if our own Postgres server is enabled.
  65. # It's only then (for now) that we can automatically create the necessary database and user for this service.
  66. matrix_appservice_discord_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  67. matrix_appservice_discord_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'as.discord.db') | to_uuid }}"
  68. ######################################################################
  69. #
  70. # /matrix-bridge-appservice-discord
  71. #
  72. ######################################################################
  73. ######################################################################
  74. #
  75. # matrix-appservice-webhooks
  76. #
  77. ######################################################################
  78. # We don't enable bridges by default.
  79. matrix_appservice_webhooks_enabled: false
  80. matrix_appservice_webhooks_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  81. # Normally, matrix-nginx-proxy is enabled and nginx can reach matrix-appservice-webhooks over the container network.
  82. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  83. # matrix-appservice-webhooks' client-server port to the local host.
  84. matrix_appservice_webhooks_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else ('127.0.0.1:' ~ matrix_appservice_webhooks_matrix_port) }}"
  85. matrix_appservice_webhooks_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'webhook.as.token') | to_uuid }}"
  86. matrix_appservice_webhooks_homeserver_url: "{{ matrix_homeserver_container_url }}"
  87. matrix_appservice_webhooks_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'webhook.hs.token') | to_uuid }}"
  88. matrix_appservice_webhooks_id_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'webhook.id.token') | to_uuid }}"
  89. matrix_appservice_webhooks_systemd_required_services_list: |
  90. {{
  91. ['docker.service']
  92. +
  93. ['matrix-' + matrix_homeserver_implementation + '.service']
  94. +
  95. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  96. }}
  97. ######################################################################
  98. #
  99. # /matrix-appservice-webhooks
  100. #
  101. ######################################################################
  102. ######################################################################
  103. #
  104. # matrix-appservice-slack
  105. #
  106. ######################################################################
  107. # We don't enable bridges by default.
  108. matrix_appservice_slack_enabled: false
  109. matrix_appservice_slack_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  110. # Normally, matrix-nginx-proxy is enabled and nginx can reach matrix-appservice-slack over the container network.
  111. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  112. # matrix-appservice-slack's client-server port to the local host.
  113. matrix_appservice_slack_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else ('127.0.0.1:' ~ matrix_appservice_slack_slack_port) }}"
  114. matrix_appservice_slack_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'slack.as.token') | to_uuid }}"
  115. matrix_appservice_slack_homeserver_url: "{{ matrix_homeserver_container_url }}"
  116. matrix_appservice_slack_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'slack.hs.token') | to_uuid }}"
  117. matrix_appservice_slack_id_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'slack.id.token') | to_uuid }}"
  118. matrix_appservice_slack_systemd_required_services_list: |
  119. {{
  120. ['docker.service']
  121. +
  122. ['matrix-' + matrix_homeserver_implementation + '.service']
  123. +
  124. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  125. }}
  126. # Postgres is the default, except if not using `matrix_postgres` (internal postgres)
  127. matrix_appservice_slack_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'nedb' }}"
  128. matrix_appservice_slack_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'as.slack.db') | to_uuid }}"
  129. ######################################################################
  130. #
  131. # /matrix-bridge-appservice-slack
  132. #
  133. ######################################################################
  134. ######################################################################
  135. #
  136. # matrix-bridge-appservice-irc
  137. #
  138. ######################################################################
  139. # We don't enable bridges by default.
  140. matrix_appservice_irc_enabled: false
  141. matrix_appservice_irc_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  142. # Normally, matrix-nginx-proxy is enabled and nginx can reach matrix-appservice-irc over the container network.
  143. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  144. # matrix-appservice-irc's client-server port to the local host.
  145. matrix_appservice_irc_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:9999' }}"
  146. # The IRC bridge docs say that if homeserver presence is disabled, it's better to also disable
  147. # IRC bridge presence, for performance reasons.
  148. matrix_appservice_irc_homeserver_enablePresence: "{{ matrix_synapse_presence_enabled }}"
  149. matrix_appservice_irc_systemd_required_services_list: |
  150. {{
  151. ['docker.service']
  152. +
  153. ['matrix-' + matrix_homeserver_implementation + '.service']
  154. +
  155. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  156. }}
  157. matrix_appservice_irc_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'irc.as.token') | to_uuid }}"
  158. matrix_appservice_irc_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'irc.hs.token') | to_uuid }}"
  159. matrix_appservice_irc_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'nedb' }}"
  160. matrix_appservice_irc_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'as.irc.db') | to_uuid }}"
  161. ######################################################################
  162. #
  163. # /matrix-bridge-appservice-irc
  164. #
  165. ######################################################################
  166. ######################################################################
  167. #
  168. # matrix-bridge-beeper-linkedin
  169. #
  170. ######################################################################
  171. # We don't enable bridges by default.
  172. matrix_beeper_linkedin_enabled: false
  173. matrix_beeper_linkedin_container_image_self_build: "{{ matrix_architecture not in ['amd64'] }}"
  174. matrix_beeper_linkedin_systemd_required_services_list: |
  175. {{
  176. ['docker.service']
  177. +
  178. ['matrix-' + matrix_homeserver_implementation + '.service']
  179. +
  180. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  181. +
  182. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  183. }}
  184. matrix_beeper_linkedin_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'linked.as.token') | to_uuid }}"
  185. matrix_beeper_linkedin_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'linked.hs.token') | to_uuid }}"
  186. 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 '' }}"
  187. matrix_beeper_linkedin_bridge_presence: "{{ matrix_synapse_presence_enabled if matrix_synapse_enabled else true }}"
  188. matrix_beeper_linkedin_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'maulinkedin.db') | to_uuid }}"
  189. ######################################################################
  190. #
  191. # /matrix-bridge-beeper-linkedin
  192. #
  193. ######################################################################
  194. ######################################################################
  195. #
  196. # matrix-bridge-go-skype-bridge
  197. #
  198. ######################################################################
  199. # We don't enable bridges by default.
  200. matrix_go_skype_bridge_enabled: false
  201. matrix_go_skype_bridge_container_image_self_build: true
  202. matrix_go_skype_bridge_systemd_required_services_list: |
  203. {{
  204. ['docker.service']
  205. +
  206. ['matrix-' + matrix_homeserver_implementation + '.service']
  207. +
  208. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  209. +
  210. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  211. }}
  212. matrix_go_skype_bridge_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'skype.as.token') | to_uuid }}"
  213. matrix_go_skype_bridge_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'skype.hs.token') | to_uuid }}"
  214. 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 '' }}"
  215. # Postgres is the default, except if not using `matrix_postgres` (internal postgres)
  216. matrix_go_skype_bridge_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  217. matrix_go_skype_bridge_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'goskype.db') | to_uuid }}"
  218. ######################################################################
  219. #
  220. # /matrix-bridge-go-skype-bridge
  221. #
  222. ######################################################################
  223. ######################################################################
  224. #
  225. # matrix-bridge-mautrix-facebook
  226. #
  227. ######################################################################
  228. # We don't enable bridges by default.
  229. matrix_mautrix_facebook_enabled: false
  230. matrix_mautrix_facebook_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm64'] }}"
  231. matrix_mautrix_facebook_systemd_required_services_list: |
  232. {{
  233. ['docker.service']
  234. +
  235. ['matrix-' + matrix_homeserver_implementation + '.service']
  236. +
  237. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  238. +
  239. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  240. }}
  241. matrix_mautrix_facebook_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'fb.as.token') | to_uuid }}"
  242. matrix_mautrix_facebook_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'fb.hs.token') | to_uuid }}"
  243. matrix_mautrix_facebook_public_endpoint: "/{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'facebook') | to_uuid }}"
  244. matrix_mautrix_facebook_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:9008' }}"
  245. 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 '' }}"
  246. matrix_mautrix_facebook_bridge_presence: "{{ matrix_synapse_presence_enabled if matrix_synapse_enabled else true }}"
  247. # We'd like to force-set people with external Postgres to SQLite, so the bridge role can complain
  248. # and point them to a migration path.
  249. matrix_mautrix_facebook_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  250. matrix_mautrix_facebook_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mau.fb.db') | to_uuid }}"
  251. ######################################################################
  252. #
  253. # /matrix-bridge-mautrix-facebook
  254. #
  255. ######################################################################
  256. ######################################################################
  257. #
  258. # matrix-bridge-mautrix-hangouts
  259. #
  260. ######################################################################
  261. # We don't enable bridges by default.
  262. matrix_mautrix_hangouts_enabled: false
  263. matrix_mautrix_hangouts_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm64'] }}"
  264. matrix_mautrix_hangouts_systemd_required_services_list: |
  265. {{
  266. ['docker.service']
  267. +
  268. ['matrix-' + matrix_homeserver_implementation + '.service']
  269. +
  270. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  271. +
  272. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  273. }}
  274. matrix_mautrix_hangouts_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'ho.as.token') | to_uuid }}"
  275. matrix_mautrix_hangouts_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'ho.hs.token') | to_uuid }}"
  276. matrix_mautrix_hangouts_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:9007' }}"
  277. 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 '' }}"
  278. # Postgres is the default, except if not using `matrix_postgres` (internal postgres)
  279. matrix_mautrix_hangouts_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  280. matrix_mautrix_hangouts_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mau.hangouts.db') | to_uuid }}"
  281. ######################################################################
  282. #
  283. # /matrix-bridge-mautrix-hangouts
  284. #
  285. ######################################################################
  286. ######################################################################
  287. #
  288. # matrix-bridge-mautrix-googlechat
  289. #
  290. ######################################################################
  291. # We don't enable bridges by default.
  292. matrix_mautrix_googlechat_enabled: false
  293. matrix_mautrix_googlechat_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm64'] }}"
  294. matrix_mautrix_googlechat_systemd_required_services_list: |
  295. {{
  296. ['docker.service']
  297. +
  298. ['matrix-' + matrix_homeserver_implementation + '.service']
  299. +
  300. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  301. +
  302. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  303. }}
  304. matrix_mautrix_googlechat_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'gc.as.token') | to_uuid }}"
  305. matrix_mautrix_googlechat_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'gc.hs.token') | to_uuid }}"
  306. matrix_mautrix_googlechat_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:9007' }}"
  307. 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 '' }}"
  308. # Postgres is the default, except if not using `matrix_postgres` (internal postgres)
  309. matrix_mautrix_googlechat_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  310. matrix_mautrix_googlechat_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mau.gc.db') | to_uuid }}"
  311. ######################################################################
  312. #
  313. # /matrix-bridge-mautrix-googlechat
  314. #
  315. ######################################################################
  316. ######################################################################
  317. #
  318. # matrix-bridge-mautrix-instagram
  319. #
  320. ######################################################################
  321. # We don't enable bridges by default.
  322. matrix_mautrix_instagram_enabled: false
  323. matrix_mautrix_instagram_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm64'] }}"
  324. matrix_mautrix_instagram_systemd_required_services_list: |
  325. {{
  326. ['docker.service']
  327. +
  328. ['matrix-' + matrix_homeserver_implementation + '.service']
  329. +
  330. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  331. +
  332. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  333. }}
  334. matrix_mautrix_instagram_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'ig.as.token') | to_uuid }}"
  335. matrix_mautrix_instagram_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'ig.hs.token') | to_uuid }}"
  336. 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 '' }}"
  337. matrix_mautrix_instagram_bridge_presence: "{{ matrix_synapse_presence_enabled if matrix_synapse_enabled else true }}"
  338. # We'd like to force-set people with external Postgres to SQLite, so the bridge role can complain
  339. # and point them to a migration path.
  340. matrix_mautrix_instagram_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  341. matrix_mautrix_instagram_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mau.ig.db') | to_uuid }}"
  342. ######################################################################
  343. #
  344. # /matrix-bridge-mautrix-instagram
  345. #
  346. ######################################################################
  347. ######################################################################
  348. #
  349. # matrix-bridge-mautrix-signal
  350. #
  351. ######################################################################
  352. # We don't enable bridges by default.
  353. matrix_mautrix_signal_enabled: false
  354. matrix_mautrix_signal_systemd_required_services_list: |
  355. {{
  356. ['docker.service']
  357. +
  358. ['matrix-' + matrix_homeserver_implementation + '.service']
  359. +
  360. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  361. +
  362. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  363. +
  364. ['matrix-mautrix-signal-daemon.service']
  365. }}
  366. matrix_mautrix_signal_homeserver_domain: '{{ matrix_domain }}'
  367. matrix_mautrix_signal_homeserver_address: "{{ matrix_homeserver_container_url }}"
  368. matrix_mautrix_signal_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'si.hs.token') | to_uuid }}"
  369. matrix_mautrix_signal_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'si.as.token') | to_uuid }}"
  370. 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 '' }}"
  371. matrix_mautrix_signal_database_engine: 'postgres'
  372. matrix_mautrix_signal_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mau.signal.db') | to_uuid }}"
  373. matrix_mautrix_signal_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm64'] }}"
  374. matrix_mautrix_signal_daemon_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm64'] }}"
  375. ######################################################################
  376. #
  377. # /matrix-bridge-mautrix-signal
  378. #
  379. ######################################################################
  380. ######################################################################
  381. #
  382. # matrix-bridge-mautrix-telegram
  383. #
  384. ######################################################################
  385. # We don't enable bridges by default.
  386. matrix_mautrix_telegram_enabled: false
  387. # Images are multi-arch (amd64 and arm64, but not arm32).
  388. matrix_mautrix_telegram_container_image_self_build: "{{ matrix_architecture not in ['arm64', 'amd64'] }}"
  389. matrix_telegram_lottieconverter_container_image_self_build: "{{ matrix_architecture not in ['arm64', 'amd64'] }}"
  390. matrix_telegram_lottieconverter_container_image_self_build_mask_arch: "{{ matrix_architecture != 'amd64' }}"
  391. matrix_mautrix_telegram_systemd_required_services_list: |
  392. {{
  393. ['docker.service']
  394. +
  395. ['matrix-' + matrix_homeserver_implementation + '.service']
  396. +
  397. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  398. +
  399. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  400. }}
  401. matrix_mautrix_telegram_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'telegr.as.token') | to_uuid }}"
  402. matrix_mautrix_telegram_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'telegr.hs.token') | to_uuid }}"
  403. matrix_mautrix_telegram_public_endpoint: "/{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'telegram') | to_uuid }}"
  404. matrix_mautrix_telegram_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:9006' }}"
  405. 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 '' }}"
  406. # Postgres is the default, except if not using `matrix_postgres` (internal postgres)
  407. matrix_mautrix_telegram_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  408. matrix_mautrix_telegram_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mau.telegram.db') | to_uuid }}"
  409. ######################################################################
  410. #
  411. # /matrix-bridge-mautrix-telegram
  412. #
  413. ######################################################################
  414. ######################################################################
  415. #
  416. # matrix-bridge-mautrix-twitter
  417. #
  418. ######################################################################
  419. # We don't enable bridges by default.
  420. matrix_mautrix_twitter_enabled: false
  421. matrix_mautrix_twitter_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm64'] }}"
  422. matrix_mautrix_twitter_systemd_required_services_list: |
  423. {{
  424. ['docker.service']
  425. +
  426. ['matrix-' + matrix_homeserver_implementation + '.service']
  427. +
  428. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  429. +
  430. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  431. }}
  432. matrix_mautrix_twitter_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'twt.as.token') | to_uuid }}"
  433. matrix_mautrix_twitter_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'twt.hs.token') | to_uuid }}"
  434. 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 '' }}"
  435. matrix_mautrix_twitter_database_hostname: "{{ 'matrix-postgres' if matrix_postgres_enabled else '' }}"
  436. matrix_mautrix_twitter_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mau.twt.db') | to_uuid if matrix_postgres_enabled else '' }}"
  437. ######################################################################
  438. #
  439. # /matrix-bridge-mautrix-twitter
  440. #
  441. ######################################################################
  442. ######################################################################
  443. #
  444. # matrix-bridge-mautrix-whatsapp
  445. #
  446. ######################################################################
  447. # We don't enable bridges by default.
  448. matrix_mautrix_whatsapp_enabled: false
  449. matrix_mautrix_whatsapp_container_image_self_build: "{{ matrix_architecture not in ['arm64', 'amd64'] }}"
  450. matrix_mautrix_whatsapp_systemd_required_services_list: |
  451. {{
  452. ['docker.service']
  453. +
  454. ['matrix-' + matrix_homeserver_implementation + '.service']
  455. +
  456. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  457. +
  458. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  459. }}
  460. matrix_mautrix_whatsapp_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'whats.as.token') | to_uuid }}"
  461. matrix_mautrix_whatsapp_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'whats.hs.token') | to_uuid }}"
  462. 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 '' }}"
  463. # Postgres is the default, except if not using `matrix_postgres` (internal postgres)
  464. matrix_mautrix_whatsapp_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  465. matrix_mautrix_whatsapp_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mauwhatsapp.db') | to_uuid }}"
  466. ######################################################################
  467. #
  468. # /matrix-bridge-mautrix-whatsapp
  469. #
  470. ######################################################################
  471. ######################################################################
  472. #
  473. # matrix-bridge-mautrix-wsproxy
  474. #
  475. ######################################################################
  476. # We don't enable bridges by default.
  477. matrix_mautrix_wsproxy_enabled: false
  478. matrix_mautrix_wsproxy_systemd_required_services_list: |
  479. {{
  480. ['docker.service']
  481. +
  482. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  483. +
  484. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  485. }}
  486. matrix_mautrix_wsproxy_homeserver_domain: '{{ matrix_domain }}'
  487. matrix_mautrix_wsproxy_homeserver_address: "{{ 'http://matrix-synapse:8008' if matrix_synapse_enabled else '' }}"
  488. matrix_mautrix_wsproxy_homeserver_token: "{{ matrix_homeserver_generic_secret_key | password_hash('sha512', 'wsproxy.hs.token') | to_uuid }}"
  489. matrix_mautrix_wsproxy_appservice_token: "{{ matrix_homeserver_generic_secret_key | password_hash('sha512', 'wsproxy.as.token') | to_uuid }}"
  490. matrix_mautrix_wsproxy_login_shared_secret: "{{ matrix_synapse_ext_password_provider_shared_secret_auth_shared_secret if matrix_synapse_ext_password_provider_shared_secret_auth_enabled else '' }}"
  491. # Postgres is the default, except if not using `matrix_postgres` (internal postgres)
  492. ######################################################################
  493. #
  494. # /matrix-bridge-mautrix-wsproxy
  495. #
  496. ######################################################################
  497. ######################################################################
  498. #
  499. # matrix-sms-bridge
  500. #
  501. ######################################################################
  502. # We don't enable bridges by default.
  503. matrix_sms_bridge_enabled: false
  504. matrix_sms_bridge_systemd_required_services_list: |
  505. {{
  506. ['docker.service']
  507. +
  508. ['matrix-' + matrix_homeserver_implementation + '.service']
  509. +
  510. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  511. }}
  512. matrix_sms_bridge_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'sms.as.token') | to_uuid }}"
  513. matrix_sms_bridge_homeserver_port: "{{ matrix_synapse_container_client_api_port }}"
  514. matrix_sms_bridge_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'sms.hs.token') | to_uuid }}"
  515. ######################################################################
  516. #
  517. # /matrix-sms-bridge
  518. #
  519. ######################################################################
  520. ######################################################################
  521. #
  522. # matrix-bridge-heisenbridge
  523. #
  524. ######################################################################
  525. # We don't enable bridges by default.
  526. matrix_heisenbridge_enabled: false
  527. matrix_heisenbridge_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'heisen.as.tok') | to_uuid }}"
  528. matrix_heisenbridge_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'heisen.hs.tok') | to_uuid }}"
  529. matrix_heisenbridge_systemd_wanted_services_list: |
  530. {{
  531. ['matrix-' + matrix_homeserver_implementation + '.service']
  532. +
  533. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  534. }}
  535. ######################################################################
  536. #
  537. # /matrix-bridge-heisenbridge
  538. #
  539. ######################################################################
  540. ######################################################################
  541. #
  542. # matrix-bridge-hookshot
  543. #
  544. ######################################################################
  545. # We don't enable bridges by default.
  546. matrix_hookshot_enabled: false
  547. matrix_hookshot_container_image_self_build: "{{ matrix_architecture not in ['amd64'] }}"
  548. matrix_hookshot_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'hookshot.as.tok') | to_uuid }}"
  549. matrix_hookshot_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'hookshot.hs.tok') | to_uuid }}"
  550. matrix_hookshot_systemd_wanted_services_list: |
  551. {{
  552. (['matrix-' + matrix_homeserver_implementation + '.service'])
  553. +
  554. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  555. }}
  556. matrix_hookshot_container_http_host_bind_ports_defaultmapping:
  557. - "127.0.0.1:{{ matrix_hookshot_appservice_port }}:{{ matrix_hookshot_appservice_port }}"
  558. - "127.0.0.1:{{ matrix_hookshot_metrics_port }}:{{ matrix_hookshot_metrics_port }}"
  559. - "127.0.0.1:{{ matrix_hookshot_webhook_port }}:{{ matrix_hookshot_webhook_port }}"
  560. - "127.0.0.1:{{ matrix_hookshot_provisioning_port }}:{{ matrix_hookshot_provisioning_port }}"
  561. matrix_hookshot_container_http_host_bind_ports: "{{ [] if matrix_nginx_proxy_enabled else matrix_hookshot_container_http_host_bind_ports_defaultmapping }}"
  562. matrix_hookshot_provisioning_enabled: "{{ matrix_hookshot_provisioning_secret and matrix_dimension_enabled }}"
  563. # We only enable metrics (locally, in the container network) for the bridge if Prometheus is enabled.
  564. #
  565. # People using an external Prometheus server will need to toggle all of these to be able to consume metrics remotely:
  566. # - `matrix_hookshot_metrics_enabled`
  567. # - `matrix_hookshot_metrics_proxying_enabled`
  568. # - `matrix_nginx_proxy_proxy_matrix_metrics_enabled`
  569. matrix_hookshot_metrics_enabled: "{{ matrix_prometheus_enabled }}"
  570. matrix_hookshot_urlprefix_port_enabled: "{{ matrix_nginx_proxy_container_https_host_bind_port == 443 if matrix_nginx_proxy_https_enabled else matrix_nginx_proxy_container_https_host_bind_port == 80 }}"
  571. matrix_hookshot_urlprefix_port: ":{{ matrix_nginx_proxy_container_https_host_bind_port if matrix_nginx_proxy_https_enabled else matrix_nginx_proxy_container_http_host_bind_port }}"
  572. matrix_hookshot_urlprefix: "http{{ 's' if matrix_nginx_proxy_https_enabled else '' }}://{{ matrix_server_fqn_matrix }}{{ matrix_hookshot_urlprefix_port if matrix_hookshot_urlprefix_port_enabled else '' }}"
  573. ######################################################################
  574. #
  575. # /matrix-bridge-hookshot
  576. #
  577. ######################################################################
  578. ######################################################################
  579. #
  580. # matrix-bridge-mx-puppet-slack
  581. #
  582. ######################################################################
  583. # We don't enable bridges by default.
  584. matrix_mx_puppet_slack_enabled: false
  585. matrix_mx_puppet_slack_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  586. matrix_mx_puppet_slack_systemd_required_services_list: |
  587. {{
  588. ['docker.service']
  589. +
  590. ['matrix-' + matrix_homeserver_implementation + '.service']
  591. +
  592. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  593. +
  594. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  595. }}
  596. matrix_mx_puppet_slack_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mxslk.as.tok') | to_uuid }}"
  597. matrix_mx_puppet_slack_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mxslk.hs.tok') | to_uuid }}"
  598. 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 '' }}"
  599. # Postgres is the default, except if not using `matrix_postgres` (internal postgres)
  600. matrix_mx_puppet_slack_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  601. matrix_mx_puppet_slack_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mxpup.slack.db') | to_uuid }}"
  602. ######################################################################
  603. #
  604. # /matrix-bridge-mx-puppet-slack
  605. #
  606. ######################################################################
  607. ######################################################################
  608. #
  609. # matrix-bridge-mx-puppet-twitter
  610. #
  611. ######################################################################
  612. # We don't enable bridges by default.
  613. matrix_mx_puppet_twitter_enabled: false
  614. matrix_mx_puppet_twitter_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  615. matrix_mx_puppet_twitter_systemd_required_services_list: |
  616. {{
  617. ['docker.service']
  618. +
  619. ['matrix-' + matrix_homeserver_implementation + '.service']
  620. +
  621. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  622. +
  623. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  624. }}
  625. matrix_mx_puppet_twitter_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mxtwt.as.tok') | to_uuid }}"
  626. matrix_mx_puppet_twitter_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mxtwt.hs.tok') | to_uuid }}"
  627. 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 '' }}"
  628. matrix_mx_puppet_twitter_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else ('127.0.0.1:' ~ matrix_mx_puppet_twitter_appservice_port) }}"
  629. # Postgres is the default, except if not using `matrix_postgres` (internal postgres)
  630. matrix_mx_puppet_twitter_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  631. matrix_mx_puppet_twitter_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mxpup.twitter.db') | to_uuid }}"
  632. ######################################################################
  633. #
  634. # /matrix-bridge-mx-puppet-twitter
  635. #
  636. ######################################################################
  637. ######################################################################
  638. #
  639. # matrix-bridge-mx-puppet-instagram
  640. #
  641. ######################################################################
  642. # We don't enable bridges by default.
  643. matrix_mx_puppet_instagram_enabled: false
  644. matrix_mx_puppet_instagram_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  645. matrix_mx_puppet_instagram_systemd_required_services_list: |
  646. {{
  647. ['docker.service']
  648. +
  649. ['matrix-' + matrix_homeserver_implementation + '.service']
  650. +
  651. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  652. +
  653. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  654. }}
  655. matrix_mx_puppet_instagram_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mxig.as.tok') | to_uuid }}"
  656. matrix_mx_puppet_instagram_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mxig.hs.tok') | to_uuid }}"
  657. 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 '' }}"
  658. # Postgres is the default, except if not using `matrix_postgres` (internal postgres)
  659. matrix_mx_puppet_instagram_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  660. matrix_mx_puppet_instagram_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mxpup.ig.db') | to_uuid }}"
  661. ######################################################################
  662. #
  663. # /matrix-bridge-mx-puppet-instagram
  664. #
  665. ######################################################################
  666. ######################################################################
  667. #
  668. # matrix-bridge-mx-puppet-discord
  669. #
  670. ######################################################################
  671. # We don't enable bridges by default.
  672. matrix_mx_puppet_discord_enabled: false
  673. matrix_mx_puppet_discord_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  674. matrix_mx_puppet_discord_systemd_required_services_list: |
  675. {{
  676. ['docker.service']
  677. +
  678. ['matrix-' + matrix_homeserver_implementation + '.service']
  679. +
  680. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  681. +
  682. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  683. }}
  684. matrix_mx_puppet_discord_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mxdsc.as.tok') | to_uuid }}"
  685. matrix_mx_puppet_discord_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mxdsc.hs.tok') | to_uuid }}"
  686. 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 '' }}"
  687. # Postgres is the default, except if not using `matrix_postgres` (internal postgres)
  688. matrix_mx_puppet_discord_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  689. matrix_mx_puppet_discord_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mxpup.dsc.db') | to_uuid }}"
  690. ######################################################################
  691. #
  692. # /matrix-bridge-mx-puppet-discord
  693. #
  694. ######################################################################
  695. ######################################################################
  696. #
  697. # matrix-bridge-mx-puppet-steam
  698. #
  699. ######################################################################
  700. # We don't enable bridges by default.
  701. matrix_mx_puppet_steam_enabled: false
  702. matrix_mx_puppet_steam_container_image_self_build: "{{ matrix_architecture not in ['arm64', 'amd64'] }}"
  703. matrix_mx_puppet_steam_systemd_required_services_list: |
  704. {{
  705. ['docker.service']
  706. +
  707. ['matrix-' + matrix_homeserver_implementation + '.service']
  708. +
  709. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  710. +
  711. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  712. }}
  713. matrix_mx_puppet_steam_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mxste.as.tok') | to_uuid }}"
  714. matrix_mx_puppet_steam_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mxste.hs.tok') | to_uuid }}"
  715. 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 '' }}"
  716. # Postgres is the default, except if not using `matrix_postgres` (internal postgres)
  717. matrix_mx_puppet_steam_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  718. matrix_mx_puppet_steam_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mxpup.steam.db') | to_uuid }}"
  719. ######################################################################
  720. #
  721. # /matrix-bridge-mx-puppet-steam
  722. #
  723. ######################################################################
  724. ######################################################################
  725. #
  726. # matrix-bridge-mx-puppet-groupme
  727. #
  728. ######################################################################
  729. # We don't enable bridges by default.
  730. matrix_mx_puppet_groupme_enabled: false
  731. matrix_mx_puppet_groupme_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  732. matrix_mx_puppet_groupme_systemd_required_services_list: |
  733. {{
  734. ['docker.service']
  735. +
  736. ['matrix-' + matrix_homeserver_implementation + '.service']
  737. +
  738. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  739. +
  740. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  741. }}
  742. matrix_mx_puppet_groupme_appservice_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mxgro.as.tok') | to_uuid }}"
  743. matrix_mx_puppet_groupme_homeserver_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mxgro.hs.tok') | to_uuid }}"
  744. 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 '' }}"
  745. # Postgres is the default, except if not using `matrix_postgres` (internal postgres)
  746. matrix_mx_puppet_groupme_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  747. matrix_mx_puppet_groupme_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mxpup.groupme.db') | to_uuid }}"
  748. ######################################################################
  749. #
  750. # /matrix-bridge-mx-puppet-groupme
  751. #
  752. ######################################################################
  753. ######################################################################
  754. #
  755. # matrix-bot-matrix-reminder-bot
  756. #
  757. ######################################################################
  758. # We don't enable bots by default.
  759. matrix_bot_matrix_reminder_bot_enabled: false
  760. matrix_bot_matrix_reminder_bot_systemd_required_services_list: |
  761. {{
  762. ['docker.service']
  763. +
  764. ['matrix-' + matrix_homeserver_implementation + '.service']
  765. +
  766. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  767. +
  768. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  769. }}
  770. # Postgres is the default, except if not using `matrix_postgres` (internal postgres)
  771. matrix_bot_matrix_reminder_bot_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  772. matrix_bot_matrix_reminder_bot_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'reminder.bot.db') | to_uuid }}"
  773. matrix_bot_matrix_reminder_bot_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  774. ######################################################################
  775. #
  776. # /matrix-bot-matrix-reminder-bot
  777. #
  778. ######################################################################
  779. ######################################################################
  780. #
  781. # matrix-bot-matrix-registration-bot
  782. #
  783. ######################################################################
  784. # We don't enable bots by default.
  785. matrix_bot_matrix_registration_bot_enabled: false
  786. matrix_bot_matrix_registration_bot_container_image_self_build: "{{ matrix_architecture not in ['amd64'] }}"
  787. matrix_bot_matrix_registration_bot_systemd_required_services_list: |
  788. {{
  789. ['docker.service']
  790. +
  791. ['matrix-' + matrix_homeserver_implementation + '.service']
  792. +
  793. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  794. }}
  795. ######################################################################
  796. #
  797. # /matrix-bot-matrix-registration-bot
  798. #
  799. ######################################################################
  800. ######################################################################
  801. #
  802. # matrix-bot-honoroit
  803. #
  804. ######################################################################
  805. # We don't enable bots by default.
  806. matrix_bot_honoroit_enabled: false
  807. matrix_bot_honoroit_systemd_required_services_list: |
  808. {{
  809. ['docker.service']
  810. +
  811. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  812. +
  813. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  814. +
  815. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  816. }}
  817. # Postgres is the default, except if not using `matrix_postgres` (internal postgres)
  818. matrix_bot_honoroit_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  819. matrix_bot_honoroit_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'honoroit.bot.db') | to_uuid }}"
  820. matrix_bot_honoroit_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm32', 'arm64'] }}"
  821. ######################################################################
  822. #
  823. # /matrix-bot-honoroit
  824. #
  825. ######################################################################
  826. ######################################################################
  827. #
  828. # matrix-bot-buscarron
  829. #
  830. ######################################################################
  831. # We don't enable bots by default.
  832. matrix_bot_buscarron_enabled: false
  833. matrix_bot_buscarron_systemd_required_services_list: |
  834. {{
  835. ['docker.service']
  836. +
  837. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  838. +
  839. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  840. +
  841. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  842. }}
  843. # Postgres is the default, except if not using `matrix_postgres` (internal postgres)
  844. matrix_bot_buscarron_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  845. matrix_bot_buscarron_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'buscarron.bot.db') | to_uuid }}"
  846. matrix_bot_buscarron_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm32', 'arm64'] }}"
  847. ######################################################################
  848. #
  849. # /matrix-bot-buscarron
  850. #
  851. ######################################################################
  852. ######################################################################
  853. #
  854. # matrix-bot-go-neb
  855. #
  856. ######################################################################
  857. # We don't enable bots by default.
  858. matrix_bot_go_neb_enabled: false
  859. matrix_bot_go_neb_systemd_required_services_list: |
  860. {{
  861. ['docker.service']
  862. +
  863. ['matrix-' + matrix_homeserver_implementation + '.service']
  864. +
  865. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  866. }}
  867. matrix_bot_go_neb_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:4050' }}"
  868. ######################################################################
  869. #
  870. # /matrix-bot-go-neb
  871. #
  872. ######################################################################
  873. ######################################################################
  874. #
  875. # matrix-bot-mjolnir
  876. #
  877. ######################################################################
  878. # We don't enable bots by default.
  879. matrix_bot_mjolnir_enabled: false
  880. matrix_bot_mjolnir_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  881. matrix_bot_mjolnir_systemd_required_services_list: |
  882. {{
  883. ['docker.service']
  884. +
  885. ['matrix-' + matrix_homeserver_implementation + '.service']
  886. +
  887. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  888. +
  889. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  890. }}
  891. ######################################################################
  892. #
  893. # /matrix-bot-mjolnir
  894. #
  895. ######################################################################
  896. ######################################################################
  897. #
  898. # matrix-backup-borg
  899. #
  900. ######################################################################
  901. matrix_backup_borg_enabled: false
  902. matrix_backup_borg_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm32', 'arm64'] }}"
  903. matrix_backup_borg_postgresql_enabled: "{{ matrix_postgres_enabled }}"
  904. matrix_backup_borg_postgresql_databases_hostname: "{{ matrix_postgres_connection_hostname }}"
  905. matrix_backup_borg_postgresql_databases_username: "{{ matrix_postgres_connection_username }}"
  906. matrix_backup_borg_postgresql_databases_password: "{{ matrix_postgres_connection_password }}"
  907. matrix_backup_borg_postgresql_databases_port: "{{ matrix_postgres_connection_port }}"
  908. matrix_backup_borg_postgresql_databases: |
  909. {{
  910. (([{
  911. 'name': matrix_synapse_database_database
  912. }] if (matrix_synapse_enabled and matrix_synapse_database_database == matrix_postgres_db_name and matrix_synapse_database_host == 'matrix-postgres') else [])
  913. +
  914. matrix_postgres_additional_databases)|map(attribute='name') | list
  915. }}
  916. matrix_backup_borg_location_source_directories:
  917. - "{{ matrix_base_data_path }}"
  918. matrix_backup_borg_location_exclude_patterns: |
  919. {{
  920. ([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 [])
  921. +
  922. ([matrix_postgres_data_path] if matrix_postgres_enabled else [])
  923. }}
  924. matrix_backup_borg_systemd_required_services_list: |
  925. {{
  926. ['docker.service']
  927. +
  928. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  929. }}
  930. ######################################################################
  931. #
  932. # /matrix-backup-borg
  933. #
  934. ######################################################################
  935. ######################################################################
  936. #
  937. # matrix-corporal
  938. #
  939. ######################################################################
  940. matrix_corporal_enabled: false
  941. matrix_corporal_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm32', 'arm64'] }}"
  942. # Normally, matrix-nginx-proxy is enabled and nginx can reach matrix-corporal over the container network.
  943. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  944. # matrix-corporal's web-server ports to the local host.
  945. matrix_corporal_container_http_gateway_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:41080' }}"
  946. matrix_corporal_container_http_api_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:41081' }}"
  947. matrix_corporal_systemd_required_services_list: |
  948. {{
  949. (['docker.service'])
  950. +
  951. (['matrix-' + matrix_homeserver_implementation + '.service'])
  952. }}
  953. matrix_corporal_matrix_homeserver_api_endpoint: "{{ matrix_homeserver_container_url }}"
  954. matrix_corporal_matrix_auth_shared_secret: "{{ matrix_synapse_ext_password_provider_shared_secret_auth_shared_secret }}"
  955. # This is only useful if there's REST auth provider to make use of it.
  956. matrix_corporal_http_gateway_internal_rest_auth_enabled: "{{ matrix_synapse_ext_password_provider_rest_auth_enabled }}"
  957. matrix_corporal_matrix_registration_shared_secret: "{{ matrix_synapse_registration_shared_secret }}"
  958. ######################################################################
  959. #
  960. # /matrix-corporal
  961. #
  962. ######################################################################
  963. ######################################################################
  964. #
  965. # matrix-coturn
  966. #
  967. ######################################################################
  968. matrix_coturn_enabled: true
  969. matrix_coturn_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm32', 'arm64'] }}"
  970. matrix_coturn_turn_external_ip_address: "{{ ansible_host }}"
  971. matrix_coturn_turn_static_auth_secret: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'coturn.sas') | to_uuid }}"
  972. matrix_coturn_tls_enabled: "{{ matrix_ssl_retrieval_method != 'none' }}"
  973. matrix_coturn_tls_cert_path: "{{ matrix_ssl_config_dir_path }}/live/{{ matrix_server_fqn_matrix }}/fullchain.pem"
  974. matrix_coturn_tls_key_path: "{{ matrix_ssl_config_dir_path }}/live/{{ matrix_server_fqn_matrix }}/privkey.pem"
  975. matrix_coturn_container_additional_volumes: |
  976. {{
  977. ([] if matrix_ssl_retrieval_method == 'none' else [
  978. {
  979. 'src': matrix_ssl_config_dir_path,
  980. 'dst': matrix_ssl_config_dir_path,
  981. 'options': 'ro',
  982. }
  983. ])
  984. }}
  985. ######################################################################
  986. #
  987. # /matrix-coturn
  988. #
  989. ######################################################################
  990. ######################################################################
  991. #
  992. # matrix-dimension
  993. #
  994. ######################################################################
  995. matrix_dimension_enabled: false
  996. matrix_dimension_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  997. # Normally, matrix-nginx-proxy is enabled and nginx can reach Dimension over the container network.
  998. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  999. # the Dimension HTTP port to the local host.
  1000. matrix_dimension_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:8184' }}"
  1001. matrix_dimension_homeserver_federationUrl: "{{ matrix_homeserver_container_federation_url }}"
  1002. matrix_dimension_systemd_required_services_list: |
  1003. {{
  1004. ['docker.service']
  1005. +
  1006. ['matrix-' + matrix_homeserver_implementation + '.service']
  1007. +
  1008. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  1009. +
  1010. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  1011. }}
  1012. # Postgres is the default, except if not using `matrix_postgres` (internal postgres)
  1013. matrix_dimension_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  1014. matrix_dimension_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'dimension.db') | to_uuid }}"
  1015. ######################################################################
  1016. #
  1017. # /matrix-dimension
  1018. #
  1019. ######################################################################
  1020. ######################################################################
  1021. #
  1022. # matrix-etherpad
  1023. #
  1024. ######################################################################
  1025. matrix_etherpad_enabled: false
  1026. matrix_etherpad_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:9001' }}"
  1027. matrix_etherpad_systemd_required_services_list: |
  1028. {{
  1029. ['docker.service']
  1030. +
  1031. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  1032. }}
  1033. matrix_etherpad_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'etherpad.db') | to_uuid }}"
  1034. ######################################################################
  1035. #
  1036. # /matrix-etherpad
  1037. #
  1038. ######################################################################
  1039. ######################################################################
  1040. #
  1041. # matrix-dynamic-dns
  1042. #
  1043. ######################################################################
  1044. matrix_dynamic_dns_enabled: false
  1045. ######################################################################
  1046. #
  1047. # /matrix-dynamic-dns
  1048. #
  1049. ######################################################################
  1050. ######################################################################
  1051. #
  1052. # matrix-email2matrix
  1053. #
  1054. ######################################################################
  1055. matrix_email2matrix_enabled: false
  1056. matrix_email2matrix_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm32', 'arm64'] }}"
  1057. ######################################################################
  1058. #
  1059. # /matrix-email2matrix
  1060. #
  1061. ######################################################################
  1062. ######################################################################
  1063. #
  1064. # matrix-jitsi
  1065. #
  1066. ######################################################################
  1067. matrix_jitsi_enabled: false
  1068. # Normally, matrix-nginx-proxy is enabled and nginx can reach jitsi/web over the container network.
  1069. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  1070. # the Jitsi HTTP port to the local host.
  1071. matrix_jitsi_web_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:13080' }}"
  1072. matrix_jitsi_jvb_container_colibri_ws_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:13090' }}"
  1073. matrix_jitsi_prosody_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:5280' }}"
  1074. matrix_jitsi_jibri_xmpp_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'jibri') | to_uuid }}"
  1075. matrix_jitsi_jicofo_auth_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'jicofo') | to_uuid }}"
  1076. matrix_jitsi_jvb_auth_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'jvb') | to_uuid }}"
  1077. matrix_jitsi_web_stun_servers: |
  1078. {{
  1079. [
  1080. 'stun:' + matrix_server_fqn_matrix + ':5349',
  1081. 'stun:' + matrix_server_fqn_matrix + ':3478',
  1082. ]
  1083. if matrix_coturn_enabled
  1084. else [ 'stun:meet-jit-si-turnrelay.jitsi.net:443']
  1085. }}
  1086. # If the self-hosted Etherpad instance is available, it will also show up in Jitsi conferences,
  1087. # unless explicitly disabled by setting `matrix_jitsi_etherpad_enabled` to false.
  1088. # Falls back to the scalar.vector.im etherpad in case someone sets `matrix_jitsi_etherpad_enabled` to true,
  1089. # while also setting `matrix_etherpad_enabled` to false.
  1090. matrix_jitsi_etherpad_enabled: "{{ matrix_etherpad_enabled }}"
  1091. matrix_jitsi_etherpad_base: "{{ matrix_etherpad_base_url if matrix_etherpad_enabled else 'https://scalar.vector.im/etherpad' }}"
  1092. ######################################################################
  1093. #
  1094. # /matrix-jitsi
  1095. #
  1096. ######################################################################
  1097. ######################################################################
  1098. #
  1099. # matrix-mailer
  1100. #
  1101. ######################################################################
  1102. # By default, this playbook sets up an exim mailer server (running in a container).
  1103. # This is so that Synapse can send email reminders for unread messages.
  1104. # Other services (like ma1sd), also use the mailer.
  1105. matrix_mailer_enabled: true
  1106. matrix_mailer_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm32', 'arm64'] }}"
  1107. ######################################################################
  1108. #
  1109. # /matrix-mailer
  1110. #
  1111. ######################################################################
  1112. ######################################################################
  1113. #
  1114. # matrix-ma1sd
  1115. #
  1116. ######################################################################
  1117. # We no longer install the ma1sd identity server by default.
  1118. #
  1119. # The main reason we used to install ma1sd by default in the past was to
  1120. # prevent Element from talking to the `matrix.org` / `vector.im` identity servers,
  1121. # by forcing it to talk to our own self-hosted (but otherwise useless) identity server instead,
  1122. # thus preventing contact list leaks.
  1123. #
  1124. # Since Element no longer defaults to using a public identity server if another one is not provided,
  1125. # we can stop installing ma1sd.
  1126. matrix_ma1sd_enabled: false
  1127. matrix_ma1sd_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  1128. # Normally, matrix-nginx-proxy is enabled and nginx can reach ma1sd over the container network.
  1129. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  1130. # ma1sd's web-server port.
  1131. matrix_ma1sd_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:' + matrix_ma1sd_container_port | string }}"
  1132. # We enable Synapse integration via its Postgres database by default.
  1133. # When using another Identity store, you might wish to disable this and define
  1134. # your own configuration in `matrix_ma1sd_configuration_extension_yaml`.
  1135. matrix_ma1sd_synapsesql_enabled: true
  1136. matrix_ma1sd_synapsesql_type: postgresql
  1137. matrix_ma1sd_synapsesql_connection: //{{ matrix_synapse_database_host }}/{{ matrix_synapse_database_database }}?user={{ matrix_synapse_database_user | urlencode() }}&password={{ matrix_synapse_database_password | urlencode() }}
  1138. matrix_ma1sd_dns_overwrite_enabled: true
  1139. matrix_ma1sd_dns_overwrite_homeserver_client_name: "{{ matrix_server_fqn_matrix }}"
  1140. # The `matrix_ma1sd_dns_overwrite_homeserver_client_value` value when matrix_nginx_proxy_enabled is false covers the general case,
  1141. # but may be inaccurate if matrix-corporal is enabled.
  1142. matrix_ma1sd_dns_overwrite_homeserver_client_value: "{{ ('http://' + matrix_nginx_proxy_proxy_matrix_client_api_addr_with_container) if matrix_nginx_proxy_enabled else matrix_homeserver_container_url }}"
  1143. # By default, we send mail through the `matrix-mailer` service.
  1144. matrix_ma1sd_threepid_medium_email_identity_from: "{{ matrix_mailer_sender_address }}"
  1145. matrix_ma1sd_threepid_medium_email_connectors_smtp_host: "matrix-mailer"
  1146. matrix_ma1sd_threepid_medium_email_connectors_smtp_port: 8025
  1147. matrix_ma1sd_threepid_medium_email_connectors_smtp_tls: 0
  1148. matrix_ma1sd_self_check_validate_certificates: "{{ false if matrix_ssl_retrieval_method == 'self-signed' else true }}"
  1149. matrix_ma1sd_systemd_required_services_list: |
  1150. {{
  1151. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  1152. }}
  1153. matrix_ma1sd_systemd_wanted_services_list: |
  1154. {{
  1155. (['matrix-corporal.service'] if matrix_corporal_enabled else ['matrix-' + matrix_homeserver_implementation + '.service'])
  1156. +
  1157. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  1158. +
  1159. (['matrix-mailer.service'] if matrix_mailer_enabled else [])
  1160. }}
  1161. # Postgres is the default, except if not using `matrix_postgres` (internal postgres)
  1162. matrix_ma1sd_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  1163. matrix_ma1sd_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'ma1sd.db') | to_uuid }}"
  1164. ######################################################################
  1165. #
  1166. # /matrix-ma1sd
  1167. #
  1168. ######################################################################
  1169. ######################################################################
  1170. #
  1171. # matrix-nginx-proxy
  1172. #
  1173. ######################################################################
  1174. # By default, this playbook sets up a reverse-proxy nginx proxy server on TCP ports 80, 443 and 8448.
  1175. # This is fine if you're dedicating the whole server to Matrix.
  1176. # If that's not the case, you may wish to disable this and take care of proxying yourself.
  1177. matrix_nginx_proxy_enabled: true
  1178. matrix_nginx_proxy_proxy_matrix_client_api_addr_with_container: "{{ 'matrix-corporal:41080' if matrix_corporal_enabled else 'matrix-nginx-proxy:12080' }}"
  1179. matrix_nginx_proxy_proxy_matrix_client_api_addr_sans_container: "{{ '127.0.0.1:41080' if matrix_corporal_enabled else '127.0.0.1:12080' }}"
  1180. matrix_nginx_proxy_proxy_matrix_client_api_client_max_body_size_mb: |-
  1181. {{
  1182. {
  1183. 'synapse': matrix_synapse_max_upload_size_mb,
  1184. 'dendrite': (matrix_dendrite_max_file_size_bytes / 1024 / 1024) | round,
  1185. }[matrix_homeserver_implementation]|int
  1186. }}
  1187. matrix_nginx_proxy_proxy_matrix_client_api_forwarded_location_synapse_admin_api_enabled: "{{ matrix_synapse_admin_enabled or matrix_bot_matrix_registration_bot_enabled }}"
  1188. matrix_nginx_proxy_proxy_matrix_client_redirect_root_uri_to_domain: "{{ matrix_server_fqn_element if matrix_client_element_enabled else '' }}"
  1189. matrix_nginx_proxy_proxy_matrix_enabled: true
  1190. matrix_nginx_proxy_proxy_element_enabled: "{{ matrix_client_element_enabled }}"
  1191. matrix_nginx_proxy_proxy_hydrogen_enabled: "{{ matrix_client_hydrogen_enabled }}"
  1192. matrix_nginx_proxy_proxy_cinny_enabled: "{{ matrix_client_cinny_enabled }}"
  1193. matrix_nginx_proxy_proxy_buscarron_enabled: "{{ matrix_bot_buscarron_enabled }}"
  1194. matrix_nginx_proxy_proxy_dimension_enabled: "{{ matrix_dimension_enabled }}"
  1195. matrix_nginx_proxy_proxy_bot_go_neb_enabled: "{{ matrix_bot_go_neb_enabled }}"
  1196. matrix_nginx_proxy_proxy_jitsi_enabled: "{{ matrix_jitsi_enabled }}"
  1197. matrix_nginx_proxy_proxy_grafana_enabled: "{{ matrix_grafana_enabled }}"
  1198. matrix_nginx_proxy_proxy_sygnal_enabled: "{{ matrix_sygnal_enabled }}"
  1199. matrix_nginx_proxy_proxy_mautrix_wsproxy_enabled: "{{ matrix_mautrix_wsproxy_enabled }}"
  1200. matrix_nginx_proxy_proxy_ntfy_enabled: "{{ matrix_ntfy_enabled }}"
  1201. matrix_nginx_proxy_proxy_matrix_corporal_api_enabled: "{{ matrix_corporal_enabled and matrix_corporal_http_api_enabled }}"
  1202. matrix_nginx_proxy_proxy_matrix_corporal_api_addr_with_container: "matrix-corporal:41081"
  1203. matrix_nginx_proxy_proxy_matrix_corporal_api_addr_sans_container: "127.0.0.1:41081"
  1204. matrix_nginx_proxy_proxy_matrix_identity_api_enabled: "{{ matrix_ma1sd_enabled }}"
  1205. matrix_nginx_proxy_proxy_matrix_identity_api_addr_with_container: "matrix-ma1sd:{{ matrix_ma1sd_container_port }}"
  1206. matrix_nginx_proxy_proxy_matrix_identity_api_addr_sans_container: "127.0.0.1:{{ matrix_ma1sd_container_port }}"
  1207. # By default, we do TLS termination for the Matrix Federation API (port 8448) at matrix-nginx-proxy.
  1208. # Unless this is handled there OR Synapse's federation listener port is disabled, we'll reverse-proxy.
  1209. matrix_nginx_proxy_proxy_matrix_federation_api_enabled: |-
  1210. {{
  1211. {
  1212. 'synapse': (matrix_synapse_federation_port_enabled and not matrix_synapse_tls_federation_listener_enabled),
  1213. 'dendrite': matrix_dendrite_federation_enabled,
  1214. }[matrix_homeserver_implementation]|bool
  1215. }}
  1216. matrix_nginx_proxy_proxy_matrix_federation_api_addr_with_container: "matrix-nginx-proxy:12088"
  1217. matrix_nginx_proxy_proxy_matrix_federation_api_addr_sans_container: "127.0.0.1:12088"
  1218. matrix_nginx_proxy_proxy_synapse_enabled: "{{ matrix_synapse_enabled }}"
  1219. matrix_nginx_proxy_proxy_synapse_client_api_addr_with_container: "matrix-synapse:{{ matrix_synapse_container_client_api_port }}"
  1220. matrix_nginx_proxy_proxy_synapse_client_api_addr_sans_container: "127.0.0.1:{{ matrix_synapse_container_client_api_port }}"
  1221. matrix_nginx_proxy_proxy_synapse_federation_api_addr_with_container: "matrix-synapse:{{matrix_synapse_container_federation_api_plain_port | string}}"
  1222. matrix_nginx_proxy_proxy_synapse_federation_api_addr_sans_container: "127.0.0.1:{{matrix_synapse_container_federation_api_plain_port | string}}"
  1223. matrix_nginx_proxy_proxy_dendrite_enabled: "{{ matrix_dendrite_enabled }}"
  1224. matrix_nginx_proxy_proxy_dendrite_client_api_addr_with_container: "matrix-dendrite:{{ matrix_dendrite_http_bind_port | string }}"
  1225. matrix_nginx_proxy_proxy_dendrite_client_api_addr_sans_container: "127.0.0.1:{{ matrix_dendrite_http_bind_port | string }}"
  1226. matrix_nginx_proxy_proxy_dendrite_federation_api_addr_with_container: "matrix-dendrite:{{ matrix_dendrite_http_bind_port | string }}"
  1227. matrix_nginx_proxy_proxy_dendrite_federation_api_addr_sans_container: "127.0.0.1:{{ matrix_dendrite_http_bind_port | string }}"
  1228. # When matrix-nginx-proxy is disabled, the actual port number that the vhost uses may begin to matter.
  1229. matrix_nginx_proxy_proxy_matrix_federation_port: "{{ matrix_federation_public_port }}"
  1230. matrix_nginx_proxy_container_federation_host_bind_port: "{{ matrix_federation_public_port }}"
  1231. matrix_nginx_proxy_proxy_matrix_user_directory_search_enabled: "{{ matrix_ma1sd_enabled }}"
  1232. matrix_nginx_proxy_proxy_matrix_user_directory_search_addr_with_container: "{{ matrix_nginx_proxy_proxy_matrix_identity_api_addr_with_container }}"
  1233. matrix_nginx_proxy_proxy_matrix_user_directory_search_addr_sans_container: "{{ matrix_nginx_proxy_proxy_matrix_identity_api_addr_sans_container }}"
  1234. matrix_nginx_proxy_self_check_validate_certificates: "{{ false if matrix_ssl_retrieval_method == 'self-signed' else true }}"
  1235. # OCSP stapling does not make sense when self-signed certificates are used.
  1236. # See https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1073
  1237. # and https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/1074
  1238. matrix_nginx_proxy_ocsp_stapling_enabled: "{{ matrix_ssl_retrieval_method != 'self-signed' }}"
  1239. matrix_nginx_proxy_synapse_presence_disabled: "{{ not matrix_synapse_presence_enabled }}"
  1240. matrix_nginx_proxy_synapse_workers_enabled: "{{ matrix_synapse_workers_enabled }}"
  1241. matrix_nginx_proxy_synapse_workers_list: "{{ matrix_synapse_workers_enabled_list }}"
  1242. matrix_nginx_proxy_synapse_generic_worker_client_server_locations: "{{ matrix_synapse_workers_generic_worker_client_server_endpoints }}"
  1243. matrix_nginx_proxy_synapse_generic_worker_federation_locations: "{{ matrix_synapse_workers_generic_worker_federation_endpoints }}"
  1244. matrix_nginx_proxy_synapse_media_repository_locations: "{{matrix_synapse_workers_media_repository_endpoints|default([]) }}"
  1245. matrix_nginx_proxy_synapse_user_dir_locations: "{{ matrix_synapse_workers_user_dir_endpoints|default([]) }}"
  1246. matrix_nginx_proxy_synapse_frontend_proxy_locations: "{{ matrix_synapse_workers_frontend_proxy_endpoints|default([]) }}"
  1247. matrix_nginx_proxy_systemd_wanted_services_list: |
  1248. {{
  1249. ['matrix-' + matrix_homeserver_implementation + '.service']
  1250. +
  1251. (['matrix-corporal.service'] if matrix_corporal_enabled else [])
  1252. +
  1253. (['matrix-ma1sd.service'] if matrix_ma1sd_enabled else [])
  1254. +
  1255. (['matrix-client-cinny.service'] if matrix_client_cinny_enabled else [])
  1256. +
  1257. (['matrix-bot-buscarron.service'] if matrix_bot_buscarron_enabled else [])
  1258. +
  1259. (['matrix-client-element.service'] if matrix_client_element_enabled else [])
  1260. +
  1261. (['matrix-client-hydrogen.service'] if matrix_client_hydrogen_enabled else [])
  1262. +
  1263. (['matrix-grafana.service'] if matrix_grafana_enabled else [])
  1264. +
  1265. (['matrix-dimension.service'] if matrix_dimension_enabled else [])
  1266. +
  1267. (['matrix-sygnal.service'] if matrix_sygnal_enabled else [])
  1268. +
  1269. (['matrix-ntfy.service'] if matrix_ntfy_enabled else [])
  1270. +
  1271. (['matrix-jitsi.service'] if matrix_jitsi_enabled else [])
  1272. +
  1273. (['matrix-bot-go-neb.service'] if matrix_bot_go_neb_enabled else [])
  1274. +
  1275. (['matrix-etherpad.service'] if matrix_etherpad_enabled and matrix_dimension_enabled else [])
  1276. +
  1277. (['matrix-hookshot.service'] if matrix_hookshot_enabled else [])
  1278. }}
  1279. matrix_ssl_domains_to_obtain_certificates_for: |
  1280. {{
  1281. ([matrix_server_fqn_matrix])
  1282. +
  1283. ([matrix_server_fqn_element] if matrix_client_element_enabled else [])
  1284. +
  1285. ([matrix_nginx_proxy_proxy_riot_compat_redirect_hostname] if matrix_nginx_proxy_proxy_riot_compat_redirect_enabled else [])
  1286. +
  1287. ([matrix_server_fqn_hydrogen] if matrix_client_hydrogen_enabled else [])
  1288. +
  1289. ([matrix_server_fqn_cinny] if matrix_client_cinny_enabled else [])
  1290. +
  1291. ([matrix_server_fqn_buscarron] if matrix_bot_buscarron_enabled else [])
  1292. +
  1293. ([matrix_server_fqn_dimension] if matrix_dimension_enabled else [])
  1294. +
  1295. ([matrix_server_fqn_bot_go_neb] if matrix_bot_go_neb_enabled else [])
  1296. +
  1297. ([matrix_server_fqn_jitsi] if matrix_jitsi_enabled else [])
  1298. +
  1299. ([matrix_server_fqn_grafana] if matrix_grafana_enabled else [])
  1300. +
  1301. ([matrix_server_fqn_sygnal] if matrix_sygnal_enabled else [])
  1302. +
  1303. ([matrix_server_fqn_mautrix_wsproxy] if matrix_mautrix_wsproxy_enabled else [])
  1304. +
  1305. ([matrix_server_fqn_ntfy] if matrix_ntfy_enabled else [])
  1306. +
  1307. ([matrix_domain] if matrix_nginx_proxy_base_domain_serving_enabled else [])
  1308. +
  1309. matrix_ssl_additional_domains_to_obtain_certificates_for
  1310. }}
  1311. matrix_ssl_architecture: "{{
  1312. {
  1313. 'amd64': 'amd64',
  1314. 'arm32': 'arm32v6',
  1315. 'arm64': 'arm64v8',
  1316. }[matrix_architecture]
  1317. }}"
  1318. matrix_ssl_pre_obtaining_required_service_name: "{{ 'matrix-dynamic-dns' if matrix_dynamic_dns_enabled else '' }}"
  1319. ######################################################################
  1320. #
  1321. # /matrix-nginx-proxy
  1322. #
  1323. ######################################################################
  1324. ######################################################################
  1325. #
  1326. # matrix-postgres
  1327. #
  1328. ######################################################################
  1329. matrix_postgres_enabled: true
  1330. matrix_postgres_architecture: "{{ matrix_architecture }}"
  1331. # We unset this if internal Postgres disabled, which will cascade to some other variables
  1332. # and tell users they need to set it (either here or in those variables).
  1333. matrix_postgres_connection_hostname: "{{ 'matrix-postgres' if matrix_postgres_enabled else '' }}"
  1334. matrix_postgres_pgloader_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  1335. matrix_postgres_additional_databases: |
  1336. {{
  1337. ([{
  1338. 'name': matrix_synapse_database_database,
  1339. 'username': matrix_synapse_database_user,
  1340. 'password': matrix_synapse_database_password,
  1341. }] if (matrix_synapse_enabled and matrix_synapse_database_database != matrix_postgres_db_name and matrix_synapse_database_host == 'matrix-postgres') else [])
  1342. +
  1343. ([{
  1344. 'name': matrix_dendrite_appservice_database,
  1345. 'username': matrix_dendrite_database_user,
  1346. 'password': matrix_dendrite_database_password,
  1347. },{
  1348. 'name': matrix_dendrite_federationapi_database,
  1349. 'username': matrix_dendrite_database_user,
  1350. 'password': matrix_dendrite_database_password,
  1351. },{
  1352. 'name': matrix_dendrite_keyserver_database,
  1353. 'username': matrix_dendrite_database_user,
  1354. 'password': matrix_dendrite_database_password,
  1355. },{
  1356. 'name': matrix_dendrite_mediaapi_database,
  1357. 'username': matrix_dendrite_database_user,
  1358. 'password': matrix_dendrite_database_password,
  1359. },{
  1360. 'name': matrix_dendrite_room_database,
  1361. 'username': matrix_dendrite_database_user,
  1362. 'password': matrix_dendrite_database_password,
  1363. },{
  1364. 'name': matrix_dendrite_syncapi_database,
  1365. 'username': matrix_dendrite_database_user,
  1366. 'password': matrix_dendrite_database_password,
  1367. },{
  1368. 'name': matrix_dendrite_userapi_database,
  1369. 'username': matrix_dendrite_database_user,
  1370. 'password': matrix_dendrite_database_password,
  1371. },{
  1372. 'name': matrix_dendrite_pushserver_database,
  1373. 'username': matrix_dendrite_database_user,
  1374. 'password': matrix_dendrite_database_password,
  1375. },{
  1376. 'name': matrix_dendrite_mscs_database,
  1377. 'username': matrix_dendrite_database_user,
  1378. 'password': matrix_dendrite_database_password,
  1379. }] if (matrix_dendrite_enabled and matrix_dendrite_database_hostname == 'matrix-postgres') else [])
  1380. +
  1381. ([{
  1382. 'name': matrix_ma1sd_database_name,
  1383. 'username': matrix_ma1sd_database_username,
  1384. 'password': matrix_ma1sd_database_password,
  1385. }] if (matrix_ma1sd_enabled and matrix_ma1sd_database_engine == 'postgres' and matrix_ma1sd_database_hostname == 'matrix-postgres') else [])
  1386. +
  1387. ([{
  1388. 'name': matrix_bot_matrix_reminder_bot_database_name,
  1389. 'username': matrix_bot_matrix_reminder_bot_database_username,
  1390. 'password': matrix_bot_matrix_reminder_bot_database_password,
  1391. }] if (matrix_bot_matrix_reminder_bot_enabled and matrix_bot_matrix_reminder_bot_database_engine == 'postgres' and matrix_bot_matrix_reminder_bot_database_hostname == 'matrix-postgres') else [])
  1392. +
  1393. ([{
  1394. 'name': matrix_bot_honoroit_database_name,
  1395. 'username': matrix_bot_honoroit_database_username,
  1396. 'password': matrix_bot_honoroit_database_password,
  1397. }] if (matrix_bot_honoroit_enabled and matrix_bot_honoroit_database_engine == 'postgres' and matrix_bot_honoroit_database_hostname == 'matrix-postgres') else [])
  1398. +
  1399. ([{
  1400. 'name': matrix_bot_buscarron_database_name,
  1401. 'username': matrix_bot_buscarron_database_username,
  1402. 'password': matrix_bot_buscarron_database_password,
  1403. }] if (matrix_bot_buscarron_enabled and matrix_bot_buscarron_database_engine == 'postgres' and matrix_bot_buscarron_database_hostname == 'matrix-postgres') else [])
  1404. +
  1405. ([{
  1406. 'name': matrix_registration_database_name,
  1407. 'username': matrix_registration_database_username,
  1408. 'password': matrix_registration_database_password,
  1409. }] if (matrix_registration_enabled and matrix_registration_database_engine == 'postgres' and matrix_registration_database_hostname == 'matrix-postgres') else [])
  1410. +
  1411. ([{
  1412. 'name': matrix_appservice_discord_database_name,
  1413. 'username': matrix_appservice_discord_database_username,
  1414. 'password': matrix_appservice_discord_database_password,
  1415. }] if (matrix_appservice_discord_enabled and matrix_appservice_discord_database_engine == 'postgres' and matrix_appservice_discord_database_hostname == 'matrix-postgres') else [])
  1416. +
  1417. ([{
  1418. 'name': matrix_appservice_slack_database_name,
  1419. 'username': matrix_appservice_slack_database_username,
  1420. 'password': matrix_appservice_slack_database_password,
  1421. }] if (matrix_appservice_slack_enabled and matrix_appservice_slack_database_engine == 'postgres' and matrix_appservice_slack_database_hostname == 'matrix-postgres') else [])
  1422. +
  1423. ([{
  1424. 'name': matrix_appservice_irc_database_name,
  1425. 'username': matrix_appservice_irc_database_username,
  1426. 'password': matrix_appservice_irc_database_password,
  1427. }] if (matrix_appservice_irc_enabled and matrix_appservice_irc_database_engine == 'postgres' and matrix_appservice_irc_database_hostname == 'matrix-postgres') else [])
  1428. +
  1429. ([{
  1430. 'name': matrix_beeper_linkedin_database_name,
  1431. 'username': matrix_beeper_linkedin_database_username,
  1432. 'password': matrix_beeper_linkedin_database_password,
  1433. }] if (matrix_beeper_linkedin_enabled and matrix_beeper_linkedin_database_engine == 'postgres' and matrix_beeper_linkedin_database_hostname == 'matrix-postgres') else [])
  1434. +
  1435. ([{
  1436. 'name': matrix_go_skype_bridge_database_name,
  1437. 'username': matrix_go_skype_bridge_database_username,
  1438. 'password': matrix_go_skype_bridge_database_password,
  1439. }] if (matrix_go_skype_bridge_enabled and matrix_go_skype_bridge_database_engine == 'postgres' and matrix_go_skype_bridge_database_hostname == 'matrix-postgres') else [])
  1440. +
  1441. ([{
  1442. 'name': matrix_mautrix_facebook_database_name,
  1443. 'username': matrix_mautrix_facebook_database_username,
  1444. 'password': matrix_mautrix_facebook_database_password,
  1445. }] if (matrix_mautrix_facebook_enabled and matrix_mautrix_facebook_database_engine == 'postgres' and matrix_mautrix_facebook_database_hostname == 'matrix-postgres') else [])
  1446. +
  1447. ([{
  1448. 'name': matrix_mautrix_hangouts_database_name,
  1449. 'username': matrix_mautrix_hangouts_database_username,
  1450. 'password': matrix_mautrix_hangouts_database_password,
  1451. }] if (matrix_mautrix_hangouts_enabled and matrix_mautrix_hangouts_database_engine == 'postgres' and matrix_mautrix_hangouts_database_hostname == 'matrix-postgres') else [])
  1452. +
  1453. ([{
  1454. 'name': matrix_mautrix_googlechat_database_name,
  1455. 'username': matrix_mautrix_googlechat_database_username,
  1456. 'password': matrix_mautrix_googlechat_database_password,
  1457. }] if (matrix_mautrix_googlechat_enabled and matrix_mautrix_googlechat_database_engine == 'postgres' and matrix_mautrix_googlechat_database_hostname == 'matrix-postgres') else [])
  1458. +
  1459. ([{
  1460. 'name': matrix_mautrix_instagram_database_name,
  1461. 'username': matrix_mautrix_instagram_database_username,
  1462. 'password': matrix_mautrix_instagram_database_password,
  1463. }] if (matrix_mautrix_instagram_enabled and matrix_mautrix_instagram_database_engine == 'postgres' and matrix_mautrix_instagram_database_hostname == 'matrix-postgres') else [])
  1464. +
  1465. ([{
  1466. 'name': matrix_mautrix_signal_database_name,
  1467. 'username': matrix_mautrix_signal_database_username,
  1468. 'password': matrix_mautrix_signal_database_password,
  1469. }] if (matrix_mautrix_signal_enabled and matrix_mautrix_signal_database_engine == 'postgres' and matrix_mautrix_signal_database_hostname == 'matrix-postgres') else [])
  1470. +
  1471. ([{
  1472. 'name': matrix_mautrix_wsproxy_syncproxy_database_name,
  1473. 'username': matrix_mautrix_wsproxy_syncproxy_database_username,
  1474. 'password': matrix_mautrix_wsproxy_syncproxy_database_password,
  1475. }] if (matrix_mautrix_wsproxy_enabled and matrix_mautrix_wsproxy_syncproxy_database_engine == 'postgres' and matrix_mautrix_wsproxy_syncproxy_database_hostname == 'matrix-postgres') else [])
  1476. +
  1477. ([{
  1478. 'name': matrix_mautrix_telegram_database_name,
  1479. 'username': matrix_mautrix_telegram_database_username,
  1480. 'password': matrix_mautrix_telegram_database_password,
  1481. }] if (matrix_mautrix_telegram_enabled and matrix_mautrix_telegram_database_engine == 'postgres' and matrix_mautrix_telegram_database_hostname == 'matrix-postgres') else [])
  1482. +
  1483. ([{
  1484. 'name': matrix_mautrix_twitter_database_name,
  1485. 'username': matrix_mautrix_twitter_database_username,
  1486. 'password': matrix_mautrix_twitter_database_password,
  1487. }] if (matrix_mautrix_twitter_enabled and matrix_mautrix_twitter_database_engine == 'postgres' and matrix_mautrix_twitter_database_hostname == 'matrix-postgres') else [])
  1488. +
  1489. ([{
  1490. 'name': matrix_mautrix_whatsapp_database_name,
  1491. 'username': matrix_mautrix_whatsapp_database_username,
  1492. 'password': matrix_mautrix_whatsapp_database_password,
  1493. }] if (matrix_mautrix_whatsapp_enabled and matrix_mautrix_whatsapp_database_engine == 'postgres' and matrix_mautrix_whatsapp_database_hostname == 'matrix-postgres') else [])
  1494. +
  1495. ([{
  1496. 'name': matrix_mx_puppet_slack_database_name,
  1497. 'username': matrix_mx_puppet_slack_database_username,
  1498. 'password': matrix_mx_puppet_slack_database_password,
  1499. }] if (matrix_mx_puppet_slack_enabled and matrix_mx_puppet_slack_database_engine == 'postgres' and matrix_mx_puppet_slack_database_hostname == 'matrix-postgres') else [])
  1500. +
  1501. ([{
  1502. 'name': matrix_mx_puppet_twitter_database_name,
  1503. 'username': matrix_mx_puppet_twitter_database_username,
  1504. 'password': matrix_mx_puppet_twitter_database_password,
  1505. }] if (matrix_mx_puppet_twitter_enabled and matrix_mx_puppet_twitter_database_engine == 'postgres' and matrix_mx_puppet_twitter_database_hostname == 'matrix-postgres') else [])
  1506. +
  1507. ([{
  1508. 'name': matrix_mx_puppet_instagram_database_name,
  1509. 'username': matrix_mx_puppet_instagram_database_username,
  1510. 'password': matrix_mx_puppet_instagram_database_password,
  1511. }] if (matrix_mx_puppet_instagram_enabled and matrix_mx_puppet_instagram_database_engine == 'postgres' and matrix_mx_puppet_instagram_database_hostname == 'matrix-postgres') else [])
  1512. +
  1513. ([{
  1514. 'name': matrix_mx_puppet_discord_database_name,
  1515. 'username': matrix_mx_puppet_discord_database_username,
  1516. 'password': matrix_mx_puppet_discord_database_password,
  1517. }] if (matrix_mx_puppet_discord_enabled and matrix_mx_puppet_discord_database_engine == 'postgres' and matrix_mx_puppet_discord_database_hostname == 'matrix-postgres') else [])
  1518. +
  1519. ([{
  1520. 'name': matrix_mx_puppet_steam_database_name,
  1521. 'username': matrix_mx_puppet_steam_database_username,
  1522. 'password': matrix_mx_puppet_steam_database_password,
  1523. }] if (matrix_mx_puppet_steam_enabled and matrix_mx_puppet_steam_database_engine == 'postgres' and matrix_mx_puppet_steam_database_hostname == 'matrix-postgres') else [])
  1524. +
  1525. ([{
  1526. 'name': matrix_mx_puppet_groupme_database_name,
  1527. 'username': matrix_mx_puppet_groupme_database_username,
  1528. 'password': matrix_mx_puppet_groupme_database_password,
  1529. }] if (matrix_mx_puppet_groupme_enabled and matrix_mx_puppet_groupme_database_engine == 'postgres' and matrix_mx_puppet_groupme_database_hostname == 'matrix-postgres') else [])
  1530. +
  1531. ([{
  1532. 'name': matrix_dimension_database_name,
  1533. 'username': matrix_dimension_database_username,
  1534. 'password': matrix_dimension_database_password,
  1535. }] if (matrix_dimension_enabled and matrix_dimension_database_engine == 'postgres' and matrix_dimension_database_hostname == 'matrix-postgres') else [])
  1536. +
  1537. ([{
  1538. 'name': matrix_etherpad_database_name,
  1539. 'username': matrix_etherpad_database_username,
  1540. 'password': matrix_etherpad_database_password,
  1541. }] if (matrix_etherpad_enabled and matrix_etherpad_database_engine == 'postgres' and matrix_etherpad_database_hostname == 'matrix-postgres') else [])
  1542. +
  1543. ([{
  1544. 'name': matrix_prometheus_postgres_exporter_database_name,
  1545. 'username': matrix_prometheus_postgres_exporter_database_username,
  1546. 'password': matrix_prometheus_postgres_exporter_database_password,
  1547. }] if (matrix_prometheus_postgres_exporter_enabled and matrix_prometheus_postgres_exporter_database_hostname == 'matrix-postgres') else [])
  1548. }}
  1549. matrix_postgres_import_roles_to_ignore: |
  1550. {{
  1551. [matrix_postgres_connection_username]
  1552. +
  1553. matrix_postgres_additional_databases|map(attribute='username') | list
  1554. }}
  1555. matrix_postgres_import_databases_to_ignore: |
  1556. {{
  1557. [matrix_postgres_db_name]
  1558. +
  1559. matrix_postgres_additional_databases|map(attribute='name') | list
  1560. }}
  1561. ######################################################################
  1562. #
  1563. # /matrix-postgres
  1564. #
  1565. ######################################################################
  1566. ######################################################################
  1567. #
  1568. # matrix-sygnal
  1569. #
  1570. ######################################################################
  1571. # Most people don't need their own push-server, because they also need their own app to utilize it from.
  1572. matrix_sygnal_enabled: false
  1573. # If someone instals Prometheus via the playbook, they most likely wish to monitor Sygnal.
  1574. matrix_sygnal_metrics_prometheus_enabled: "{{ matrix_prometheus_enabled }}"
  1575. matrix_sygnal_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:6000' }}"
  1576. ######################################################################
  1577. #
  1578. # /matrix-sygnal
  1579. #
  1580. ######################################################################
  1581. ######################################################################
  1582. #
  1583. # matrix-ntfy
  1584. #
  1585. ######################################################################
  1586. matrix_ntfy_enabled: false
  1587. matrix_ntfy_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:2586' }}"
  1588. ######################################################################
  1589. #
  1590. # /matrix-ntfy
  1591. #
  1592. ######################################################################
  1593. ######################################################################
  1594. #
  1595. # matrix-redis
  1596. #
  1597. ######################################################################
  1598. matrix_redis_enabled: "{{ matrix_synapse_workers_enabled }}"
  1599. ######################################################################
  1600. #
  1601. # /matrix-redis
  1602. #
  1603. ######################################################################
  1604. ######################################################################
  1605. #
  1606. # matrix-client-element
  1607. #
  1608. ######################################################################
  1609. # By default, this playbook installs the Element web UI on the `matrix_server_fqn_element` domain.
  1610. # If you wish to connect to your Matrix server by other means, you may wish to disable this.
  1611. matrix_client_element_enabled: true
  1612. matrix_client_element_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  1613. # Normally, matrix-nginx-proxy is enabled and nginx can reach Element over the container network.
  1614. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  1615. # the Element HTTP port to the local host.
  1616. matrix_client_element_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:8765' }}"
  1617. matrix_client_element_default_hs_url: "{{ matrix_homeserver_url }}"
  1618. matrix_client_element_default_is_url: "{{ matrix_identity_server_url }}"
  1619. # Use Dimension if enabled, otherwise fall back to Scalar
  1620. matrix_client_element_integrations_ui_url: "{{ matrix_dimension_integrations_ui_url if matrix_dimension_enabled else 'https://scalar.vector.im/' }}"
  1621. matrix_client_element_integrations_rest_url: "{{ matrix_dimension_integrations_rest_url if matrix_dimension_enabled else 'https://scalar.vector.im/api' }}"
  1622. matrix_client_element_integrations_widgets_urls: "{{ matrix_dimension_integrations_widgets_urls if matrix_dimension_enabled else ['https://scalar.vector.im/api'] }}"
  1623. 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' }}"
  1624. matrix_client_element_self_check_validate_certificates: "{{ false if matrix_ssl_retrieval_method == 'self-signed' else true }}"
  1625. matrix_client_element_registration_enabled: "{{ matrix_synapse_enable_registration }}"
  1626. matrix_client_element_enable_presence_by_hs_url: |
  1627. {{
  1628. none
  1629. if matrix_synapse_presence_enabled
  1630. else {matrix_client_element_default_hs_url: false}
  1631. }}
  1632. matrix_client_element_welcome_user_id: ~
  1633. matrix_client_element_jitsi_preferredDomain: "{{ matrix_server_fqn_jitsi if matrix_jitsi_enabled else '' }}"
  1634. ######################################################################
  1635. #
  1636. # /matrix-client-element
  1637. #
  1638. ######################################################################
  1639. ######################################################################
  1640. #
  1641. # matrix-client-hydrogen
  1642. #
  1643. ######################################################################
  1644. matrix_client_hydrogen_enabled: false
  1645. # Normally, matrix-nginx-proxy is enabled and nginx can reach Hydrogen over the container network.
  1646. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  1647. # the HTTP port to the local host.
  1648. matrix_client_hydrogen_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:8768' }}"
  1649. matrix_client_hydrogen_default_hs_url: "{{ matrix_homeserver_url }}"
  1650. matrix_client_hydrogen_self_check_validate_certificates: "{{ false if matrix_ssl_retrieval_method == 'self-signed' else true }}"
  1651. ######################################################################
  1652. #
  1653. # /matrix-client-hydrogen
  1654. #
  1655. ######################################################################
  1656. ######################################################################
  1657. #
  1658. # matrix-client-cinny
  1659. #
  1660. ######################################################################
  1661. matrix_client_cinny_enabled: false
  1662. matrix_client_cinny_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  1663. # Normally, matrix-nginx-proxy is enabled and nginx can reach Cinny over the container network.
  1664. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  1665. # the HTTP port to the local host.
  1666. matrix_client_cinny_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:8080' }}"
  1667. matrix_client_cinny_default_hs_url: "{{ matrix_homeserver_url }}"
  1668. matrix_client_cinny_self_check_validate_certificates: "{{ false if matrix_ssl_retrieval_method == 'self-signed' else true }}"
  1669. ######################################################################
  1670. #
  1671. # /matrix-client-cinny
  1672. #
  1673. ######################################################################
  1674. ######################################################################
  1675. #
  1676. # matrix-synapse
  1677. #
  1678. ######################################################################
  1679. matrix_synapse_enabled: "{{ matrix_homeserver_implementation == 'synapse' }}"
  1680. matrix_synapse_container_image_self_build: "{{ matrix_architecture not in ['arm64', 'amd64'] }}"
  1681. # When ma1sd is enabled, we can use it to validate email addresses and phone numbers.
  1682. # Synapse can validate email addresses by itself as well, but it's probably not what we want by default when we have an identity server.
  1683. matrix_synapse_account_threepid_delegates_email: "{{ 'http://matrix-ma1sd:' + matrix_ma1sd_container_port | string if matrix_ma1sd_enabled else '' }}"
  1684. matrix_synapse_account_threepid_delegates_msisdn: "{{ 'http://matrix-ma1sd:' + matrix_ma1sd_container_port | string if matrix_ma1sd_enabled else '' }}"
  1685. # Normally, matrix-nginx-proxy is enabled and nginx can reach Synapse over the container network.
  1686. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it,
  1687. # you can expose Synapse's ports to the host.
  1688. #
  1689. # For exposing the Matrix Client API's port (plain HTTP) to the local host.
  1690. matrix_synapse_container_client_api_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:' + matrix_synapse_container_client_api_port | string }}"
  1691. #
  1692. # For exposing the Matrix Federation API's plain port (plain HTTP) to the local host.
  1693. matrix_synapse_container_federation_api_plain_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:' + matrix_synapse_container_federation_api_plain_port | string }}"
  1694. #
  1695. # For exposing the Matrix Federation API's TLS port (HTTPS) to the internet on all network interfaces.
  1696. 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 '' }}"
  1697. #
  1698. # For exposing the Synapse Metrics API's port (plain HTTP) to the local host.
  1699. matrix_synapse_container_metrics_api_host_bind_port: "{{ '127.0.0.1:9100' if (matrix_synapse_metrics_enabled and not matrix_nginx_proxy_enabled) else '' }}"
  1700. #
  1701. # For exposing the Synapse Manhole port (plain HTTP) to the local host.
  1702. matrix_synapse_container_manhole_api_host_bind_port: "{{ '127.0.0.1:9000' if matrix_synapse_manhole_enabled else '' }}"
  1703. #
  1704. # For exposing the Synapse worker (and metrics) ports to the local host.
  1705. matrix_synapse_workers_container_host_bind_address: "{{ '127.0.0.1' if (matrix_synapse_workers_enabled and not matrix_nginx_proxy_enabled) else '' }}"
  1706. matrix_synapse_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'synapse.db') | to_uuid }}"
  1707. matrix_synapse_macaroon_secret_key: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'synapse.mac') | to_uuid }}"
  1708. # We do not enable TLS in Synapse by default.
  1709. # TLS is handled by the matrix-nginx-proxy, which proxies the requests to Synapse.
  1710. matrix_synapse_tls_federation_listener_enabled: false
  1711. matrix_synapse_tls_certificate_path: ~
  1712. matrix_synapse_tls_private_key_path: ~
  1713. matrix_synapse_federation_port_openid_resource_required: "{{ not matrix_synapse_federation_enabled and (matrix_dimension_enabled or matrix_ma1sd_enabled) }}"
  1714. # If someone instals Prometheus via the playbook, they most likely wish to monitor Synapse.
  1715. matrix_synapse_metrics_enabled: "{{ matrix_prometheus_enabled }}"
  1716. matrix_synapse_email_enabled: "{{ matrix_mailer_enabled }}"
  1717. matrix_synapse_email_smtp_host: "matrix-mailer"
  1718. matrix_synapse_email_smtp_port: 8025
  1719. matrix_synapse_email_smtp_require_transport_security: false
  1720. matrix_synapse_email_notif_from: "Matrix <{{ matrix_mailer_sender_address }}>"
  1721. # Even if TURN doesn't support TLS (it does by default),
  1722. # it doesn't hurt to try a secure connection anyway.
  1723. #
  1724. # When Let's Encrypt certificates are used (the default case),
  1725. # we don't enable `turns` endpoints, because WebRTC in Element can't talk to them.
  1726. # Learn more here: https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/1145
  1727. matrix_synapse_turn_uris: |
  1728. {{
  1729. []
  1730. +
  1731. [
  1732. 'turns:' + matrix_server_fqn_matrix + '?transport=udp',
  1733. 'turns:' + matrix_server_fqn_matrix + '?transport=tcp',
  1734. ] if matrix_coturn_enabled and matrix_coturn_tls_enabled and matrix_ssl_retrieval_method != 'lets-encrypt' else []
  1735. +
  1736. [
  1737. 'turn:' + matrix_server_fqn_matrix + '?transport=udp',
  1738. 'turn:' + matrix_server_fqn_matrix + '?transport=tcp',
  1739. ] if matrix_coturn_enabled else []
  1740. }}
  1741. matrix_synapse_turn_shared_secret: "{{ matrix_coturn_turn_static_auth_secret if matrix_coturn_enabled else '' }}"
  1742. matrix_synapse_self_check_validate_certificates: "{{ false if matrix_ssl_retrieval_method == 'self-signed' else true }}"
  1743. matrix_synapse_systemd_required_services_list: |
  1744. {{
  1745. (['docker.service'])
  1746. +
  1747. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  1748. +
  1749. (['matrix-goofys'] if matrix_s3_media_store_enabled else [])
  1750. }}
  1751. matrix_synapse_systemd_wanted_services_list: |
  1752. {{
  1753. (['matrix-coturn.service'] if matrix_coturn_enabled else [])
  1754. +
  1755. (['matrix-mailer.service'] if matrix_mailer_enabled else [])
  1756. }}
  1757. # Synapse workers (used for parallel load-scaling) need Redis for IPC.
  1758. matrix_synapse_redis_enabled: "{{ matrix_redis_enabled }}"
  1759. matrix_synapse_redis_host: "{{ 'matrix-redis' if matrix_redis_enabled else '' }}"
  1760. matrix_synapse_redis_password: "{{ matrix_redis_connection_password if matrix_redis_enabled else '' }}"
  1761. ######################################################################
  1762. #
  1763. # /matrix-synapse
  1764. #
  1765. ######################################################################
  1766. ######################################################################
  1767. #
  1768. # matrix-synapse-admin
  1769. #
  1770. ######################################################################
  1771. matrix_synapse_admin_enabled: false
  1772. # Normally, matrix-nginx-proxy is enabled and nginx can reach Synapse Admin over the container network.
  1773. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  1774. # Synapse Admin's HTTP port to the local host.
  1775. matrix_synapse_admin_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:8766' }}"
  1776. matrix_synapse_admin_container_image_self_build: "{{ matrix_architecture not in ['arm64', 'amd64'] }}"
  1777. ######################################################################
  1778. #
  1779. # /matrix-synapse-admin
  1780. #
  1781. ######################################################################
  1782. ######################################################################
  1783. #
  1784. # matrix-prometheus-node-exporter
  1785. #
  1786. ######################################################################
  1787. matrix_prometheus_node_exporter_enabled: false
  1788. ######################################################################
  1789. #
  1790. # /matrix-prometheus-node-exporter
  1791. #
  1792. ######################################################################
  1793. ######################################################################
  1794. #
  1795. # matrix-prometheus
  1796. #
  1797. ######################################################################
  1798. matrix_prometheus_enabled: false
  1799. # Normally, matrix-nginx-proxy is enabled and nginx can reach Prometheus over the container network.
  1800. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  1801. # Prometheus' HTTP port to the local host.
  1802. matrix_prometheus_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:9090' }}"
  1803. matrix_prometheus_scraper_synapse_enabled: "{{ matrix_synapse_enabled and matrix_synapse_metrics_enabled }}"
  1804. matrix_prometheus_scraper_synapse_targets: ['matrix-synapse:{{ matrix_synapse_metrics_port }}']
  1805. matrix_prometheus_scraper_synapse_workers_enabled_list: "{{ matrix_synapse_workers_enabled_list }}"
  1806. matrix_prometheus_scraper_synapse_rules_synapse_tag: "{{ matrix_synapse_docker_image_tag }}"
  1807. matrix_prometheus_scraper_node_enabled: "{{ matrix_prometheus_node_exporter_enabled }}"
  1808. matrix_prometheus_scraper_node_targets: "{{ ['matrix-prometheus-node-exporter:9100'] if matrix_prometheus_node_exporter_enabled else [] }}"
  1809. matrix_prometheus_scraper_postgres_enabled: "{{ matrix_prometheus_postgres_exporter_enabled }}"
  1810. matrix_prometheus_scraper_postgres_targets: "{{ ['matrix-prometheus-postgres-exporter:'+ matrix_prometheus_postgres_exporter_port | string] if matrix_prometheus_scraper_postgres_enabled else [] }}"
  1811. matrix_prometheus_scraper_hookshot_enabled: "{{ matrix_hookshot_metrics_enabled|default(false) }}"
  1812. matrix_prometheus_scraper_hookshot_targets: "{{ [matrix_hookshot_container_url | string +':'+ matrix_hookshot_metrics_port | string] if matrix_hookshot_metrics_enabled else [] }}"
  1813. ######################################################################
  1814. #
  1815. # /matrix-prometheus
  1816. #
  1817. ######################################################################
  1818. ######################################################################
  1819. #
  1820. # matrix-prometheus-postgres-exporter
  1821. #
  1822. ######################################################################
  1823. matrix_prometheus_postgres_exporter_enabled: false
  1824. matrix_prometheus_postgres_exporter_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'prometheus.pg.db') | to_uuid }}"
  1825. matrix_prometheus_postgres_exporter_systemd_required_services_list: |
  1826. {{
  1827. ['docker.service']
  1828. +
  1829. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  1830. }}
  1831. ######################################################################
  1832. #
  1833. # /matrix-prometheus-postgres-exporter
  1834. #
  1835. ######################################################################
  1836. ######################################################################
  1837. #
  1838. # matrix-grafana
  1839. #
  1840. ######################################################################
  1841. matrix_grafana_enabled: false
  1842. # Normally, matrix-nginx-proxy is enabled and nginx can reach Grafana over the container network.
  1843. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  1844. # Grafana's HTTP port to the local host.
  1845. matrix_grafana_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:3000' }}"
  1846. matrix_grafana_dashboard_download_urls_all: |
  1847. {{
  1848. matrix_grafana_dashboard_download_urls
  1849. +
  1850. (matrix_prometheus_postgres_exporter_dashboard_urls if matrix_prometheus_postgres_exporter_enabled else [])
  1851. }}
  1852. matrix_grafana_systemd_wanted_services_list: |
  1853. {{
  1854. []
  1855. +
  1856. (['matrix-prometheus-postgres-exporter.service'] if matrix_prometheus_postgres_exporter_enabled else [])
  1857. }}
  1858. ######################################################################
  1859. #
  1860. # /matrix-grafana
  1861. #
  1862. ######################################################################
  1863. ######################################################################
  1864. #
  1865. # matrix-registration
  1866. #
  1867. ######################################################################
  1868. matrix_registration_enabled: false
  1869. # Normally, matrix-nginx-proxy is enabled and nginx can reach matrix-registration over the container network.
  1870. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  1871. # matrix-registration's HTTP port to the local host.
  1872. matrix_registration_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:8767' }}"
  1873. matrix_registration_riot_instance: "{{ ('https://' + matrix_server_fqn_element) if matrix_client_element_enabled else 'https://riot.im/app/' }}"
  1874. matrix_registration_shared_secret: |-
  1875. {{
  1876. {
  1877. 'synapse': matrix_synapse_registration_shared_secret,
  1878. 'dendrite': matrix_dendrite_registration_shared_secret,
  1879. }[matrix_homeserver_implementation]
  1880. }}
  1881. matrix_registration_server_location: "{{ matrix_homeserver_container_url }}"
  1882. matrix_registration_api_validate_certs: "{{ false if matrix_ssl_retrieval_method == 'self-signed' else true }}"
  1883. matrix_registration_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  1884. matrix_registration_systemd_required_services_list: |
  1885. {{
  1886. ['docker.service']
  1887. +
  1888. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  1889. }}
  1890. # Postgres is the default, except if not using `matrix_postgres` (internal postgres)
  1891. matrix_registration_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  1892. matrix_registration_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mx.registr.db') | to_uuid }}"
  1893. ######################################################################
  1894. #
  1895. # /matrix-registration
  1896. #
  1897. ######################################################################
  1898. ######################################################################
  1899. #
  1900. # matrix-postgres-backup
  1901. #
  1902. ######################################################################
  1903. matrix_postgres_backup_connection_hostname: "{{ matrix_postgres_connection_hostname }}"
  1904. matrix_postgres_backup_connection_port: "{{ matrix_postgres_connection_port }}"
  1905. matrix_postgres_backup_connection_username: "{{ matrix_postgres_connection_username }}"
  1906. matrix_postgres_backup_connection_password: "{{ matrix_postgres_connection_password }}"
  1907. matrix_postgres_backup_postgres_data_path: "{{ matrix_postgres_data_path if matrix_postgres_enabled else '' }}"
  1908. # the default matrix synapse databse is not always part of the matrix_postgres_additional_databases variable thus we have to add it if the default database is used
  1909. matrix_postgres_backup_databases: |
  1910. {{
  1911. (([{
  1912. 'name': matrix_synapse_database_database
  1913. }] if (matrix_synapse_enabled and matrix_synapse_database_database == matrix_postgres_db_name and matrix_synapse_database_host == 'matrix-postgres') else [])
  1914. +
  1915. matrix_postgres_additional_databases)|map(attribute='name') | list
  1916. }}
  1917. ######################################################################
  1918. #
  1919. # /matrix-postgres-backup
  1920. #
  1921. ######################################################################
  1922. ######################################################################
  1923. #
  1924. # matrix-dendrite
  1925. #
  1926. ######################################################################
  1927. matrix_dendrite_enabled: "{{ matrix_homeserver_implementation == 'dendrite' }}"
  1928. # Normally, matrix-nginx-proxy is enabled and nginx can reach Dendrite over the container network.
  1929. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it,
  1930. # you can expose Dendrite's ports to the host.
  1931. #
  1932. # For exposing Dendrite's plain HTTP server to the local host.
  1933. matrix_dendrite_container_http_host_bind_address: "{{ '' if matrix_nginx_proxy_enabled else ('127.0.0.1:' + matrix_dendrite_http_bind_port | string) }}"
  1934. #
  1935. # For exposing Dendrite's HTTPS server to the local host.
  1936. matrix_dendrite_container_https_host_bind_address: "{{ '' if matrix_nginx_proxy_enabled or not matrix_dendrite_https_bind_port else ('127.0.0.1:' + matrix_dendrite_https_bind_port | string) }}"
  1937. matrix_dendrite_sync_api_real_ip_header: "{{ 'X-Forwarded-For' if matrix_nginx_proxy_enabled else '' }}"
  1938. matrix_dendrite_registration_shared_secret: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'dendrite.rss') | to_uuid }}"
  1939. matrix_dendrite_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'dendrite.db') | to_uuid }}"
  1940. # Even if TURN doesn't support TLS (it does by default),
  1941. # it doesn't hurt to try a secure connection anyway.
  1942. matrix_dendrite_turn_uris: |
  1943. {{
  1944. [
  1945. 'turns:' + matrix_server_fqn_matrix + '?transport=udp',
  1946. 'turns:' + matrix_server_fqn_matrix + '?transport=tcp',
  1947. 'turn:' + matrix_server_fqn_matrix + '?transport=udp',
  1948. 'turn:' + matrix_server_fqn_matrix + '?transport=tcp',
  1949. ]
  1950. if matrix_coturn_enabled
  1951. else []
  1952. }}
  1953. matrix_dendrite_turn_shared_secret: "{{ matrix_coturn_turn_static_auth_secret if matrix_coturn_enabled else '' }}"
  1954. matrix_dendrite_disable_tls_validation: "{{ true if matrix_ssl_retrieval_method == 'self-signed' else false }}"
  1955. matrix_dendrite_self_check_validate_certificates: "{{ false if matrix_ssl_retrieval_method == 'self-signed' else true }}"
  1956. matrix_dendrite_trusted_id_servers: "{{ [matrix_server_fqn_matrix] if matrix_ma1sd_enabled else ['matrix.org', 'vector.im'] }}"
  1957. matrix_dendrite_systemd_required_services_list: |
  1958. {{
  1959. (['docker.service'])
  1960. +
  1961. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  1962. +
  1963. (['matrix-goofys'] if matrix_s3_media_store_enabled else [])
  1964. }}
  1965. matrix_dendrite_systemd_wanted_services_list: |
  1966. {{
  1967. (['matrix-coturn.service'] if matrix_coturn_enabled else [])
  1968. }}
  1969. ######################################################################
  1970. #
  1971. # /matrix-dendrite
  1972. #
  1973. ######################################################################