From b84f25309b6b0351b5b24b5be2ca49c4c12195a6 Mon Sep 17 00:00:00 2001
From: Slavi Pantaleev <slavi@devture.com>
Date: Sun, 26 Feb 2023 22:09:37 +0200
Subject: [PATCH] Add matrix_homeserver_container_network

---
 group_vars/matrix_servers | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/group_vars/matrix_servers b/group_vars/matrix_servers
index 359c6e3f2..75076bbc1 100755
--- a/group_vars/matrix_servers
+++ b/group_vars/matrix_servers
@@ -435,6 +435,15 @@ matrix_homeserver_container_federation_url: |-
     }[matrix_homeserver_implementation]
   }}
 
+matrix_homeserver_container_network: |-
+  {{
+    matrix_nginx_proxy_container_network if matrix_nginx_proxy_enabled else {
+      'synapse': matrix_synapse_container_network,
+      'dendrite': matrix_dendrite_container_network,
+      'conduit': matrix_conduit_container_network,
+    }[matrix_homeserver_implementation]
+  }}
+
 matrix_integration_manager_rest_url: "{{ matrix_dimension_integrations_rest_url if matrix_dimension_enabled else None }}"
 matrix_integration_manager_ui_url: "{{ matrix_dimension_integrations_ui_url if matrix_dimension_enabled else None }}"