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

1177 строки
47 KiB

  1. ---
  2. # This variables file wires together the various components (roles) used by the playbook.
  3. #
  4. # Roles used by playbook are pretty minimal and kept independent of one another as much as possible.
  5. # To deliver a turnkey fully-featured Matrix server, this playbook needs
  6. # to connect them all together. It does so by overriding role variables.
  7. #
  8. # You can also override ANY variable (seen here or in any given role),
  9. # by re-defining it in your own configuration file (`inventory/host_vars/matrix.<your-domain>`).
  10. ######################################################################
  11. #
  12. # matrix-base
  13. #
  14. ######################################################################
  15. matrix_identity_server_url: "{{ ('https://' + matrix_server_fqn_matrix) if matrix_ma1sd_enabled else None }}"
  16. ######################################################################
  17. #
  18. # /matrix-base
  19. #
  20. ######################################################################
  21. ######################################################################
  22. #
  23. # matrix-architecture
  24. #
  25. ######################################################################
  26. matrix_architecture: "amd64"
  27. ######################################################################
  28. #
  29. # /matrix-architecture
  30. #
  31. ######################################################################
  32. ######################################################################
  33. #
  34. # matrix-bridge-appservice-discord
  35. #
  36. ######################################################################
  37. # We don't enable bridges by default.
  38. matrix_appservice_discord_enabled: false
  39. # Normally, matrix-nginx-proxy is enabled and nginx can reach matrix-appservice-discord over the container network.
  40. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  41. # matrix-appservice-discord's client-server port to the local host.
  42. matrix_appservice_discord_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:9005' }}"
  43. # If the homeserver disables presence, it's likely better (less wasteful) to also disable presence on the bridge side.
  44. matrix_appservice_discord_bridge_disablePresence: "{{ matrix_synapse_use_presence }}"
  45. matrix_appservice_discord_systemd_required_services_list: |
  46. {{
  47. ['docker.service']
  48. +
  49. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  50. }}
  51. matrix_appservice_discord_appservice_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'discord.as.token') | to_uuid }}"
  52. matrix_appservice_discord_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'discord.hs.token') | to_uuid }}"
  53. # We only make this use Postgres if our own Postgres server is enabled.
  54. # It's only then (for now) that we can automatically create the necessary database and user for this service.
  55. matrix_appservice_discord_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
  56. matrix_appservice_discord_database_connString_password: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'as.discord.db') }}"
  57. ######################################################################
  58. #
  59. # /matrix-bridge-appservice-discord
  60. #
  61. ######################################################################
  62. ######################################################################
  63. #
  64. # matrix-appservice-webhooks
  65. #
  66. ######################################################################
  67. # We don't enable bridges by default.
  68. matrix_appservice_webhooks_enabled: false
  69. # Normally, matrix-nginx-proxy is enabled and nginx can reach matrix-appservice-webhooks over the container network.
  70. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  71. # matrix-appservice-webhooks' client-server port to the local host.
  72. matrix_appservice_webhooks_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else ('127.0.0.1:' ~ matrix_appservice_webhooks_matrix_port) }}"
  73. matrix_appservice_webhooks_appservice_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'webhook.as.token') | to_uuid }}"
  74. matrix_appservice_webhooks_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'webhook.hs.token') | to_uuid }}"
  75. matrix_appservice_webhooks_id_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'webhook.id.token') | to_uuid }}"
  76. matrix_appservice_webhooks_systemd_required_services_list: |
  77. {{
  78. ['docker.service']
  79. +
  80. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  81. }}
  82. ######################################################################
  83. #
  84. # /matrix-appservice-webhooks
  85. #
  86. ######################################################################
  87. ######################################################################
  88. #
  89. # matrix-appservice-slack
  90. #
  91. ######################################################################
  92. # We don't enable bridges by default.
  93. matrix_appservice_slack_enabled: false
  94. # Normally, matrix-nginx-proxy is enabled and nginx can reach matrix-appservice-slack over the container network.
  95. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  96. # matrix-appservice-slack's client-server port to the local host.
  97. matrix_appservice_slack_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else ('127.0.0.1:' ~ matrix_appservice_slack_slack_port) }}"
  98. matrix_appservice_slack_appservice_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'slack.as.token') | to_uuid }}"
  99. matrix_appservice_slack_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'slack.hs.token') | to_uuid }}"
  100. matrix_appservice_slack_id_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'slack.id.token') | to_uuid }}"
  101. matrix_appservice_slack_systemd_required_services_list: |
  102. {{
  103. ['docker.service']
  104. +
  105. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  106. }}
  107. ######################################################################
  108. #
  109. # /matrix-bridge-appservice-slack
  110. #
  111. ######################################################################
  112. ######################################################################
  113. #
  114. # matrix-bridge-appservice-irc
  115. #
  116. ######################################################################
  117. # We don't enable bridges by default.
  118. matrix_appservice_irc_enabled: false
  119. # Normally, matrix-nginx-proxy is enabled and nginx can reach matrix-appservice-irc over the container network.
  120. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  121. # matrix-appservice-irc's client-server port to the local host.
  122. matrix_appservice_irc_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:9999' }}"
  123. # The IRC bridge docs say that if homeserver presence is disabled, it's better to also disable
  124. # IRC bridge presence, for performance reasons.
  125. matrix_appservice_irc_homeserver_enablePresence: "{{ matrix_synapse_use_presence }}"
  126. matrix_appservice_irc_systemd_required_services_list: |
  127. {{
  128. ['docker.service']
  129. +
  130. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  131. }}
  132. matrix_appservice_irc_appservice_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'irc.as.token') | to_uuid }}"
  133. matrix_appservice_irc_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'irc.hs.token') | to_uuid }}"
  134. ######################################################################
  135. #
  136. # /matrix-bridge-appservice-irc
  137. #
  138. ######################################################################
  139. ######################################################################
  140. #
  141. # matrix-bridge-mautrix-facebook
  142. #
  143. ######################################################################
  144. # We don't enable bridges by default.
  145. matrix_mautrix_facebook_enabled: false
  146. matrix_mautrix_facebook_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm64'] }}"
  147. matrix_mautrix_facebook_systemd_required_services_list: |
  148. {{
  149. ['docker.service']
  150. +
  151. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  152. }}
  153. matrix_mautrix_facebook_appservice_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'fb.as.token') | to_uuid }}"
  154. matrix_mautrix_facebook_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'fb.hs.token') | to_uuid }}"
  155. 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 '' }}"
  156. matrix_mautrix_facebook_bridge_presence: "{{ matrix_synapse_use_presence if matrix_synapse_enabled else true }}"
  157. ######################################################################
  158. #
  159. # /matrix-bridge-mautrix-facebook
  160. #
  161. ######################################################################
  162. ######################################################################
  163. #
  164. # matrix-bridge-mautrix-hangouts
  165. #
  166. ######################################################################
  167. # We don't enable bridges by default.
  168. matrix_mautrix_hangouts_enabled: false
  169. matrix_mautrix_hangouts_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm64'] }}"
  170. matrix_mautrix_hangouts_systemd_required_services_list: |
  171. {{
  172. ['docker.service']
  173. +
  174. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  175. }}
  176. matrix_mautrix_hangouts_appservice_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'ho.as.token') | to_uuid }}"
  177. matrix_mautrix_hangouts_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'ho.hs.token') | to_uuid }}"
  178. matrix_mautrix_hangouts_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:9007' }}"
  179. 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 '' }}"
  180. ######################################################################
  181. #
  182. # /matrix-bridge-mautrix-hangouts
  183. #
  184. ######################################################################
  185. ######################################################################
  186. #
  187. # matrix-bridge-mautrix-telegram
  188. #
  189. ######################################################################
  190. # We don't enable bridges by default.
  191. matrix_mautrix_telegram_enabled: false
  192. matrix_mautrix_telegram_systemd_required_services_list: |
  193. {{
  194. ['docker.service']
  195. +
  196. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  197. }}
  198. matrix_mautrix_telegram_appservice_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'telegr.as.token') | to_uuid }}"
  199. matrix_mautrix_telegram_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'telegr.hs.token') | to_uuid }}"
  200. matrix_mautrix_telegram_public_endpoint: "/{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'telegram') | to_uuid }}"
  201. matrix_mautrix_telegram_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:9006' }}"
  202. 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 '' }}"
  203. ######################################################################
  204. #
  205. # /matrix-bridge-mautrix-telegram
  206. #
  207. ######################################################################
  208. ######################################################################
  209. #
  210. # matrix-bridge-mautrix-whatsapp
  211. #
  212. ######################################################################
  213. # We don't enable bridges by default.
  214. matrix_mautrix_whatsapp_enabled: false
  215. matrix_mautrix_whatsapp_systemd_required_services_list: |
  216. {{
  217. ['docker.service']
  218. +
  219. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  220. }}
  221. matrix_mautrix_whatsapp_appservice_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'whats.as.token') | to_uuid }}"
  222. matrix_mautrix_whatsapp_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'whats.hs.token') | to_uuid }}"
  223. 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 '' }}"
  224. ######################################################################
  225. #
  226. # /matrix-bridge-mautrix-whatsapp
  227. #
  228. ######################################################################
  229. ######################################################################
  230. #
  231. # matrix-sms-bridge
  232. #
  233. ######################################################################
  234. # We don't enable bridges by default.
  235. matrix_sms_bridge_enabled: false
  236. matrix_sms_bridge_systemd_required_services_list: |
  237. {{
  238. ['docker.service']
  239. +
  240. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  241. }}
  242. matrix_sms_bridge_appservice_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'sms.as.token') | to_uuid }}"
  243. matrix_sms_bridge_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'sms.hs.token') | to_uuid }}"
  244. ######################################################################
  245. #
  246. # /matrix-sms-bridge
  247. #
  248. ######################################################################
  249. ######################################################################
  250. #
  251. # matrix-bridge-mx-puppet-skype
  252. #
  253. ######################################################################
  254. # We don't enable bridges by default.
  255. matrix_mx_puppet_skype_enabled: false
  256. matrix_mx_puppet_skype_container_image_self_build: "{{ matrix_architecture != 'amd64'}}"
  257. matrix_mx_puppet_skype_systemd_required_services_list: |
  258. {{
  259. ['docker.service']
  260. +
  261. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  262. }}
  263. matrix_mx_puppet_skype_appservice_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'skype.as.tok') | to_uuid }}"
  264. matrix_mx_puppet_skype_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'skype.hs.tok') | to_uuid }}"
  265. 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 '' }}"
  266. ######################################################################
  267. #
  268. # /matrix-bridge-mx-puppet-skype
  269. #
  270. ######################################################################
  271. ######################################################################
  272. #
  273. # matrix-bridge-mx-puppet-slack
  274. #
  275. ######################################################################
  276. # We don't enable bridges by default.
  277. matrix_mx_puppet_slack_enabled: false
  278. matrix_mx_puppet_slack_container_image_self_build: "{{ matrix_architecture != 'amd64'}}"
  279. matrix_mx_puppet_slack_systemd_required_services_list: |
  280. {{
  281. ['docker.service']
  282. +
  283. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  284. }}
  285. matrix_mx_puppet_slack_appservice_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mxslk.as.tok') | to_uuid }}"
  286. matrix_mx_puppet_slack_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mxslk.hs.tok') | to_uuid }}"
  287. 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 '' }}"
  288. ######################################################################
  289. #
  290. # /matrix-bridge-mx-puppet-slack
  291. #
  292. ######################################################################
  293. ######################################################################
  294. #
  295. # matrix-bridge-mx-puppet-twitter
  296. #
  297. ######################################################################
  298. # We don't enable bridges by default.
  299. matrix_mx_puppet_twitter_enabled: false
  300. matrix_mx_puppet_twitter_container_image_self_build: "{{ matrix_architecture != 'amd64'}}"
  301. matrix_mx_puppet_twitter_systemd_required_services_list: |
  302. {{
  303. ['docker.service']
  304. +
  305. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  306. }}
  307. matrix_mx_puppet_twitter_appservice_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mxtwt.as.tok') | to_uuid }}"
  308. matrix_mx_puppet_twitter_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mxtwt.hs.tok') | to_uuid }}"
  309. 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 '' }}"
  310. 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) }}"
  311. ######################################################################
  312. #
  313. # /matrix-bridge-mx-puppet-twitter
  314. #
  315. ######################################################################
  316. ######################################################################
  317. #
  318. # matrix-bridge-mx-puppet-instagram
  319. #
  320. ######################################################################
  321. # We don't enable bridges by default.
  322. matrix_mx_puppet_instagram_enabled: false
  323. matrix_mx_puppet_instagram_container_image_self_build: "{{ matrix_architecture != 'amd64'}}"
  324. matrix_mx_puppet_instagram_systemd_required_services_list: |
  325. {{
  326. ['docker.service']
  327. +
  328. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  329. }}
  330. matrix_mx_puppet_instagram_appservice_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mxig.as.tok') | to_uuid }}"
  331. matrix_mx_puppet_instagram_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mxig.hs.tok') | to_uuid }}"
  332. 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 '' }}"
  333. ######################################################################
  334. #
  335. # /matrix-bridge-mx-puppet-instagram
  336. #
  337. ######################################################################
  338. ######################################################################
  339. #
  340. # matrix-bridge-mx-puppet-discord
  341. #
  342. ######################################################################
  343. # We don't enable bridges by default.
  344. matrix_mx_puppet_discord_enabled: false
  345. matrix_mx_puppet_discord_container_image_self_build: "{{ matrix_architecture != 'amd64'}}"
  346. matrix_mx_puppet_discord_systemd_required_services_list: |
  347. {{
  348. ['docker.service']
  349. +
  350. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  351. }}
  352. matrix_mx_puppet_discord_appservice_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mxdsc.as.tok') | to_uuid }}"
  353. matrix_mx_puppet_discord_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mxdsc.hs.tok') | to_uuid }}"
  354. 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 '' }}"
  355. ######################################################################
  356. #
  357. # /matrix-bridge-mx-puppet-discord
  358. #
  359. ######################################################################
  360. ######################################################################
  361. #
  362. # matrix-bridge-mx-puppet-steam
  363. #
  364. ######################################################################
  365. # We don't enable bridges by default.
  366. matrix_mx_puppet_steam_enabled: false
  367. matrix_mx_puppet_steam_container_image_self_build: "{{ matrix_architecture != 'amd64'}}"
  368. matrix_mx_puppet_steam_systemd_required_services_list: |
  369. {{
  370. ['docker.service']
  371. +
  372. (['matrix-synapse.service'] if matrix_synapse_enabled else [])
  373. }}
  374. matrix_mx_puppet_steam_appservice_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mxste.as.tok') | to_uuid }}"
  375. matrix_mx_puppet_steam_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mxste.hs.tok') | to_uuid }}"
  376. 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 '' }}"
  377. ######################################################################
  378. #
  379. # /matrix-bridge-mx-puppet-steam
  380. #
  381. ######################################################################
  382. ######################################################################
  383. #
  384. # matrix-bot-matrix-reminder-bot
  385. #
  386. ######################################################################
  387. # We don't enable bots by default.
  388. matrix_bot_matrix_reminder_bot_enabled: false
  389. ######################################################################
  390. #
  391. # /matrix-bot-matrix-reminder-bot
  392. #
  393. ######################################################################
  394. ######################################################################
  395. #
  396. # matrix-corporal
  397. #
  398. ######################################################################
  399. matrix_corporal_enabled: false
  400. matrix_corporal_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  401. # Normally, matrix-nginx-proxy is enabled and nginx can reach matrix-corporal over the container network.
  402. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  403. # matrix-corporal's web-server ports to the local host.
  404. matrix_corporal_container_http_gateway_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:41080' }}"
  405. matrix_corporal_container_http_api_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:41081' }}"
  406. matrix_corporal_systemd_required_services_list: |
  407. {{
  408. (['docker.service'])
  409. +
  410. (['matrix-synapse.service'])
  411. }}
  412. matrix_corporal_matrix_homeserver_api_endpoint: "http://matrix-synapse:8008"
  413. matrix_corporal_matrix_auth_shared_secret: "{{ matrix_synapse_ext_password_provider_shared_secret_auth_shared_secret }}"
  414. matrix_corporal_matrix_registration_shared_secret: "{{ matrix_synapse_registration_shared_secret }}"
  415. ######################################################################
  416. #
  417. # /matrix-corporal
  418. #
  419. ######################################################################
  420. ######################################################################
  421. #
  422. # matrix-coturn
  423. #
  424. ######################################################################
  425. matrix_coturn_enabled: true
  426. matrix_coturn_container_image_self_build: "{{ matrix_architecture != 'amd64'}}"
  427. matrix_coturn_turn_external_ip_address: "{{ ansible_host }}"
  428. matrix_coturn_tls_enabled: "{{ matrix_ssl_retrieval_method != 'none' }}"
  429. matrix_coturn_tls_cert_path: "{{ matrix_ssl_config_dir_path }}/live/{{ matrix_server_fqn_matrix }}/fullchain.pem"
  430. matrix_coturn_tls_key_path: "{{ matrix_ssl_config_dir_path }}/live/{{ matrix_server_fqn_matrix }}/privkey.pem"
  431. matrix_coturn_container_additional_volumes: |
  432. {{
  433. ([] if matrix_ssl_retrieval_method == 'none' else [
  434. {
  435. 'src': matrix_ssl_config_dir_path,
  436. 'dst': matrix_ssl_config_dir_path,
  437. 'options': 'ro',
  438. }
  439. ])
  440. }}
  441. ######################################################################
  442. #
  443. # /matrix-coturn
  444. #
  445. ######################################################################
  446. ######################################################################
  447. #
  448. # matrix-dimension
  449. #
  450. ######################################################################
  451. matrix_dimension_enabled: false
  452. # Normally, matrix-nginx-proxy is enabled and nginx can reach Dimension over the container network.
  453. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  454. # the Dimension HTTP port to the local host.
  455. matrix_dimension_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:8184' }}"
  456. matrix_integration_manager_rest_url: "{{ matrix_dimension_integrations_rest_url if matrix_dimension_enabled else None }}"
  457. matrix_integration_manager_ui_url: "{{ matrix_dimension_integrations_ui_url if matrix_dimension_enabled else None }}"
  458. ######################################################################
  459. #
  460. # /matrix-dimension
  461. #
  462. ######################################################################
  463. ######################################################################
  464. #
  465. # matrix-dynamic-dns
  466. #
  467. ######################################################################
  468. matrix_dynamic_dns_enabled: false
  469. ######################################################################
  470. #
  471. # /matrix-dynamic-dns
  472. #
  473. ######################################################################
  474. ######################################################################
  475. #
  476. # matrix-email2matrix
  477. #
  478. ######################################################################
  479. matrix_email2matrix_enabled: false
  480. ######################################################################
  481. #
  482. # /matrix-email2matrix
  483. #
  484. ######################################################################
  485. ######################################################################
  486. #
  487. # matrix-jitsi
  488. #
  489. ######################################################################
  490. matrix_jitsi_enabled: false
  491. # Normally, matrix-nginx-proxy is enabled and nginx can reach jitsi/web over the container network.
  492. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  493. # the Jitsi HTTP port to the local host.
  494. matrix_jitsi_web_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:12080' }}"
  495. matrix_jitsi_jvb_container_colibri_ws_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:12090' }}"
  496. matrix_jitsi_jibri_xmpp_password: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'jibri') | to_uuid }}"
  497. matrix_jitsi_jicofo_auth_password: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'jicofo') | to_uuid }}"
  498. matrix_jitsi_jvb_auth_password: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'jvb') | to_uuid }}"
  499. matrix_jitsi_web_stun_servers: |
  500. {{
  501. [
  502. 'stun:' + matrix_server_fqn_matrix + ':5349',
  503. 'stun:' + matrix_server_fqn_matrix + ':3478',
  504. ]
  505. if matrix_coturn_enabled
  506. else [ 'stun:meet-jit-si-turnrelay.jitsi.net:443']
  507. }}
  508. ######################################################################
  509. #
  510. # /matrix-jitsi
  511. #
  512. ######################################################################
  513. ######################################################################
  514. #
  515. # matrix-mailer
  516. #
  517. ######################################################################
  518. # By default, this playbook sets up an exim mailer server (running in a container).
  519. # This is so that Synapse can send email reminders for unread messages.
  520. # Other services (like ma1sd), also use the mailer.
  521. matrix_mailer_enabled: true
  522. matrix_mailer_container_image_self_build: "{{ matrix_architecture != 'amd64'}}"
  523. ######################################################################
  524. #
  525. # /matrix-mailer
  526. #
  527. ######################################################################
  528. ######################################################################
  529. #
  530. # matrix-ma1sd
  531. #
  532. ######################################################################
  533. # By default, this playbook installs the ma1sd identity server on the same domain as Synapse (`matrix_server_fqn_matrix`).
  534. # If you wish to use the public identity servers (matrix.org, vector.im) instead of your own you may wish to disable this.
  535. matrix_ma1sd_enabled: true
  536. # There's no prebuilt ma1sd image for the `arm32` architecture.
  537. # We're relying on self-building there.
  538. matrix_ma1sd_architecture: "{{
  539. {
  540. 'amd64': 'amd64',
  541. 'arm32': 'arm32',
  542. 'arm64': 'arm64',
  543. }[matrix_architecture]
  544. }}"
  545. matrix_ma1sd_container_image_self_build: "{{ matrix_architecture not in ['arm64', 'amd64'] }}"
  546. # Normally, matrix-nginx-proxy is enabled and nginx can reach ma1sd over the container network.
  547. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  548. # ma1sd's web-server port.
  549. matrix_ma1sd_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:8090' }}"
  550. # We enable Synapse integration via its Postgres database by default.
  551. # When using another Identity store, you might wish to disable this and define
  552. # your own configuration in `matrix_ma1sd_configuration_extension_yaml`.
  553. matrix_ma1sd_synapsesql_enabled: true
  554. matrix_ma1sd_synapsesql_type: postgresql
  555. matrix_ma1sd_synapsesql_connection: //{{ matrix_synapse_database_host }}/{{ matrix_synapse_database_database }}?user={{ matrix_synapse_database_user | urlencode() }}&password={{ matrix_synapse_database_password | urlencode() }}
  556. matrix_ma1sd_dns_overwrite_enabled: true
  557. matrix_ma1sd_dns_overwrite_homeserver_client_name: "{{ matrix_server_fqn_matrix }}"
  558. matrix_ma1sd_dns_overwrite_homeserver_client_value: "http://{{ 'matrix-corporal:41080' if matrix_corporal_enabled else 'matrix-synapse:8008' }}"
  559. # By default, we send mail through the `matrix-mailer` service.
  560. matrix_ma1sd_threepid_medium_email_identity_from: "{{ matrix_mailer_sender_address }}"
  561. matrix_ma1sd_threepid_medium_email_connectors_smtp_host: "matrix-mailer"
  562. matrix_ma1sd_threepid_medium_email_connectors_smtp_port: 8025
  563. matrix_ma1sd_threepid_medium_email_connectors_smtp_tls: 0
  564. matrix_ma1sd_self_check_validate_certificates: "{{ false if matrix_ssl_retrieval_method == 'self-signed' else true }}"
  565. matrix_ma1sd_systemd_wanted_services_list: |
  566. {{
  567. (['matrix-corporal.service'] if matrix_corporal_enabled else ['matrix-synapse.service'])
  568. +
  569. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  570. +
  571. (['matrix-mailer.service'] if matrix_mailer_enabled else [])
  572. }}
  573. ######################################################################
  574. #
  575. # /matrix-ma1sd
  576. #
  577. ######################################################################
  578. ######################################################################
  579. #
  580. # matrix-nginx-proxy
  581. #
  582. ######################################################################
  583. # By default, this playbook sets up a reverse-proxy nginx proxy server on TCP ports 80, 443 and 8448.
  584. # This is fine if you're dedicating the whole server to Matrix.
  585. # If that's not the case, you may wish to disable this and take care of proxying yourself.
  586. matrix_nginx_proxy_enabled: true
  587. matrix_nginx_proxy_proxy_matrix_client_api_addr_with_container: "{{ 'matrix-corporal:41080' if matrix_corporal_enabled else 'matrix-synapse:8008' }}"
  588. matrix_nginx_proxy_proxy_matrix_client_api_addr_sans_container: "{{ '127.0.0.1:41080' if matrix_corporal_enabled else '127.0.0.1:8008' }}"
  589. matrix_nginx_proxy_proxy_matrix_client_api_client_max_body_size_mb: "{{ matrix_synapse_max_upload_size_mb }}"
  590. matrix_nginx_proxy_proxy_matrix_client_api_forwarded_location_synapse_admin_api_enabled: "{{ matrix_synapse_admin_enabled }}"
  591. matrix_nginx_proxy_proxy_matrix_client_redirect_root_uri_to_domain: "{{ matrix_server_fqn_element if matrix_client_element_enabled else '' }}"
  592. matrix_nginx_proxy_proxy_matrix_enabled: true
  593. matrix_nginx_proxy_proxy_element_enabled: "{{ matrix_client_element_enabled }}"
  594. matrix_nginx_proxy_proxy_dimension_enabled: "{{ matrix_dimension_enabled }}"
  595. matrix_nginx_proxy_proxy_jitsi_enabled: "{{ matrix_jitsi_enabled }}"
  596. matrix_nginx_proxy_proxy_matrix_corporal_api_enabled: "{{ matrix_corporal_enabled and matrix_corporal_http_api_enabled }}"
  597. matrix_nginx_proxy_proxy_matrix_corporal_api_addr_with_container: "matrix-corporal:41081"
  598. matrix_nginx_proxy_proxy_matrix_corporal_api_addr_sans_container: "127.0.0.1:41081"
  599. matrix_nginx_proxy_proxy_matrix_identity_api_enabled: "{{ matrix_ma1sd_enabled }}"
  600. matrix_nginx_proxy_proxy_matrix_identity_api_addr_with_container: "matrix-ma1sd:8090"
  601. matrix_nginx_proxy_proxy_matrix_identity_api_addr_sans_container: "127.0.0.1:8090"
  602. # By default, we do TLS termination for the Matrix Federation API (port 8448) at matrix-nginx-proxy.
  603. # Unless this is handled there OR Synapse's federation listener port is disabled, we'll reverse-proxy.
  604. matrix_nginx_proxy_proxy_matrix_federation_api_enabled: "{{ matrix_synapse_federation_port_enabled and not matrix_synapse_tls_federation_listener_enabled }}"
  605. matrix_nginx_proxy_proxy_matrix_federation_api_addr_with_container: "matrix-synapse:8048"
  606. matrix_nginx_proxy_proxy_matrix_federation_api_addr_sans_container: "127.0.0.1:8048"
  607. matrix_nginx_proxy_container_federation_host_bind_port: "{{ matrix_federation_public_port }}"
  608. matrix_nginx_proxy_proxy_synapse_metrics: "{{ matrix_synapse_metrics_enabled }}"
  609. matrix_nginx_proxy_proxy_synapse_metrics_addr_with_container: "matrix-synapse:{{ matrix_synapse_metrics_port }}"
  610. matrix_nginx_proxy_proxy_synapse_metrics_addr_sans_container: "127.0.0.1:{{ matrix_synapse_metrics_port }}"
  611. matrix_nginx_proxy_proxy_matrix_user_directory_search_enabled: "{{ matrix_ma1sd_enabled }}"
  612. matrix_nginx_proxy_proxy_matrix_user_directory_search_addr_with_container: "{{ matrix_nginx_proxy_proxy_matrix_identity_api_addr_with_container }}"
  613. matrix_nginx_proxy_proxy_matrix_user_directory_search_addr_sans_container: "{{ matrix_nginx_proxy_proxy_matrix_identity_api_addr_sans_container }}"
  614. matrix_nginx_proxy_self_check_validate_certificates: "{{ false if matrix_ssl_retrieval_method == 'self-signed' else true }}"
  615. matrix_nginx_proxy_systemd_wanted_services_list: |
  616. {{
  617. (['matrix-synapse.service'])
  618. +
  619. (['matrix-corporal.service'] if matrix_corporal_enabled else [])
  620. +
  621. (['matrix-ma1sd.service'] if matrix_ma1sd_enabled else [])
  622. +
  623. (['matrix-client-element.service'] if matrix_client_element_enabled else [])
  624. }}
  625. matrix_ssl_domains_to_obtain_certificates_for: |
  626. {{
  627. ([matrix_server_fqn_matrix])
  628. +
  629. ([matrix_server_fqn_element] if matrix_client_element_enabled else [])
  630. +
  631. ([matrix_nginx_proxy_proxy_riot_compat_redirect_hostname] if matrix_nginx_proxy_proxy_riot_compat_redirect_enabled else [])
  632. +
  633. ([matrix_server_fqn_dimension] if matrix_dimension_enabled else [])
  634. +
  635. ([matrix_server_fqn_jitsi] if matrix_jitsi_enabled else [])
  636. +
  637. ([matrix_domain] if matrix_nginx_proxy_base_domain_serving_enabled else [])
  638. }}
  639. matrix_ssl_architecture: "{{
  640. {
  641. 'amd64': 'amd64',
  642. 'arm32': 'arm32v6',
  643. 'arm64': 'arm64v8',
  644. }[matrix_architecture]
  645. }}"
  646. matrix_ssl_pre_obtaining_required_service_name: "{{ 'matrix-dynamic-dns' if matrix_dynamic_dns_enabled else '' }}"
  647. ######################################################################
  648. #
  649. # /matrix-nginx-proxy
  650. #
  651. ######################################################################
  652. ######################################################################
  653. #
  654. # matrix-postgres
  655. #
  656. ######################################################################
  657. matrix_postgres_enabled: true
  658. matrix_postgres_connection_hostname: "matrix-postgres"
  659. matrix_postgres_connection_username: "synapse"
  660. # Please note that the max length of the password is 99 characters
  661. matrix_postgres_connection_password: "synapse-password"
  662. matrix_postgres_db_name: "homeserver"
  663. matrix_postgres_additional_databases: |
  664. {{
  665. ([{
  666. 'name': matrix_appservice_discord_database_connString_db_name,
  667. 'username': matrix_appservice_discord_database_connString_username,
  668. 'password': matrix_appservice_discord_database_connString_password,
  669. }] if (matrix_appservice_discord_enabled and matrix_appservice_discord_database_engine == 'postgres' and matrix_appservice_discord_database_connString_hostname == 'matrix-postgres') else [])
  670. + ([{
  671. 'name': 'matrix_appservice_slack',
  672. 'username': 'matrix_appservice_slack',
  673. 'password': matrix_synapse_macaroon_secret_key | password_hash('sha512', 'app_slack.db.secret') | string,
  674. }] if matrix_appservice_slack_enabled else [])
  675. + ([{
  676. 'name': 'matrix_appservice_irc',
  677. 'username': 'matrix_appservice_irc',
  678. 'password': matrix_synapse_macaroon_secret_key | password_hash('sha512', 'app_irc.db.secret') | string,
  679. }] if matrix_appservice_irc_enabled else [])
  680. + ([{
  681. 'name': 'mautrix_bridge_facebook',
  682. 'username': 'mautrix_bridge_facebook',
  683. 'password': matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mautrix_facebook.db.secret') | string,
  684. }] if matrix_mautrix_facebook_enabled else [])
  685. + ([{
  686. 'name': 'mautrix_bridge_hangouts',
  687. 'username': 'mautrix_bridge_hangouts',
  688. 'password': matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mautrix_hangouts.db.secret') | string,
  689. }] if matrix_mautrix_hangouts_enabled else [])
  690. + ([{
  691. 'name': 'mautrix_bridge_telegram',
  692. 'username': 'mautrix_bridge_telegram',
  693. 'password': matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mautrix_telegram.db.secret') | string,
  694. }] if matrix_mautrix_telegram_enabled else [])
  695. + ([{
  696. 'name': 'mautrix_bridge_whatsapp',
  697. 'username': 'mautrix_bridge_whatsapp',
  698. 'password': matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mautrix_whatsapp.db.secret') | string,
  699. }] if matrix_mautrix_whatsapp_enabled else [])
  700. + ([{
  701. 'name': 'matrix_bridge_sms',
  702. 'username': 'matrix_bridge_sms',
  703. 'password': matrix_synapse_macaroon_secret_key | password_hash('sha512', 'bridge_sms.db.secret') | string,
  704. }] if matrix_sms_bridge_enabled else [])
  705. + ([{
  706. 'name': 'matrix_puppet_skype',
  707. 'username': 'matrix_puppet_skype',
  708. 'password': matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mx_skype.db.secret') | string,
  709. }] if matrix_mx_puppet_skype_enabled else [])
  710. + ([{
  711. 'name': 'matrix_puppet_slack',
  712. 'username': 'matrix_puppet_slack',
  713. 'password': matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mx_slack.db.secret') | string,
  714. }] if matrix_mx_puppet_slack_enabled else [])
  715. + ([{
  716. 'name': 'matrix_puppet_twitter',
  717. 'username': 'matrix_puppet_twitter',
  718. 'password': matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mx_twitter.db.secret') | string,
  719. }] if matrix_mx_puppet_twitter_enabled else [])
  720. + ([{
  721. 'name': 'matrix_puppet_instagram',
  722. 'username': 'matrix_puppet_instagram',
  723. 'password': matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mx_insta.db.secret') | string,
  724. }] if matrix_mx_puppet_instagram_enabled else [])
  725. + ([{
  726. 'name': 'matrix_puppet_discord',
  727. 'username': 'matrix_puppet_discord',
  728. 'password': matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mx_puppet.db.secret') | string,
  729. }] if matrix_mx_puppet_discord_enabled else [])
  730. + ([{
  731. 'name': 'matrix_puppet_steam',
  732. 'username': 'matrix_puppet_steam',
  733. 'password': matrix_synapse_macaroon_secret_key | password_hash('sha512', 'mx_steam.db.secret') | string,
  734. }] if matrix_mx_puppet_steam_enabled else [])
  735. + ([{
  736. 'name': 'matrix_dimension',
  737. 'username': 'matrix_dimension',
  738. 'password': matrix_synapse_macaroon_secret_key | password_hash('sha512', 'dimension.db.secret') | string,
  739. }] if matrix_dimension_enabled else [])
  740. }}
  741. ######################################################################
  742. #
  743. # /matrix-postgres
  744. #
  745. ######################################################################
  746. ######################################################################
  747. #
  748. # matrix-client-element
  749. #
  750. ######################################################################
  751. # By default, this playbook installs the Element web UI on the `matrix_server_fqn_element` domain.
  752. # If you wish to connect to your Matrix server by other means, you may wish to disable this.
  753. matrix_client_element_enabled: true
  754. matrix_client_element_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  755. # Normally, matrix-nginx-proxy is enabled and nginx can reach Element over the container network.
  756. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  757. # the Element HTTP port to the local host.
  758. matrix_client_element_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:8765' }}"
  759. matrix_client_element_default_hs_url: "{{ matrix_homeserver_url }}"
  760. matrix_client_element_default_is_url: "{{ matrix_identity_server_url }}"
  761. # Use Dimension if enabled, otherwise fall back to Scalar
  762. matrix_client_element_integrations_ui_url: "{{ matrix_dimension_integrations_ui_url if matrix_dimension_enabled else 'https://scalar.vector.im/' }}"
  763. matrix_client_element_integrations_rest_url: "{{ matrix_dimension_integrations_rest_url if matrix_dimension_enabled else 'https://scalar.vector.im/api' }}"
  764. matrix_client_element_integrations_widgets_urls: "{{ matrix_dimension_integrations_widgets_urls if matrix_dimension_enabled else ['https://scalar.vector.im/api'] }}"
  765. 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' }}"
  766. matrix_client_element_self_check_validate_certificates: "{{ false if matrix_ssl_retrieval_method == 'self-signed' else true }}"
  767. matrix_client_element_registration_enabled: "{{ matrix_synapse_enable_registration }}"
  768. matrix_client_element_enable_presence_by_hs_url: |
  769. {{
  770. none
  771. if matrix_synapse_use_presence
  772. else {matrix_client_element_default_hs_url: false}
  773. }}
  774. matrix_client_element_welcome_user_id: ~
  775. matrix_client_element_jitsi_preferredDomain: "{{ matrix_server_fqn_jitsi if matrix_jitsi_enabled else '' }}"
  776. ######################################################################
  777. #
  778. # /matrix-client-element
  779. #
  780. ######################################################################
  781. ######################################################################
  782. #
  783. # matrix-synapse
  784. #
  785. ######################################################################
  786. matrix_synapse_container_image_self_build: "{{ matrix_architecture not in ['arm32', 'arm64', 'amd64'] }}"
  787. # When ma1sd is enabled, we can use it to validate email addresses and phone numbers.
  788. # 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.
  789. matrix_synapse_account_threepid_delegates_email: "{{ 'http://matrix-ma1sd:8090' if matrix_ma1sd_enabled else '' }}"
  790. matrix_synapse_account_threepid_delegates_msisdn: "{{ 'http://matrix-ma1sd:8090' if matrix_ma1sd_enabled else '' }}"
  791. # Normally, matrix-nginx-proxy is enabled and nginx can reach Synapse over the container network.
  792. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it,
  793. # you can expose Synapse's ports to the host.
  794. #
  795. # For exposing the Matrix Client API's port (plain HTTP) to the local host.
  796. matrix_synapse_container_client_api_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:8008' }}"
  797. #
  798. # For exposing the Matrix Federation API's plain port (plain HTTP) to the local host.
  799. matrix_synapse_container_federation_api_plain_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:8048' }}"
  800. #
  801. # For exposing the Matrix Federation API's TLS port (HTTPS) to the internet on all network interfaces.
  802. 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 '' }}"
  803. #
  804. # For exposing the Synapse Metrics API's port (plain HTTP) to the local host.
  805. 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 '' }}"
  806. #
  807. # For exposing the Synapse Manhole port (plain HTTP) to the local host.
  808. matrix_synapse_container_manhole_api_host_bind_port: "{{ '127.0.0.1:9000' if matrix_synapse_manhole_enabled else '' }}"
  809. matrix_synapse_database_host: "{{ matrix_postgres_connection_hostname }}"
  810. matrix_synapse_database_user: "{{ matrix_postgres_connection_username }}"
  811. matrix_synapse_database_password: "{{ matrix_postgres_connection_password }}"
  812. matrix_synapse_database_database: "{{ matrix_postgres_db_name }}"
  813. # We do not enable TLS in Synapse by default.
  814. # TLS is handled by the matrix-nginx-proxy, which proxies the requests to Synapse.
  815. matrix_synapse_tls_federation_listener_enabled: false
  816. matrix_synapse_tls_certificate_path: ~
  817. matrix_synapse_tls_private_key_path: ~
  818. matrix_synapse_federation_port_openid_resource_required: "{{ not matrix_synapse_federation_enabled and (matrix_dimension_enabled or matrix_ma1sd_enabled) }}"
  819. matrix_synapse_email_enabled: "{{ matrix_mailer_enabled }}"
  820. matrix_synapse_email_smtp_host: "matrix-mailer"
  821. matrix_synapse_email_smtp_port: 8025
  822. matrix_synapse_email_smtp_require_transport_security: false
  823. matrix_synapse_email_notif_from: "Matrix <{{ matrix_mailer_sender_address }}>"
  824. # Even if TURN doesn't support TLS (it does by default),
  825. # it doesn't hurt to try a secure connection anyway.
  826. matrix_synapse_turn_uris: |
  827. {{
  828. [
  829. 'turns:' + matrix_server_fqn_matrix + '?transport=udp',
  830. 'turns:' + matrix_server_fqn_matrix + '?transport=tcp',
  831. 'turn:' + matrix_server_fqn_matrix + '?transport=udp',
  832. 'turn:' + matrix_server_fqn_matrix + '?transport=tcp',
  833. ]
  834. if matrix_coturn_enabled
  835. else []
  836. }}
  837. matrix_synapse_turn_shared_secret: "{{ matrix_coturn_turn_static_auth_secret if matrix_coturn_enabled else '' }}"
  838. matrix_synapse_self_check_validate_certificates: "{{ false if matrix_ssl_retrieval_method == 'self-signed' else true }}"
  839. matrix_synapse_systemd_required_services_list: |
  840. {{
  841. (['docker.service'])
  842. +
  843. (['matrix-postgres.service'] if matrix_postgres_enabled else [])
  844. +
  845. (['matrix-goofys'] if matrix_s3_media_store_enabled else [])
  846. }}
  847. matrix_synapse_systemd_wanted_services_list: |
  848. {{
  849. (['matrix-coturn.service'] if matrix_coturn_enabled else [])
  850. +
  851. (['matrix-mailer.service'] if matrix_mailer_enabled else [])
  852. }}
  853. ######################################################################
  854. #
  855. # /matrix-synapse
  856. #
  857. ######################################################################
  858. ######################################################################
  859. #
  860. # matrix-synapse-admin
  861. #
  862. ######################################################################
  863. matrix_synapse_admin_enabled: false
  864. # Normally, matrix-nginx-proxy is enabled and nginx can reach Synapse Admin over the container network.
  865. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  866. # Synapse Admin's HTTP port to the local host.
  867. matrix_synapse_admin_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:8766' }}"
  868. matrix_synapse_admin_container_self_build: "{{ matrix_architecture != 'amd64' }}"
  869. ######################################################################
  870. #
  871. # /matrix-synapse-admin
  872. #
  873. ######################################################################
  874. ######################################################################
  875. #
  876. # matrix-registration
  877. #
  878. ######################################################################
  879. matrix_registration_enabled: false
  880. # Normally, matrix-nginx-proxy is enabled and nginx can reach matrix-registration over the container network.
  881. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  882. # matrix-registration's HTTP port to the local host.
  883. matrix_registration_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:8767' }}"
  884. matrix_registration_riot_instance: "{{ ('https://' + matrix_server_fqn_element) if matrix_client_element_enabled else 'https://riot.im/app/' }}"
  885. matrix_registration_shared_secret: "{{ matrix_synapse_registration_shared_secret if matrix_synapse_enabled else '' }}"
  886. matrix_registration_server_location: "{{ 'http://matrix-synapse:8008' if matrix_synapse_enabled else '' }}"
  887. matrix_registration_api_validate_certs: "{{ false if matrix_ssl_retrieval_method == 'self-signed' else true }}"
  888. matrix_registration_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"
  889. ######################################################################
  890. #
  891. # /matrix-registration
  892. #
  893. ######################################################################