Matrix Docker Ansible eploy
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 

2045 rader
87 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. matrix_container_global_registry_prefix: "docker.io/"
  11. ######################################################################
  12. #
  13. # matrix-base
  14. #
  15. ######################################################################
  16. matrix_identity_server_url: "{{ ('https://' + matrix_server_fqn_matrix) if matrix_ma1sd_enabled else None }}"
  17. # If Synapse workers are enabled and matrix-nginx-proxy is disabled, certain APIs may not work over 'http://matrix-synapse:8008'.
  18. # This is because we explicitly disable them for the main Synapse process.
  19. matrix_homeserver_container_url: "{{ 'http://matrix-nginx-proxy:12080' if matrix_nginx_proxy_enabled else 'http://matrix-synapse:8008' }}"
  20. ######################################################################
  21. #
  22. # /matrix-base
  23. #
  24. ######################################################################
  25. ######################################################################
  26. #
  27. # matrix-awx
  28. #
  29. ######################################################################
  30. # We don't enable AWX support by default.
  31. matrix_awx_enabled: false
  32. matrix_nginx_proxy_data_path: "{{ '/chroot/website' if (matrix_awx_enabled and not matrix_nginx_proxy_base_domain_homepage_enabled) else (matrix_nginx_proxy_base_path + '/data') }}"
  33. matrix_nginx_proxy_data_path_in_container: "{{ '/nginx-data/matrix-domain' if (matrix_awx_enabled and not matrix_nginx_proxy_base_domain_homepage_enabled) else '/nginx-data' }}"
  34. matrix_nginx_proxy_data_path_extension: "{{ '' if (matrix_awx_enabled and not matrix_nginx_proxy_base_domain_homepage_enabled) else '/matrix-domain' }}"
  35. matrix_nginx_proxy_base_domain_create_directory: "{{ not matrix_awx_enabled }}"
  36. ######################################################################
  37. #
  38. # /matrix-awx
  39. #
  40. ######################################################################
  41. ######################################################################
  42. #
  43. # matrix-bridge-appservice-discord
  44. #
  45. ######################################################################
  46. # We don't enable bridges by default.
  47. matrix_appservice_discord_enabled: false
  48. # Normally, matrix-nginx-proxy is enabled and nginx can reach matrix-appservice-discord over the container network.
  49. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  50. # matrix-appservice-discord's client-server port to the local host.
  51. matrix_appservice_discord_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:9005' }}"
  52. # If the homeserver disables presence, it's likely better (less wasteful) to also disable presence on the bridge side.
  53. matrix_appservice_discord_bridge_disablePresence: "{{ not matrix_synapse_presence_enabled }}"
  54. matrix_appservice_discord_systemd_required_services_list: |
  55. {{
  56. ['docker.service']
  57. +
  58. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  59. +
  60. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  61. +
  62. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  63. }}
  64. matrix_appservice_discord_appservice_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'discord.as.token') | to_uuid }}"
  65. matrix_appservice_discord_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'discord.hs.token') | to_uuid }}"
  66. # We only make this use Postgres if our own Postgres server is enabled.
  67. # It's only then (for now) that we can automatically create the necessary database and user for this service.
  68. matrix_appservice_discord_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  69. matrix_appservice_discord_database_password: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'as.discord.db') | to_uuid }}"
  70. ######################################################################
  71. #
  72. # /matrix-bridge-appservice-discord
  73. #
  74. ######################################################################
  75. ######################################################################
  76. #
  77. # matrix-appservice-webhooks
  78. #
  79. ######################################################################
  80. # We don't enable bridges by default.
  81. matrix_appservice_webhooks_enabled: false
  82. matrix_appservice_webhooks_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  83. # Normally, matrix-nginx-proxy is enabled and nginx can reach matrix-appservice-webhooks over the container network.
  84. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  85. # matrix-appservice-webhooks' client-server port to the local host.
  86. matrix_appservice_webhooks_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else ('127.0.0.1:' ~ matrix_appservice_webhooks_matrix_port) }}"
  87. matrix_appservice_webhooks_appservice_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'webhook.as.token') | to_uuid }}"
  88. matrix_appservice_webhooks_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'webhook.hs.token') | to_uuid }}"
  89. matrix_appservice_webhooks_id_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'webhook.id.token') | to_uuid }}"
  90. matrix_appservice_webhooks_systemd_required_services_list: |
  91. {{
  92. ['docker.service']
  93. +
  94. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  95. +
  96. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  97. }}
  98. ######################################################################
  99. #
  100. # /matrix-appservice-webhooks
  101. #
  102. ######################################################################
  103. ######################################################################
  104. #
  105. # matrix-appservice-slack
  106. #
  107. ######################################################################
  108. # We don't enable bridges by default.
  109. matrix_appservice_slack_enabled: false
  110. matrix_appservice_slack_container_self_build: "{{ matrix_architecture != 'amd64' }}"
  111. # Normally, matrix-nginx-proxy is enabled and nginx can reach matrix-appservice-slack over the container network.
  112. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  113. # matrix-appservice-slack's client-server port to the local host.
  114. matrix_appservice_slack_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else ('127.0.0.1:' ~ matrix_appservice_slack_slack_port) }}"
  115. matrix_appservice_slack_appservice_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'slack.as.token') | to_uuid }}"
  116. matrix_appservice_slack_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'slack.hs.token') | to_uuid }}"
  117. matrix_appservice_slack_id_token: "{{ matrix_synapse_macaroon_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-synapse.service'] if matrix_synapse_enabled else [])
  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: "{{ matrix_synapse_macaroon_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_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-synapse.service'] if matrix_synapse_enabled else [])
  154. +
  155. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  156. }}
  157. matrix_appservice_irc_appservice_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'irc.as.token') | to_uuid }}"
  158. matrix_appservice_irc_homeserver_token: "{{ matrix_synapse_macaroon_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: "{{ matrix_synapse_macaroon_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_systemd_required_services_list: |
  174. {{
  175. ['docker.service']
  176. +
  177. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  178. +
  179. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  180. +
  181. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  182. }}
  183. matrix_beeper_linkedin_appservice_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'linked.as.token') | to_uuid }}"
  184. matrix_beeper_linkedin_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'linked.hs.token') | to_uuid }}"
  185. 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 '' }}"
  186. matrix_beeper_linkedin_bridge_presence: "{{ matrix_synapse_presence_enabled if matrix_synapse_enabled else true }}"
  187. matrix_beeper_linkedin_database_password: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'maulinkedin.db') | to_uuid }}"
  188. ######################################################################
  189. #
  190. # /matrix-bridge-beeper-linkedin
  191. #
  192. ######################################################################
  193. ######################################################################
  194. #
  195. # matrix-bridge-mautrix-facebook
  196. #
  197. ######################################################################
  198. # We don't enable bridges by default.
  199. matrix_mautrix_facebook_enabled: false
  200. matrix_mautrix_facebook_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm64'] }}"
  201. matrix_mautrix_facebook_systemd_required_services_list: |
  202. {{
  203. ['docker.service']
  204. +
  205. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  206. +
  207. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  208. +
  209. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  210. }}
  211. matrix_mautrix_facebook_appservice_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'fb.as.token') | to_uuid }}"
  212. matrix_mautrix_facebook_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'fb.hs.token') | to_uuid }}"
  213. 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 '' }}"
  214. matrix_mautrix_facebook_bridge_presence: "{{ matrix_synapse_presence_enabled if matrix_synapse_enabled else true }}"
  215. # We'd like to force-set people with external Postgres to SQLite, so the bridge role can complain
  216. # and point them to a migration path.
  217. matrix_mautrix_facebook_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  218. matrix_mautrix_facebook_database_password: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mau.fb.db') | to_uuid }}"
  219. ######################################################################
  220. #
  221. # /matrix-bridge-mautrix-facebook
  222. #
  223. ######################################################################
  224. ######################################################################
  225. #
  226. # matrix-bridge-mautrix-hangouts
  227. #
  228. ######################################################################
  229. # We don't enable bridges by default.
  230. matrix_mautrix_hangouts_enabled: false
  231. matrix_mautrix_hangouts_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm64'] }}"
  232. matrix_mautrix_hangouts_systemd_required_services_list: |
  233. {{
  234. ['docker.service']
  235. +
  236. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  237. +
  238. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  239. +
  240. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  241. }}
  242. matrix_mautrix_hangouts_appservice_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'ho.as.token') | to_uuid }}"
  243. matrix_mautrix_hangouts_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'ho.hs.token') | to_uuid }}"
  244. matrix_mautrix_hangouts_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:9007' }}"
  245. 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 '' }}"
  246. # Postgres is the default, except if not using `matrix_postgres` (internal postgres)
  247. matrix_mautrix_hangouts_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  248. matrix_mautrix_hangouts_database_password: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mau.hangouts.db') | to_uuid }}"
  249. ######################################################################
  250. #
  251. # /matrix-bridge-mautrix-hangouts
  252. #
  253. ######################################################################
  254. ######################################################################
  255. #
  256. # matrix-bridge-mautrix-googlechat
  257. #
  258. ######################################################################
  259. # We don't enable bridges by default.
  260. matrix_mautrix_googlechat_enabled: false
  261. matrix_mautrix_googlechat_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm64'] }}"
  262. matrix_mautrix_googlechat_systemd_required_services_list: |
  263. {{
  264. ['docker.service']
  265. +
  266. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  267. +
  268. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  269. +
  270. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  271. }}
  272. matrix_mautrix_googlechat_appservice_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'gc.as.token') | to_uuid }}"
  273. matrix_mautrix_googlechat_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'gc.hs.token') | to_uuid }}"
  274. matrix_mautrix_googlechat_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:9007' }}"
  275. 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 '' }}"
  276. # Postgres is the default, except if not using `matrix_postgres` (internal postgres)
  277. matrix_mautrix_googlechat_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  278. matrix_mautrix_googlechat_database_password: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mau.gc.db') | to_uuid }}"
  279. ######################################################################
  280. #
  281. # /matrix-bridge-mautrix-googlechat
  282. #
  283. ######################################################################
  284. ######################################################################
  285. #
  286. # matrix-bridge-mautrix-instagram
  287. #
  288. ######################################################################
  289. # We don't enable bridges by default.
  290. matrix_mautrix_instagram_enabled: false
  291. matrix_mautrix_instagram_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm64'] }}"
  292. matrix_mautrix_instagram_systemd_required_services_list: |
  293. {{
  294. ['docker.service']
  295. +
  296. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  297. +
  298. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  299. +
  300. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  301. }}
  302. matrix_mautrix_instagram_appservice_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'ig.as.token') | to_uuid }}"
  303. matrix_mautrix_instagram_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'ig.hs.token') | to_uuid }}"
  304. 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 '' }}"
  305. matrix_mautrix_instagram_bridge_presence: "{{ matrix_synapse_presence_enabled if matrix_synapse_enabled else true }}"
  306. # We'd like to force-set people with external Postgres to SQLite, so the bridge role can complain
  307. # and point them to a migration path.
  308. matrix_mautrix_instagram_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  309. matrix_mautrix_instagram_database_password: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mau.ig.db') | to_uuid }}"
  310. ######################################################################
  311. #
  312. # /matrix-bridge-mautrix-instagram
  313. #
  314. ######################################################################
  315. ######################################################################
  316. #
  317. # matrix-bridge-mautrix-signal
  318. #
  319. ######################################################################
  320. # We don't enable bridges by default.
  321. matrix_mautrix_signal_enabled: false
  322. matrix_mautrix_signal_systemd_required_services_list: |
  323. {{
  324. ['docker.service']
  325. +
  326. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  327. +
  328. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  329. +
  330. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  331. +
  332. ['matrix-mautrix-signal-daemon.service']
  333. }}
  334. matrix_mautrix_signal_homeserver_domain: '{{ matrix_domain }}'
  335. matrix_mautrix_signal_homeserver_address: "{{ matrix_homeserver_container_url }}"
  336. matrix_mautrix_signal_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'si.hs.token') | to_uuid }}"
  337. matrix_mautrix_signal_appservice_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'si.as.token') | to_uuid }}"
  338. 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 '' }}"
  339. matrix_mautrix_signal_database_engine: 'postgres'
  340. matrix_mautrix_signal_database_password: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mau.signal.db') | to_uuid }}"
  341. matrix_mautrix_signal_container_self_build: "{{ matrix_architecture not in ['amd64', 'arm64'] }}"
  342. matrix_mautrix_signal_daemon_container_self_build: "{{ matrix_architecture != 'amd64' }}"
  343. ######################################################################
  344. #
  345. # /matrix-bridge-mautrix-signal
  346. #
  347. ######################################################################
  348. ######################################################################
  349. #
  350. # matrix-bridge-mautrix-telegram
  351. #
  352. ######################################################################
  353. # We don't enable bridges by default.
  354. matrix_mautrix_telegram_enabled: false
  355. # Images are multi-arch (amd64 and arm64, but not arm32).
  356. matrix_mautrix_telegram_container_self_build: "{{ matrix_architecture not in ['arm64', 'amd64'] }}"
  357. matrix_telegram_lottieconverter_container_self_build: "{{ matrix_architecture not in ['arm64', 'amd64'] }}"
  358. matrix_telegram_lottieconverter_container_self_build_mask_arch: "{{ matrix_architecture != 'amd64' }}"
  359. matrix_mautrix_telegram_systemd_required_services_list: |
  360. {{
  361. ['docker.service']
  362. +
  363. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  364. +
  365. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  366. +
  367. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  368. }}
  369. matrix_mautrix_telegram_appservice_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'telegr.as.token') | to_uuid }}"
  370. matrix_mautrix_telegram_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'telegr.hs.token') | to_uuid }}"
  371. matrix_mautrix_telegram_public_endpoint: "/{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'telegram') | to_uuid }}"
  372. matrix_mautrix_telegram_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:9006' }}"
  373. 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 '' }}"
  374. # Postgres is the default, except if not using `matrix_postgres` (internal postgres)
  375. matrix_mautrix_telegram_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  376. matrix_mautrix_telegram_database_password: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mau.telegram.db') | to_uuid }}"
  377. ######################################################################
  378. #
  379. # /matrix-bridge-mautrix-telegram
  380. #
  381. ######################################################################
  382. ######################################################################
  383. #
  384. # matrix-bridge-mautrix-whatsapp
  385. #
  386. ######################################################################
  387. # We don't enable bridges by default.
  388. matrix_mautrix_whatsapp_enabled: false
  389. matrix_mautrix_whatsapp_container_image_self_build: "{{ matrix_architecture not in ['arm64', 'amd64'] }}"
  390. matrix_mautrix_whatsapp_systemd_required_services_list: |
  391. {{
  392. ['docker.service']
  393. +
  394. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  395. +
  396. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  397. +
  398. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  399. }}
  400. matrix_mautrix_whatsapp_appservice_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'whats.as.token') | to_uuid }}"
  401. matrix_mautrix_whatsapp_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'whats.hs.token') | to_uuid }}"
  402. 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 '' }}"
  403. # Postgres is the default, except if not using `matrix_postgres` (internal postgres)
  404. matrix_mautrix_whatsapp_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  405. matrix_mautrix_whatsapp_database_password: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mauwhatsapp.db') | to_uuid }}"
  406. ######################################################################
  407. #
  408. # /matrix-bridge-mautrix-whatsapp
  409. #
  410. ######################################################################
  411. ######################################################################
  412. #
  413. # matrix-bridge-mautrix-wsproxy
  414. #
  415. ######################################################################
  416. # We don't enable bridges by default.
  417. matrix_mautrix_wsproxy_enabled: false
  418. matrix_mautrix_wsproxy_systemd_required_services_list: |
  419. {{
  420. ['docker.service']
  421. +
  422. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  423. +
  424. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  425. }}
  426. matrix_mautrix_wsproxy_homeserver_domain: '{{ matrix_domain }}'
  427. matrix_mautrix_wsproxy_homeserver_address: "{{ 'http://matrix-synapse:8008' if matrix_synapse_enabled else '' }}"
  428. matrix_mautrix_wsproxy_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'wsproxy.hs.token') | to_uuid }}"
  429. matrix_mautrix_wsproxy_appservice_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'wsproxy.as.token') | to_uuid }}"
  430. matrix_mautrix_imessage_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'imessage.hs.token') | to_uuid }}"
  431. matrix_mautrix_imessage_appservice_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'imessage.as.token') | to_uuid }}"
  432. 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 '' }}"
  433. # Postgres is the default, except if not using `matrix_postgres` (internal postgres)
  434. ######################################################################
  435. #
  436. # /matrix-bridge-mautrix-wsproxy
  437. #
  438. ######################################################################
  439. ######################################################################
  440. #
  441. # matrix-sms-bridge
  442. #
  443. ######################################################################
  444. # We don't enable bridges by default.
  445. matrix_sms_bridge_enabled: false
  446. matrix_sms_bridge_systemd_required_services_list: |
  447. {{
  448. ['docker.service']
  449. +
  450. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  451. +
  452. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  453. }}
  454. matrix_sms_bridge_appservice_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'sms.as.token') | to_uuid }}"
  455. matrix_sms_bridge_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'sms.hs.token') | to_uuid }}"
  456. ######################################################################
  457. #
  458. # /matrix-sms-bridge
  459. #
  460. ######################################################################
  461. ######################################################################
  462. #
  463. # matrix-bridge-heisenbridge
  464. #
  465. ######################################################################
  466. # We don't enable bridges by default.
  467. matrix_heisenbridge_enabled: false
  468. matrix_heisenbridge_appservice_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'heisen.as.tok') | to_uuid }}"
  469. matrix_heisenbridge_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'heisen.hs.tok') | to_uuid }}"
  470. matrix_heisenbridge_systemd_wanted_services_list: |
  471. {{
  472. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  473. +
  474. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  475. }}
  476. ######################################################################
  477. #
  478. # /matrix-bridge-heisenbridge
  479. #
  480. ######################################################################
  481. ######################################################################
  482. #
  483. # matrix-bridge-mx-puppet-skype
  484. #
  485. ######################################################################
  486. # We don't enable bridges by default.
  487. matrix_mx_puppet_skype_enabled: false
  488. matrix_mx_puppet_skype_container_image_self_build: "{{ matrix_architecture != 'amd64'}}"
  489. matrix_mx_puppet_skype_systemd_required_services_list: |
  490. {{
  491. ['docker.service']
  492. +
  493. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  494. +
  495. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  496. +
  497. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  498. }}
  499. matrix_mx_puppet_skype_appservice_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'skype.as.tok') | to_uuid }}"
  500. matrix_mx_puppet_skype_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'skype.hs.tok') | to_uuid }}"
  501. matrix_mx_puppet_skype_login_shared_secret: "{{ matrix_synapse_ext_password_provider_shared_secret_auth_shared_secret if matrix_synapse_ext_password_provider_shared_secret_auth_enabled else '' }}"
  502. # Postgres is the default, except if not using `matrix_postgres` (internal postgres)
  503. matrix_mx_puppet_skype_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  504. matrix_mx_puppet_skype_database_password: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mxpup.skype.db') | to_uuid }}"
  505. ######################################################################
  506. #
  507. # /matrix-bridge-mx-puppet-skype
  508. #
  509. ######################################################################
  510. ######################################################################
  511. #
  512. # matrix-bridge-mx-puppet-slack
  513. #
  514. ######################################################################
  515. # We don't enable bridges by default.
  516. matrix_mx_puppet_slack_enabled: false
  517. matrix_mx_puppet_slack_container_image_self_build: "{{ matrix_architecture != 'amd64'}}"
  518. matrix_mx_puppet_slack_systemd_required_services_list: |
  519. {{
  520. ['docker.service']
  521. +
  522. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  523. +
  524. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  525. +
  526. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  527. }}
  528. matrix_mx_puppet_slack_appservice_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mxslk.as.tok') | to_uuid }}"
  529. matrix_mx_puppet_slack_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mxslk.hs.tok') | to_uuid }}"
  530. 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 '' }}"
  531. # Postgres is the default, except if not using `matrix_postgres` (internal postgres)
  532. matrix_mx_puppet_slack_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  533. matrix_mx_puppet_slack_database_password: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mxpup.slack.db') | to_uuid }}"
  534. ######################################################################
  535. #
  536. # /matrix-bridge-mx-puppet-slack
  537. #
  538. ######################################################################
  539. ######################################################################
  540. #
  541. # matrix-bridge-mx-puppet-twitter
  542. #
  543. ######################################################################
  544. # We don't enable bridges by default.
  545. matrix_mx_puppet_twitter_enabled: false
  546. matrix_mx_puppet_twitter_container_image_self_build: "{{ matrix_architecture != 'amd64'}}"
  547. matrix_mx_puppet_twitter_systemd_required_services_list: |
  548. {{
  549. ['docker.service']
  550. +
  551. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  552. +
  553. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  554. +
  555. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  556. }}
  557. matrix_mx_puppet_twitter_appservice_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mxtwt.as.tok') | to_uuid }}"
  558. matrix_mx_puppet_twitter_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mxtwt.hs.tok') | to_uuid }}"
  559. 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 '' }}"
  560. 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) }}"
  561. # Postgres is the default, except if not using `matrix_postgres` (internal postgres)
  562. matrix_mx_puppet_twitter_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  563. matrix_mx_puppet_twitter_database_password: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mxpup.twitter.db') | to_uuid }}"
  564. ######################################################################
  565. #
  566. # /matrix-bridge-mx-puppet-twitter
  567. #
  568. ######################################################################
  569. ######################################################################
  570. #
  571. # matrix-bridge-mx-puppet-instagram
  572. #
  573. ######################################################################
  574. # We don't enable bridges by default.
  575. matrix_mx_puppet_instagram_enabled: false
  576. matrix_mx_puppet_instagram_container_image_self_build: "{{ matrix_architecture != 'amd64'}}"
  577. matrix_mx_puppet_instagram_systemd_required_services_list: |
  578. {{
  579. ['docker.service']
  580. +
  581. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  582. +
  583. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  584. +
  585. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  586. }}
  587. matrix_mx_puppet_instagram_appservice_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mxig.as.tok') | to_uuid }}"
  588. matrix_mx_puppet_instagram_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mxig.hs.tok') | to_uuid }}"
  589. 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 '' }}"
  590. # Postgres is the default, except if not using `matrix_postgres` (internal postgres)
  591. matrix_mx_puppet_instagram_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  592. matrix_mx_puppet_instagram_database_password: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mxpup.ig.db') | to_uuid }}"
  593. ######################################################################
  594. #
  595. # /matrix-bridge-mx-puppet-instagram
  596. #
  597. ######################################################################
  598. ######################################################################
  599. #
  600. # matrix-bridge-mx-puppet-discord
  601. #
  602. ######################################################################
  603. # We don't enable bridges by default.
  604. matrix_mx_puppet_discord_enabled: false
  605. matrix_mx_puppet_discord_container_image_self_build: "{{ matrix_architecture != 'amd64'}}"
  606. matrix_mx_puppet_discord_systemd_required_services_list: |
  607. {{
  608. ['docker.service']
  609. +
  610. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  611. +
  612. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  613. +
  614. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  615. }}
  616. matrix_mx_puppet_discord_appservice_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mxdsc.as.tok') | to_uuid }}"
  617. matrix_mx_puppet_discord_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mxdsc.hs.tok') | to_uuid }}"
  618. 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 '' }}"
  619. # Postgres is the default, except if not using `matrix_postgres` (internal postgres)
  620. matrix_mx_puppet_discord_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  621. matrix_mx_puppet_discord_database_password: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mxpup.dsc.db') | to_uuid }}"
  622. ######################################################################
  623. #
  624. # /matrix-bridge-mx-puppet-discord
  625. #
  626. ######################################################################
  627. ######################################################################
  628. #
  629. # matrix-bridge-mx-puppet-steam
  630. #
  631. ######################################################################
  632. # We don't enable bridges by default.
  633. matrix_mx_puppet_steam_enabled: false
  634. matrix_mx_puppet_steam_container_image_self_build: "{{ matrix_architecture != 'amd64'}}"
  635. matrix_mx_puppet_steam_systemd_required_services_list: |
  636. {{
  637. ['docker.service']
  638. +
  639. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  640. +
  641. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  642. +
  643. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  644. }}
  645. matrix_mx_puppet_steam_appservice_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mxste.as.tok') | to_uuid }}"
  646. matrix_mx_puppet_steam_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mxste.hs.tok') | to_uuid }}"
  647. 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 '' }}"
  648. # Postgres is the default, except if not using `matrix_postgres` (internal postgres)
  649. matrix_mx_puppet_steam_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  650. matrix_mx_puppet_steam_database_password: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mxpup.steam.db') | to_uuid }}"
  651. ######################################################################
  652. #
  653. # /matrix-bridge-mx-puppet-steam
  654. #
  655. ######################################################################
  656. ######################################################################
  657. #
  658. # matrix-bridge-mx-puppet-groupme
  659. #
  660. ######################################################################
  661. # We don't enable bridges by default.
  662. matrix_mx_puppet_groupme_enabled: false
  663. matrix_mx_puppet_groupme_container_image_self_build: "{{ matrix_architecture != 'amd64'}}"
  664. matrix_mx_puppet_groupme_systemd_required_services_list: |
  665. {{
  666. ['docker.service']
  667. +
  668. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  669. +
  670. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  671. +
  672. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  673. }}
  674. matrix_mx_puppet_groupme_appservice_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mxgro.as.tok') | to_uuid }}"
  675. matrix_mx_puppet_groupme_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mxgro.hs.tok') | to_uuid }}"
  676. 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 '' }}"
  677. # Postgres is the default, except if not using `matrix_postgres` (internal postgres)
  678. matrix_mx_puppet_groupme_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  679. matrix_mx_puppet_groupme_database_password: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mxpup.groupme.db') | to_uuid }}"
  680. ######################################################################
  681. #
  682. # /matrix-bridge-mx-puppet-groupme
  683. #
  684. ######################################################################
  685. ######################################################################
  686. #
  687. # matrix-bot-matrix-reminder-bot
  688. #
  689. ######################################################################
  690. # We don't enable bots by default.
  691. matrix_bot_matrix_reminder_bot_enabled: false
  692. matrix_bot_matrix_reminder_bot_systemd_required_services_list: |
  693. {{
  694. ['docker.service']
  695. +
  696. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  697. +
  698. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  699. +
  700. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  701. }}
  702. # Postgres is the default, except if not using `matrix_postgres` (internal postgres)
  703. matrix_bot_matrix_reminder_bot_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  704. matrix_bot_matrix_reminder_bot_database_password: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'reminder.bot.db') | to_uuid }}"
  705. matrix_bot_matrix_reminder_bot_container_self_build: "{{ matrix_architecture != 'amd64' }}"
  706. ######################################################################
  707. #
  708. # /matrix-bot-matrix-reminder-bot
  709. #
  710. ######################################################################
  711. ######################################################################
  712. #
  713. # matrix-bot-go-neb
  714. #
  715. ######################################################################
  716. # We don't enable bots by default.
  717. matrix_bot_go_neb_enabled: false
  718. matrix_bot_go_neb_systemd_required_services_list: |
  719. {{
  720. ['docker.service']
  721. +
  722. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  723. +
  724. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  725. }}
  726. matrix_bot_go_neb_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:4050' }}"
  727. ######################################################################
  728. #
  729. # /matrix-bot-go-neb
  730. #
  731. ######################################################################
  732. ######################################################################
  733. #
  734. # matrix-bot-mjolnir
  735. #
  736. ######################################################################
  737. # We don't enable bots by default.
  738. matrix_bot_mjolnir_enabled: false
  739. matrix_bot_mjolnir_container_image_self_build: "{{ matrix_architecture != 'amd64'}}"
  740. matrix_bot_mjolnir_systemd_required_services_list: |
  741. {{
  742. ['docker.service']
  743. +
  744. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  745. +
  746. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  747. +
  748. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  749. }}
  750. ######################################################################
  751. #
  752. # /matrix-bot-mjolnir
  753. #
  754. ######################################################################
  755. ######################################################################
  756. #
  757. # matrix-corporal
  758. #
  759. ######################################################################
  760. matrix_corporal_enabled: false
  761. matrix_corporal_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  762. # Normally, matrix-nginx-proxy is enabled and nginx can reach matrix-corporal over the container network.
  763. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  764. # matrix-corporal's web-server ports to the local host.
  765. matrix_corporal_container_http_gateway_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:41080' }}"
  766. matrix_corporal_container_http_api_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:41081' }}"
  767. matrix_corporal_systemd_required_services_list: |
  768. {{
  769. (['docker.service'])
  770. +
  771. (['matrix-synapse.service'])
  772. }}
  773. # This goes to Synapse's vhost
  774. matrix_corporal_matrix_homeserver_api_endpoint: "{{ matrix_homeserver_container_url }}"
  775. matrix_corporal_matrix_auth_shared_secret: "{{ matrix_synapse_ext_password_provider_shared_secret_auth_shared_secret }}"
  776. # This is only useful if there's REST auth provider to make use of it.
  777. matrix_corporal_http_gateway_internal_rest_auth_enabled: "{{ matrix_synapse_ext_password_provider_rest_auth_enabled }}"
  778. matrix_corporal_matrix_registration_shared_secret: "{{ matrix_synapse_registration_shared_secret }}"
  779. ######################################################################
  780. #
  781. # /matrix-corporal
  782. #
  783. ######################################################################
  784. ######################################################################
  785. #
  786. # matrix-coturn
  787. #
  788. ######################################################################
  789. matrix_coturn_enabled: true
  790. matrix_coturn_container_image_self_build: "{{ matrix_architecture != 'amd64'}}"
  791. matrix_coturn_turn_external_ip_address: "{{ ansible_host }}"
  792. matrix_coturn_tls_enabled: "{{ matrix_ssl_retrieval_method != 'none' }}"
  793. matrix_coturn_tls_cert_path: "{{ matrix_ssl_config_dir_path }}/live/{{ matrix_server_fqn_matrix }}/fullchain.pem"
  794. matrix_coturn_tls_key_path: "{{ matrix_ssl_config_dir_path }}/live/{{ matrix_server_fqn_matrix }}/privkey.pem"
  795. matrix_coturn_container_additional_volumes: |
  796. {{
  797. ([] if matrix_ssl_retrieval_method == 'none' else [
  798. {
  799. 'src': matrix_ssl_config_dir_path,
  800. 'dst': matrix_ssl_config_dir_path,
  801. 'options': 'ro',
  802. }
  803. ])
  804. }}
  805. ######################################################################
  806. #
  807. # /matrix-coturn
  808. #
  809. ######################################################################
  810. ######################################################################
  811. #
  812. # matrix-dimension
  813. #
  814. ######################################################################
  815. matrix_dimension_enabled: false
  816. # Normally, matrix-nginx-proxy is enabled and nginx can reach Dimension over the container network.
  817. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  818. # the Dimension HTTP port to the local host.
  819. matrix_dimension_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:8184' }}"
  820. matrix_integration_manager_rest_url: "{{ matrix_dimension_integrations_rest_url if matrix_dimension_enabled else None }}"
  821. matrix_integration_manager_ui_url: "{{ matrix_dimension_integrations_ui_url if matrix_dimension_enabled else None }}"
  822. matrix_dimension_systemd_required_services_list: |
  823. {{
  824. ['docker.service']
  825. +
  826. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  827. +
  828. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  829. +
  830. (['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
  831. }}
  832. # Postgres is the default, except if not using `matrix_postgres` (internal postgres)
  833. matrix_dimension_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  834. matrix_dimension_database_password: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'dimension.db') | to_uuid }}"
  835. ######################################################################
  836. #
  837. # /matrix-dimension
  838. #
  839. ######################################################################
  840. ######################################################################
  841. #
  842. # matrix-etherpad
  843. #
  844. ######################################################################
  845. matrix_etherpad_enabled: false
  846. matrix_etherpad_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:9001' }}"
  847. matrix_etherpad_systemd_required_services_list: |
  848. {{
  849. ['docker.service']
  850. +
  851. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  852. }}
  853. matrix_etherpad_database_password: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'etherpad.db') | to_uuid }}"
  854. ######################################################################
  855. #
  856. # /matrix-etherpad
  857. #
  858. ######################################################################
  859. ######################################################################
  860. #
  861. # matrix-dynamic-dns
  862. #
  863. ######################################################################
  864. matrix_dynamic_dns_enabled: false
  865. ######################################################################
  866. #
  867. # /matrix-dynamic-dns
  868. #
  869. ######################################################################
  870. ######################################################################
  871. #
  872. # matrix-email2matrix
  873. #
  874. ######################################################################
  875. matrix_email2matrix_enabled: false
  876. matrix_email2matrix_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  877. ######################################################################
  878. #
  879. # /matrix-email2matrix
  880. #
  881. ######################################################################
  882. ######################################################################
  883. #
  884. # matrix-jitsi
  885. #
  886. ######################################################################
  887. matrix_jitsi_enabled: false
  888. # Normally, matrix-nginx-proxy is enabled and nginx can reach jitsi/web over the container network.
  889. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  890. # the Jitsi HTTP port to the local host.
  891. matrix_jitsi_web_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:13080' }}"
  892. matrix_jitsi_jvb_container_colibri_ws_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:13090' }}"
  893. matrix_jitsi_prosody_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:5280' }}"
  894. matrix_jitsi_jibri_xmpp_password: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'jibri') | to_uuid }}"
  895. matrix_jitsi_jicofo_auth_password: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'jicofo') | to_uuid }}"
  896. matrix_jitsi_jvb_auth_password: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'jvb') | to_uuid }}"
  897. matrix_jitsi_web_stun_servers: |
  898. {{
  899. [
  900. 'stun:' + matrix_server_fqn_matrix + ':5349',
  901. 'stun:' + matrix_server_fqn_matrix + ':3478',
  902. ]
  903. if matrix_coturn_enabled
  904. else [ 'stun:meet-jit-si-turnrelay.jitsi.net:443']
  905. }}
  906. # If the self-hosted Etherpad instance is available, it will also show up in Jitsi conferences,
  907. # unless explicitly disabled by setting `matrix_jitsi_etherpad_enabled` to false.
  908. # Falls back to the scalar.vector.im etherpad in case someone sets `matrix_jitsi_etherpad_enabled` to true,
  909. # while also setting `matrix_etherpad_enabled` to false.
  910. matrix_jitsi_etherpad_enabled: "{{ matrix_etherpad_enabled }}"
  911. matrix_jitsi_etherpad_base: "{{ matrix_etherpad_base_url if matrix_etherpad_enabled else 'https://scalar.vector.im/etherpad' }}"
  912. ######################################################################
  913. #
  914. # /matrix-jitsi
  915. #
  916. ######################################################################
  917. ######################################################################
  918. #
  919. # matrix-mailer
  920. #
  921. ######################################################################
  922. # By default, this playbook sets up an exim mailer server (running in a container).
  923. # This is so that Synapse can send email reminders for unread messages.
  924. # Other services (like ma1sd), also use the mailer.
  925. matrix_mailer_enabled: true
  926. matrix_mailer_container_image_self_build: "{{ matrix_architecture != 'amd64'}}"
  927. ######################################################################
  928. #
  929. # /matrix-mailer
  930. #
  931. ######################################################################
  932. ######################################################################
  933. #
  934. # matrix-ma1sd
  935. #
  936. ######################################################################
  937. # By default, this playbook installs the ma1sd identity server on the same domain as Synapse (`matrix_server_fqn_matrix`).
  938. # If you wish to use the public identity servers (matrix.org, vector.im) instead of your own you may wish to disable this.
  939. matrix_ma1sd_enabled: true
  940. matrix_ma1sd_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  941. # Normally, matrix-nginx-proxy is enabled and nginx can reach ma1sd over the container network.
  942. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  943. # ma1sd's web-server port.
  944. matrix_ma1sd_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:8090' }}"
  945. # We enable Synapse integration via its Postgres database by default.
  946. # When using another Identity store, you might wish to disable this and define
  947. # your own configuration in `matrix_ma1sd_configuration_extension_yaml`.
  948. matrix_ma1sd_synapsesql_enabled: true
  949. matrix_ma1sd_synapsesql_type: postgresql
  950. matrix_ma1sd_synapsesql_connection: //{{ matrix_synapse_database_host }}/{{ matrix_synapse_database_database }}?user={{ matrix_synapse_database_user | urlencode() }}&password={{ matrix_synapse_database_password | urlencode() }}
  951. matrix_ma1sd_dns_overwrite_enabled: true
  952. matrix_ma1sd_dns_overwrite_homeserver_client_name: "{{ matrix_server_fqn_matrix }}"
  953. # The `matrix_ma1sd_dns_overwrite_homeserver_client_value` value when matrix_nginx_proxy_enabled is false covers the general case,
  954. # but may be inaccurate if matrix-corporal is enabled.
  955. 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 }}"
  956. # By default, we send mail through the `matrix-mailer` service.
  957. matrix_ma1sd_threepid_medium_email_identity_from: "{{ matrix_mailer_sender_address }}"
  958. matrix_ma1sd_threepid_medium_email_connectors_smtp_host: "matrix-mailer"
  959. matrix_ma1sd_threepid_medium_email_connectors_smtp_port: 8025
  960. matrix_ma1sd_threepid_medium_email_connectors_smtp_tls: 0
  961. matrix_ma1sd_self_check_validate_certificates: "{{ false if matrix_ssl_retrieval_method == 'self-signed' else true }}"
  962. matrix_ma1sd_systemd_required_services_list: |
  963. {{
  964. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  965. }}
  966. matrix_ma1sd_systemd_wanted_services_list: |
  967. {{
  968. (['matrix-corporal.service'] if matrix_corporal_enabled else ['matrix-synapse.service'])
  969. +
  970. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  971. +
  972. (['matrix-mailer.service'] if matrix_mailer_enabled else [])
  973. }}
  974. # Postgres is the default, except if not using `matrix_postgres` (internal postgres)
  975. matrix_ma1sd_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  976. matrix_ma1sd_database_password: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'ma1sd.db') | to_uuid }}"
  977. ######################################################################
  978. #
  979. # /matrix-ma1sd
  980. #
  981. ######################################################################
  982. ######################################################################
  983. #
  984. # matrix-nginx-proxy
  985. #
  986. ######################################################################
  987. # By default, this playbook sets up a reverse-proxy nginx proxy server on TCP ports 80, 443 and 8448.
  988. # This is fine if you're dedicating the whole server to Matrix.
  989. # If that's not the case, you may wish to disable this and take care of proxying yourself.
  990. matrix_nginx_proxy_enabled: true
  991. matrix_nginx_proxy_proxy_matrix_client_api_addr_with_container: "{{ 'matrix-corporal:41080' if matrix_corporal_enabled else 'matrix-nginx-proxy:12080' }}"
  992. 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' }}"
  993. matrix_nginx_proxy_proxy_matrix_client_api_client_max_body_size_mb: "{{ matrix_synapse_max_upload_size_mb }}"
  994. matrix_nginx_proxy_proxy_matrix_client_api_forwarded_location_synapse_admin_api_enabled: "{{ matrix_synapse_admin_enabled }}"
  995. matrix_nginx_proxy_proxy_matrix_client_redirect_root_uri_to_domain: "{{ matrix_server_fqn_element if matrix_client_element_enabled else '' }}"
  996. matrix_nginx_proxy_proxy_matrix_enabled: true
  997. matrix_nginx_proxy_proxy_element_enabled: "{{ matrix_client_element_enabled }}"
  998. matrix_nginx_proxy_proxy_hydrogen_enabled: "{{ matrix_client_hydrogen_enabled }}"
  999. matrix_nginx_proxy_proxy_dimension_enabled: "{{ matrix_dimension_enabled }}"
  1000. matrix_nginx_proxy_proxy_bot_go_neb_enabled: "{{ matrix_bot_go_neb_enabled }}"
  1001. matrix_nginx_proxy_proxy_jitsi_enabled: "{{ matrix_jitsi_enabled }}"
  1002. matrix_nginx_proxy_proxy_grafana_enabled: "{{ matrix_grafana_enabled }}"
  1003. matrix_nginx_proxy_proxy_sygnal_enabled: "{{ matrix_sygnal_enabled }}"
  1004. matrix_nginx_proxy_proxy_mautrix_wsproxy_enabled: "{{ matrix_mautrix_wsproxy_enabled }}"
  1005. matrix_nginx_proxy_proxy_matrix_corporal_api_enabled: "{{ matrix_corporal_enabled and matrix_corporal_http_api_enabled }}"
  1006. matrix_nginx_proxy_proxy_matrix_corporal_api_addr_with_container: "matrix-corporal:41081"
  1007. matrix_nginx_proxy_proxy_matrix_corporal_api_addr_sans_container: "127.0.0.1:41081"
  1008. matrix_nginx_proxy_proxy_matrix_identity_api_enabled: "{{ matrix_ma1sd_enabled }}"
  1009. matrix_nginx_proxy_proxy_matrix_identity_api_addr_with_container: "matrix-ma1sd:8090"
  1010. matrix_nginx_proxy_proxy_matrix_identity_api_addr_sans_container: "127.0.0.1:8090"
  1011. # By default, we do TLS termination for the Matrix Federation API (port 8448) at matrix-nginx-proxy.
  1012. # Unless this is handled there OR Synapse's federation listener port is disabled, we'll reverse-proxy.
  1013. matrix_nginx_proxy_proxy_matrix_federation_api_enabled: "{{ matrix_synapse_federation_port_enabled and not matrix_synapse_tls_federation_listener_enabled }}"
  1014. matrix_nginx_proxy_proxy_matrix_federation_api_addr_with_container: "matrix-nginx-proxy:12088"
  1015. matrix_nginx_proxy_proxy_matrix_federation_api_addr_sans_container: "127.0.0.1:12088"
  1016. # Settings controlling matrix-synapse-proxy.conf
  1017. matrix_nginx_proxy_proxy_synapse_enabled: "{{ matrix_synapse_enabled }}"
  1018. # When matrix-nginx-proxy is disabled, the actual port number that the vhost uses may begin to matter.
  1019. matrix_nginx_proxy_proxy_matrix_federation_port: "{{ matrix_federation_public_port }}"
  1020. matrix_nginx_proxy_container_federation_host_bind_port: "{{ matrix_federation_public_port }}"
  1021. # This used to be hooked to `matrix_synapse_metrics_enabled`, but we don't do it anymore.
  1022. # The fact that someone wishes to enable Synapse metrics does not necessarily mean they want to make them public.
  1023. # A local Prometheus can consume them over the container network.
  1024. matrix_nginx_proxy_proxy_synapse_metrics: false
  1025. matrix_nginx_proxy_proxy_synapse_metrics_addr_with_container: "matrix-synapse:{{ matrix_synapse_metrics_port }}"
  1026. matrix_nginx_proxy_proxy_synapse_metrics_addr_sans_container: "127.0.0.1:{{ matrix_synapse_metrics_port }}"
  1027. matrix_nginx_proxy_proxy_matrix_user_directory_search_enabled: "{{ matrix_ma1sd_enabled }}"
  1028. matrix_nginx_proxy_proxy_matrix_user_directory_search_addr_with_container: "{{ matrix_nginx_proxy_proxy_matrix_identity_api_addr_with_container }}"
  1029. matrix_nginx_proxy_proxy_matrix_user_directory_search_addr_sans_container: "{{ matrix_nginx_proxy_proxy_matrix_identity_api_addr_sans_container }}"
  1030. matrix_nginx_proxy_self_check_validate_certificates: "{{ false if matrix_ssl_retrieval_method == 'self-signed' else true }}"
  1031. # OCSP stapling does not make sense when self-signed certificates are used.
  1032. # See https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1073
  1033. # and https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/1074
  1034. matrix_nginx_proxy_ocsp_stapling_enabled: "{{ matrix_ssl_retrieval_method != 'self-signed' }}"
  1035. matrix_nginx_proxy_synapse_presence_disabled: "{{ not matrix_synapse_presence_enabled }}"
  1036. matrix_nginx_proxy_synapse_workers_enabled: "{{ matrix_synapse_workers_enabled }}"
  1037. matrix_nginx_proxy_synapse_workers_list: "{{ matrix_synapse_workers_enabled_list }}"
  1038. matrix_nginx_proxy_synapse_generic_worker_client_server_locations: "{{ matrix_synapse_workers_generic_worker_client_server_endpoints }}"
  1039. matrix_nginx_proxy_synapse_generic_worker_federation_locations: "{{ matrix_synapse_workers_generic_worker_federation_endpoints }}"
  1040. matrix_nginx_proxy_synapse_media_repository_locations: "{{matrix_synapse_workers_media_repository_endpoints|default([]) }}"
  1041. matrix_nginx_proxy_synapse_user_dir_locations: "{{ matrix_synapse_workers_user_dir_endpoints|default([]) }}"
  1042. matrix_nginx_proxy_synapse_frontend_proxy_locations: "{{ matrix_synapse_workers_frontend_proxy_endpoints|default([]) }}"
  1043. matrix_nginx_proxy_proxy_synapse_workers_enabled_list: "{{ matrix_synapse_workers_enabled_list }}"
  1044. matrix_nginx_proxy_systemd_wanted_services_list: |
  1045. {{
  1046. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  1047. +
  1048. (['matrix-corporal.service'] if matrix_corporal_enabled else [])
  1049. +
  1050. (['matrix-ma1sd.service'] if matrix_ma1sd_enabled else [])
  1051. +
  1052. (['matrix-client-element.service'] if matrix_client_element_enabled else [])
  1053. }}
  1054. matrix_ssl_domains_to_obtain_certificates_for: |
  1055. {{
  1056. ([matrix_server_fqn_matrix])
  1057. +
  1058. ([matrix_server_fqn_element] if matrix_client_element_enabled else [])
  1059. +
  1060. ([matrix_nginx_proxy_proxy_riot_compat_redirect_hostname] if matrix_nginx_proxy_proxy_riot_compat_redirect_enabled else [])
  1061. +
  1062. ([matrix_server_fqn_hydrogen] if matrix_client_hydrogen_enabled else [])
  1063. +
  1064. ([matrix_server_fqn_dimension] if matrix_dimension_enabled else [])
  1065. +
  1066. ([matrix_server_fqn_bot_go_neb] if matrix_bot_go_neb_enabled else [])
  1067. +
  1068. ([matrix_server_fqn_jitsi] if matrix_jitsi_enabled else [])
  1069. +
  1070. ([matrix_server_fqn_grafana] if matrix_grafana_enabled else [])
  1071. +
  1072. ([matrix_server_fqn_sygnal] if matrix_sygnal_enabled else [])
  1073. +
  1074. ([matrix_server_fqn_mautrix_wsproxy] if matrix_mautrix_wsproxy_enabled else [])
  1075. +
  1076. ([matrix_domain] if matrix_nginx_proxy_base_domain_serving_enabled else [])
  1077. +
  1078. matrix_ssl_additional_domains_to_obtain_certificates_for
  1079. }}
  1080. matrix_ssl_architecture: "{{
  1081. {
  1082. 'amd64': 'amd64',
  1083. 'arm32': 'arm32v6',
  1084. 'arm64': 'arm64v8',
  1085. }[matrix_architecture]
  1086. }}"
  1087. matrix_ssl_pre_obtaining_required_service_name: "{{ 'matrix-dynamic-dns' if matrix_dynamic_dns_enabled else '' }}"
  1088. ######################################################################
  1089. #
  1090. # /matrix-nginx-proxy
  1091. #
  1092. ######################################################################
  1093. ######################################################################
  1094. #
  1095. # matrix-postgres
  1096. #
  1097. ######################################################################
  1098. matrix_postgres_enabled: true
  1099. matrix_postgres_architecture: "{{ matrix_architecture }}"
  1100. # We unset this if internal Postgres disabled, which will cascade to some other variables
  1101. # and tell users they need to set it (either here or in those variables).
  1102. matrix_postgres_connection_hostname: "{{ 'matrix-postgres' if matrix_postgres_enabled else '' }}"
  1103. matrix_postgres_pgloader_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  1104. matrix_postgres_additional_databases: |
  1105. {{
  1106. ([{
  1107. 'name': matrix_synapse_database_database,
  1108. 'username': matrix_synapse_database_user,
  1109. 'password': matrix_synapse_database_password,
  1110. }] if (matrix_synapse_enabled and matrix_synapse_database_database != matrix_postgres_db_name and matrix_synapse_database_host == 'matrix-postgres') else [])
  1111. +
  1112. ([{
  1113. 'name': matrix_ma1sd_database_name,
  1114. 'username': matrix_ma1sd_database_username,
  1115. 'password': matrix_ma1sd_database_password,
  1116. }] if (matrix_ma1sd_enabled and matrix_ma1sd_database_engine == 'postgres' and matrix_ma1sd_database_hostname == 'matrix-postgres') else [])
  1117. +
  1118. ([{
  1119. 'name': matrix_bot_matrix_reminder_bot_database_name,
  1120. 'username': matrix_bot_matrix_reminder_bot_database_username,
  1121. 'password': matrix_bot_matrix_reminder_bot_database_password,
  1122. }] 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 [])
  1123. +
  1124. ([{
  1125. 'name': matrix_registration_database_name,
  1126. 'username': matrix_registration_database_username,
  1127. 'password': matrix_registration_database_password,
  1128. }] if (matrix_registration_enabled and matrix_registration_database_engine == 'postgres' and matrix_registration_database_hostname == 'matrix-postgres') else [])
  1129. +
  1130. ([{
  1131. 'name': matrix_appservice_discord_database_name,
  1132. 'username': matrix_appservice_discord_database_username,
  1133. 'password': matrix_appservice_discord_database_password,
  1134. }] if (matrix_appservice_discord_enabled and matrix_appservice_discord_database_engine == 'postgres' and matrix_appservice_discord_database_hostname == 'matrix-postgres') else [])
  1135. +
  1136. ([{
  1137. 'name': matrix_appservice_slack_database_name,
  1138. 'username': matrix_appservice_slack_database_username,
  1139. 'password': matrix_appservice_slack_database_password,
  1140. }] if (matrix_appservice_slack_enabled and matrix_appservice_slack_database_engine == 'postgres' and matrix_appservice_slack_database_hostname == 'matrix-postgres') else [])
  1141. +
  1142. ([{
  1143. 'name': matrix_appservice_irc_database_name,
  1144. 'username': matrix_appservice_irc_database_username,
  1145. 'password': matrix_appservice_irc_database_password,
  1146. }] if (matrix_appservice_irc_enabled and matrix_appservice_irc_database_engine == 'postgres' and matrix_appservice_irc_database_hostname == 'matrix-postgres') else [])
  1147. +
  1148. ([{
  1149. 'name': matrix_beeper_linkedin_database_name,
  1150. 'username': matrix_beeper_linkedin_database_username,
  1151. 'password': matrix_beeper_linkedin_database_password,
  1152. }] if (matrix_beeper_linkedin_enabled and matrix_beeper_linkedin_database_engine == 'postgres' and matrix_beeper_linkedin_database_hostname == 'matrix-postgres') else [])
  1153. +
  1154. ([{
  1155. 'name': matrix_mautrix_facebook_database_name,
  1156. 'username': matrix_mautrix_facebook_database_username,
  1157. 'password': matrix_mautrix_facebook_database_password,
  1158. }] if (matrix_mautrix_facebook_enabled and matrix_mautrix_facebook_database_engine == 'postgres' and matrix_mautrix_facebook_database_hostname == 'matrix-postgres') else [])
  1159. +
  1160. ([{
  1161. 'name': matrix_mautrix_hangouts_database_name,
  1162. 'username': matrix_mautrix_hangouts_database_username,
  1163. 'password': matrix_mautrix_hangouts_database_password,
  1164. }] if (matrix_mautrix_hangouts_enabled and matrix_mautrix_hangouts_database_engine == 'postgres' and matrix_mautrix_hangouts_database_hostname == 'matrix-postgres') else [])
  1165. +
  1166. ([{
  1167. 'name': matrix_mautrix_googlechat_database_name,
  1168. 'username': matrix_mautrix_googlechat_database_username,
  1169. 'password': matrix_mautrix_googlechat_database_password,
  1170. }] if (matrix_mautrix_googlechat_enabled and matrix_mautrix_googlechat_database_engine == 'postgres' and matrix_mautrix_googlechat_database_hostname == 'matrix-postgres') else [])
  1171. +
  1172. ([{
  1173. 'name': matrix_mautrix_instagram_database_name,
  1174. 'username': matrix_mautrix_instagram_database_username,
  1175. 'password': matrix_mautrix_instagram_database_password,
  1176. }] if (matrix_mautrix_instagram_enabled and matrix_mautrix_instagram_database_engine == 'postgres' and matrix_mautrix_instagram_database_hostname == 'matrix-postgres') else [])
  1177. +
  1178. ([{
  1179. 'name': matrix_mautrix_signal_database_name,
  1180. 'username': matrix_mautrix_signal_database_username,
  1181. 'password': matrix_mautrix_signal_database_password,
  1182. }] if (matrix_mautrix_signal_enabled and matrix_mautrix_signal_database_engine == 'postgres' and matrix_mautrix_signal_database_hostname == 'matrix-postgres') else [])
  1183. +
  1184. ([{
  1185. 'name': matrix_mautrix_telegram_database_name,
  1186. 'username': matrix_mautrix_telegram_database_username,
  1187. 'password': matrix_mautrix_telegram_database_password,
  1188. }] if (matrix_mautrix_telegram_enabled and matrix_mautrix_telegram_database_engine == 'postgres' and matrix_mautrix_telegram_database_hostname == 'matrix-postgres') else [])
  1189. +
  1190. ([{
  1191. 'name': matrix_mautrix_whatsapp_database_name,
  1192. 'username': matrix_mautrix_whatsapp_database_username,
  1193. 'password': matrix_mautrix_whatsapp_database_password,
  1194. }] if (matrix_mautrix_whatsapp_enabled and matrix_mautrix_whatsapp_database_engine == 'postgres' and matrix_mautrix_whatsapp_database_hostname == 'matrix-postgres') else [])
  1195. +
  1196. ([{
  1197. 'name': matrix_mx_puppet_skype_database_name,
  1198. 'username': matrix_mx_puppet_skype_database_username,
  1199. 'password': matrix_mx_puppet_skype_database_password,
  1200. }] if (matrix_mx_puppet_skype_enabled and matrix_mx_puppet_skype_database_engine == 'postgres' and matrix_mx_puppet_skype_database_hostname == 'matrix-postgres') else [])
  1201. +
  1202. ([{
  1203. 'name': matrix_mx_puppet_slack_database_name,
  1204. 'username': matrix_mx_puppet_slack_database_username,
  1205. 'password': matrix_mx_puppet_slack_database_password,
  1206. }] if (matrix_mx_puppet_slack_enabled and matrix_mx_puppet_slack_database_engine == 'postgres' and matrix_mx_puppet_slack_database_hostname == 'matrix-postgres') else [])
  1207. +
  1208. ([{
  1209. 'name': matrix_mx_puppet_twitter_database_name,
  1210. 'username': matrix_mx_puppet_twitter_database_username,
  1211. 'password': matrix_mx_puppet_twitter_database_password,
  1212. }] if (matrix_mx_puppet_twitter_enabled and matrix_mx_puppet_twitter_database_engine == 'postgres' and matrix_mx_puppet_twitter_database_hostname == 'matrix-postgres') else [])
  1213. +
  1214. ([{
  1215. 'name': matrix_mx_puppet_instagram_database_name,
  1216. 'username': matrix_mx_puppet_instagram_database_username,
  1217. 'password': matrix_mx_puppet_instagram_database_password,
  1218. }] if (matrix_mx_puppet_instagram_enabled and matrix_mx_puppet_instagram_database_engine == 'postgres' and matrix_mx_puppet_instagram_database_hostname == 'matrix-postgres') else [])
  1219. +
  1220. ([{
  1221. 'name': matrix_mx_puppet_discord_database_name,
  1222. 'username': matrix_mx_puppet_discord_database_username,
  1223. 'password': matrix_mx_puppet_discord_database_password,
  1224. }] if (matrix_mx_puppet_discord_enabled and matrix_mx_puppet_discord_database_engine == 'postgres' and matrix_mx_puppet_discord_database_hostname == 'matrix-postgres') else [])
  1225. +
  1226. ([{
  1227. 'name': matrix_mx_puppet_steam_database_name,
  1228. 'username': matrix_mx_puppet_steam_database_username,
  1229. 'password': matrix_mx_puppet_steam_database_password,
  1230. }] if (matrix_mx_puppet_steam_enabled and matrix_mx_puppet_steam_database_engine == 'postgres' and matrix_mx_puppet_steam_database_hostname == 'matrix-postgres') else [])
  1231. +
  1232. ([{
  1233. 'name': matrix_mx_puppet_groupme_database_name,
  1234. 'username': matrix_mx_puppet_groupme_database_username,
  1235. 'password': matrix_mx_puppet_groupme_database_password,
  1236. }] if (matrix_mx_puppet_groupme_enabled and matrix_mx_puppet_groupme_database_engine == 'postgres' and matrix_mx_puppet_groupme_database_hostname == 'matrix-postgres') else [])
  1237. +
  1238. ([{
  1239. 'name': matrix_dimension_database_name,
  1240. 'username': matrix_dimension_database_username,
  1241. 'password': matrix_dimension_database_password,
  1242. }] if (matrix_dimension_enabled and matrix_dimension_database_engine == 'postgres' and matrix_dimension_database_hostname == 'matrix-postgres') else [])
  1243. +
  1244. ([{
  1245. 'name': matrix_etherpad_database_name,
  1246. 'username': matrix_etherpad_database_username,
  1247. 'password': matrix_etherpad_database_password,
  1248. }] if (matrix_etherpad_enabled and matrix_etherpad_database_engine == 'postgres' and matrix_etherpad_database_hostname == 'matrix-postgres') else [])
  1249. +
  1250. ([{
  1251. 'name': matrix_prometheus_postgres_exporter_database_name,
  1252. 'username': matrix_prometheus_postgres_exporter_database_username,
  1253. 'password': matrix_prometheus_postgres_exporter_database_password,
  1254. }] if (matrix_prometheus_postgres_exporter_enabled and matrix_prometheus_postgres_exporter_database_hostname == 'matrix-postgres') else [])
  1255. }}
  1256. matrix_postgres_import_roles_to_ignore: |
  1257. {{
  1258. [matrix_postgres_connection_username]
  1259. +
  1260. matrix_postgres_additional_databases|map(attribute='username')|list
  1261. }}
  1262. matrix_postgres_import_databases_to_ignore: |
  1263. {{
  1264. [matrix_postgres_db_name]
  1265. +
  1266. matrix_postgres_additional_databases|map(attribute='name')|list
  1267. }}
  1268. ######################################################################
  1269. #
  1270. # /matrix-postgres
  1271. #
  1272. ######################################################################
  1273. ######################################################################
  1274. #
  1275. # matrix-sygnal
  1276. #
  1277. ######################################################################
  1278. # Most people don't need their own push-server, because they also need their own app to utilize it from.
  1279. matrix_sygnal_enabled: false
  1280. # If someone instals Prometheus via the playbook, they most likely wish to monitor Sygnal.
  1281. matrix_sygnal_metrics_prometheus_enabled: "{{ matrix_prometheus_enabled }}"
  1282. matrix_sygnal_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:6000' }}"
  1283. ######################################################################
  1284. #
  1285. # /matrix-sygnal
  1286. #
  1287. ######################################################################
  1288. ######################################################################
  1289. #
  1290. # matrix-redis
  1291. #
  1292. ######################################################################
  1293. matrix_redis_enabled: "{{ matrix_synapse_workers_enabled }}"
  1294. ######################################################################
  1295. #
  1296. # /matrix-redis
  1297. #
  1298. ######################################################################
  1299. ######################################################################
  1300. #
  1301. # matrix-client-element
  1302. #
  1303. ######################################################################
  1304. # By default, this playbook installs the Element web UI on the `matrix_server_fqn_element` domain.
  1305. # If you wish to connect to your Matrix server by other means, you may wish to disable this.
  1306. matrix_client_element_enabled: true
  1307. matrix_client_element_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  1308. # Normally, matrix-nginx-proxy is enabled and nginx can reach Element over the container network.
  1309. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  1310. # the Element HTTP port to the local host.
  1311. matrix_client_element_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:8765' }}"
  1312. matrix_client_element_default_hs_url: "{{ matrix_homeserver_url }}"
  1313. matrix_client_element_default_is_url: "{{ matrix_identity_server_url }}"
  1314. # Use Dimension if enabled, otherwise fall back to Scalar
  1315. matrix_client_element_integrations_ui_url: "{{ matrix_dimension_integrations_ui_url if matrix_dimension_enabled else 'https://scalar.vector.im/' }}"
  1316. matrix_client_element_integrations_rest_url: "{{ matrix_dimension_integrations_rest_url if matrix_dimension_enabled else 'https://scalar.vector.im/api' }}"
  1317. matrix_client_element_integrations_widgets_urls: "{{ matrix_dimension_integrations_widgets_urls if matrix_dimension_enabled else ['https://scalar.vector.im/api'] }}"
  1318. 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' }}"
  1319. matrix_client_element_self_check_validate_certificates: "{{ false if matrix_ssl_retrieval_method == 'self-signed' else true }}"
  1320. matrix_client_element_registration_enabled: "{{ matrix_synapse_enable_registration }}"
  1321. matrix_client_element_enable_presence_by_hs_url: |
  1322. {{
  1323. none
  1324. if matrix_synapse_presence_enabled
  1325. else {matrix_client_element_default_hs_url: false}
  1326. }}
  1327. matrix_client_element_welcome_user_id: ~
  1328. matrix_client_element_jitsi_preferredDomain: "{{ matrix_server_fqn_jitsi if matrix_jitsi_enabled else '' }}"
  1329. ######################################################################
  1330. #
  1331. # /matrix-client-element
  1332. #
  1333. ######################################################################
  1334. ######################################################################
  1335. #
  1336. # matrix-client-hydrogen
  1337. #
  1338. ######################################################################
  1339. matrix_client_hydrogen_enabled: false
  1340. # Normally, matrix-nginx-proxy is enabled and nginx can reach Hydrogen over the container network.
  1341. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  1342. # the HTTP port to the local host.
  1343. matrix_client_hydrogen_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:8768' }}"
  1344. matrix_client_hydrogen_default_hs_url: "{{ matrix_homeserver_url }}"
  1345. matrix_client_hydrogen_self_check_validate_certificates: "{{ false if matrix_ssl_retrieval_method == 'self-signed' else true }}"
  1346. ######################################################################
  1347. #
  1348. # /matrix-client-hydrogen
  1349. #
  1350. ######################################################################
  1351. ######################################################################
  1352. #
  1353. # matrix-synapse
  1354. #
  1355. ######################################################################
  1356. matrix_synapse_container_image_self_build: "{{ matrix_architecture not in ['arm64', 'amd64'] }}"
  1357. # When ma1sd is enabled, we can use it to validate email addresses and phone numbers.
  1358. # 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.
  1359. matrix_synapse_account_threepid_delegates_email: "{{ 'http://matrix-ma1sd:8090' if matrix_ma1sd_enabled else '' }}"
  1360. matrix_synapse_account_threepid_delegates_msisdn: "{{ 'http://matrix-ma1sd:8090' if matrix_ma1sd_enabled else '' }}"
  1361. # Normally, matrix-nginx-proxy is enabled and nginx can reach Synapse over the container network.
  1362. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it,
  1363. # you can expose Synapse's ports to the host.
  1364. #
  1365. # For exposing the Matrix Client API's port (plain HTTP) to the local host.
  1366. matrix_synapse_container_client_api_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:8008' }}"
  1367. #
  1368. # For exposing the Matrix Federation API's plain port (plain HTTP) to the local host.
  1369. matrix_synapse_container_federation_api_plain_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:8048' }}"
  1370. #
  1371. # For exposing the Matrix Federation API's TLS port (HTTPS) to the internet on all network interfaces.
  1372. 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 '' }}"
  1373. #
  1374. # For exposing the Synapse Metrics API's port (plain HTTP) to the local host.
  1375. 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 '' }}"
  1376. #
  1377. # For exposing the Synapse Manhole port (plain HTTP) to the local host.
  1378. matrix_synapse_container_manhole_api_host_bind_port: "{{ '127.0.0.1:9000' if matrix_synapse_manhole_enabled else '' }}"
  1379. #
  1380. # For exposing the Synapse worker (and metrics) ports to the local host.
  1381. matrix_synapse_workers_container_host_bind_address: "{{ '127.0.0.1' if (matrix_synapse_workers_enabled and not matrix_nginx_proxy_enabled) else '' }}"
  1382. matrix_synapse_database_password: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'synapse.db') | to_uuid }}"
  1383. # We do not enable TLS in Synapse by default.
  1384. # TLS is handled by the matrix-nginx-proxy, which proxies the requests to Synapse.
  1385. matrix_synapse_tls_federation_listener_enabled: false
  1386. matrix_synapse_tls_certificate_path: ~
  1387. matrix_synapse_tls_private_key_path: ~
  1388. matrix_synapse_federation_port_openid_resource_required: "{{ not matrix_synapse_federation_enabled and (matrix_dimension_enabled or matrix_ma1sd_enabled) }}"
  1389. # If someone instals Prometheus via the playbook, they most likely wish to monitor Synapse.
  1390. matrix_synapse_metrics_enabled: "{{ matrix_prometheus_enabled }}"
  1391. matrix_synapse_email_enabled: "{{ matrix_mailer_enabled }}"
  1392. matrix_synapse_email_smtp_host: "matrix-mailer"
  1393. matrix_synapse_email_smtp_port: 8025
  1394. matrix_synapse_email_smtp_require_transport_security: false
  1395. matrix_synapse_email_notif_from: "Matrix <{{ matrix_mailer_sender_address }}>"
  1396. # Even if TURN doesn't support TLS (it does by default),
  1397. # it doesn't hurt to try a secure connection anyway.
  1398. #
  1399. # When Let's Encrypt certificates are used (the default case),
  1400. # we don't enable `turns` endpoints, because WebRTC in Element can't talk to them.
  1401. # Learn more here: https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/1145
  1402. matrix_synapse_turn_uris: |
  1403. {{
  1404. []
  1405. +
  1406. [
  1407. 'turns:' + matrix_server_fqn_matrix + '?transport=udp',
  1408. 'turns:' + matrix_server_fqn_matrix + '?transport=tcp',
  1409. ] if matrix_coturn_enabled and matrix_coturn_tls_enabled and matrix_ssl_retrieval_method != 'lets-encrypt' else []
  1410. +
  1411. [
  1412. 'turn:' + matrix_server_fqn_matrix + '?transport=udp',
  1413. 'turn:' + matrix_server_fqn_matrix + '?transport=tcp',
  1414. ] if matrix_coturn_enabled else []
  1415. }}
  1416. matrix_synapse_turn_shared_secret: "{{ matrix_coturn_turn_static_auth_secret if matrix_coturn_enabled else '' }}"
  1417. matrix_synapse_self_check_validate_certificates: "{{ false if matrix_ssl_retrieval_method == 'self-signed' else true }}"
  1418. matrix_synapse_systemd_required_services_list: |
  1419. {{
  1420. (['docker.service'])
  1421. +
  1422. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  1423. +
  1424. (['matrix-goofys'] if matrix_s3_media_store_enabled else [])
  1425. }}
  1426. matrix_synapse_systemd_wanted_services_list: |
  1427. {{
  1428. (['matrix-coturn.service'] if matrix_coturn_enabled else [])
  1429. +
  1430. (['matrix-mailer.service'] if matrix_mailer_enabled else [])
  1431. }}
  1432. # Synapse workers (used for parallel load-scaling) need Redis for IPC.
  1433. matrix_synapse_redis_enabled: "{{ matrix_redis_enabled }}"
  1434. matrix_synapse_redis_host: "{{ 'matrix-redis' if matrix_redis_enabled else '' }}"
  1435. matrix_synapse_redis_password: "{{ matrix_redis_connection_password if matrix_redis_enabled else '' }}"
  1436. ######################################################################
  1437. #
  1438. # /matrix-synapse
  1439. #
  1440. ######################################################################
  1441. ######################################################################
  1442. #
  1443. # matrix-synapse-admin
  1444. #
  1445. ######################################################################
  1446. matrix_synapse_admin_enabled: false
  1447. # Normally, matrix-nginx-proxy is enabled and nginx can reach Synapse Admin over the container network.
  1448. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  1449. # Synapse Admin's HTTP port to the local host.
  1450. matrix_synapse_admin_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:8766' }}"
  1451. matrix_synapse_admin_container_self_build: "{{ matrix_architecture != 'amd64' }}"
  1452. ######################################################################
  1453. #
  1454. # /matrix-synapse-admin
  1455. #
  1456. ######################################################################
  1457. ######################################################################
  1458. #
  1459. # matrix-prometheus-node-exporter
  1460. #
  1461. ######################################################################
  1462. matrix_prometheus_node_exporter_enabled: false
  1463. ######################################################################
  1464. #
  1465. # /matrix-prometheus-node-exporter
  1466. #
  1467. ######################################################################
  1468. ######################################################################
  1469. #
  1470. # matrix-prometheus
  1471. #
  1472. ######################################################################
  1473. matrix_prometheus_enabled: false
  1474. # Normally, matrix-nginx-proxy is enabled and nginx can reach Prometheus over the container network.
  1475. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  1476. # Prometheus' HTTP port to the local host.
  1477. matrix_prometheus_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:9090' }}"
  1478. matrix_prometheus_scraper_synapse_enabled: "{{ matrix_synapse_enabled and matrix_synapse_metrics_enabled }}"
  1479. matrix_prometheus_scraper_synapse_targets: ['matrix-synapse:{{ matrix_synapse_metrics_port }}']
  1480. matrix_prometheus_scraper_synapse_workers_enabled_list: "{{ matrix_synapse_workers_enabled_list }}"
  1481. matrix_prometheus_scraper_synapse_rules_synapse_tag: "{{ matrix_synapse_docker_image_tag }}"
  1482. matrix_prometheus_scraper_node_enabled: "{{ matrix_prometheus_node_exporter_enabled }}"
  1483. matrix_prometheus_scraper_node_targets: "{{ ['matrix-prometheus-node-exporter:9100'] if matrix_prometheus_node_exporter_enabled else [] }}"
  1484. matrix_prometheus_scraper_postgres_enabled: "{{ matrix_prometheus_postgres_exporter_enabled }}"
  1485. matrix_prometheus_scraper_postgres_targets: "{{ ['matrix-prometheus-postgres-exporter:'+ matrix_prometheus_postgres_exporter_port|string] if matrix_prometheus_scraper_postgres_enabled else [] }}"
  1486. ######################################################################
  1487. #
  1488. # /matrix-prometheus
  1489. #
  1490. ######################################################################
  1491. ######################################################################
  1492. #
  1493. # matrix-prometheus-postgres-exporter
  1494. #
  1495. ######################################################################
  1496. matrix_prometheus_postgres_exporter_enabled: false
  1497. matrix_prometheus_postgres_exporter_database_password: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'prometheus.pg.db') | to_uuid }}"
  1498. matrix_prometheus_postgres_exporter_systemd_required_services_list: |
  1499. {{
  1500. ['docker.service']
  1501. +
  1502. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  1503. }}
  1504. ######################################################################
  1505. #
  1506. # /matrix-prometheus-postgres-exporter
  1507. #
  1508. ######################################################################
  1509. ######################################################################
  1510. #
  1511. # matrix-grafana
  1512. #
  1513. ######################################################################
  1514. matrix_grafana_enabled: false
  1515. # Normally, matrix-nginx-proxy is enabled and nginx can reach Grafana over the container network.
  1516. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  1517. # Grafana's HTTP port to the local host.
  1518. matrix_grafana_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:3000' }}"
  1519. matrix_grafana_dashboard_download_urls_all: |
  1520. {{
  1521. matrix_grafana_dashboard_download_urls
  1522. +
  1523. (matrix_prometheus_postgres_exporter_dashboard_urls if matrix_prometheus_postgres_exporter_enabled else [])
  1524. }}
  1525. ######################################################################
  1526. #
  1527. # /matrix-grafana
  1528. #
  1529. ######################################################################
  1530. ######################################################################
  1531. #
  1532. # matrix-registration
  1533. #
  1534. ######################################################################
  1535. matrix_registration_enabled: false
  1536. # Normally, matrix-nginx-proxy is enabled and nginx can reach matrix-registration over the container network.
  1537. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  1538. # matrix-registration's HTTP port to the local host.
  1539. matrix_registration_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:8767' }}"
  1540. matrix_registration_riot_instance: "{{ ('https://' + matrix_server_fqn_element) if matrix_client_element_enabled else 'https://riot.im/app/' }}"
  1541. matrix_registration_shared_secret: "{{ matrix_synapse_registration_shared_secret if matrix_synapse_enabled else '' }}"
  1542. matrix_registration_server_location: "{{ matrix_homeserver_container_url }}"
  1543. matrix_registration_api_validate_certs: "{{ false if matrix_ssl_retrieval_method == 'self-signed' else true }}"
  1544. matrix_registration_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  1545. matrix_registration_systemd_required_services_list: |
  1546. {{
  1547. ['docker.service']
  1548. +
  1549. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  1550. }}
  1551. # Postgres is the default, except if not using `matrix_postgres` (internal postgres)
  1552. matrix_registration_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  1553. matrix_registration_database_password: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mx.registr.db') | to_uuid }}"
  1554. ######################################################################
  1555. #
  1556. # /matrix-registration
  1557. #
  1558. ######################################################################
  1559. ######################################################################
  1560. #
  1561. # matrix-postgres-backup
  1562. #
  1563. ######################################################################
  1564. matrix_postgres_backup_connection_hostname: "{{ matrix_postgres_connection_hostname }}"
  1565. matrix_postgres_backup_connection_port: "{{ matrix_postgres_connection_port }}"
  1566. matrix_postgres_backup_connection_username: "{{ matrix_postgres_connection_username }}"
  1567. matrix_postgres_backup_connection_password: "{{ matrix_postgres_connection_password }}"
  1568. matrix_postgres_backup_postgres_data_path: "{{ matrix_postgres_data_path if matrix_postgres_enabled else '' }}"
  1569. # 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
  1570. matrix_postgres_backup_databases: |
  1571. {{
  1572. (([{
  1573. 'name': matrix_synapse_database_database
  1574. }] if (matrix_synapse_enabled and matrix_synapse_database_database == matrix_postgres_db_name and matrix_synapse_database_host == 'matrix-postgres') else [])
  1575. +
  1576. matrix_postgres_additional_databases)|map(attribute='name')|list
  1577. }}
  1578. ######################################################################
  1579. #
  1580. # /matrix-postgres-backup
  1581. #
  1582. ######################################################################