From 01f19ba877d37a2184a052762d4f1af13b678836 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorben=20G=C3=BCnther?= Date: Fri, 17 Jun 2022 11:40:54 +0200 Subject: [PATCH] matrix: Regulate admin API access with internal_access --- roles/matrix/templates/matrix.conf.j2 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/roles/matrix/templates/matrix.conf.j2 b/roles/matrix/templates/matrix.conf.j2 index e337ceb..dd0a98c 100644 --- a/roles/matrix/templates/matrix.conf.j2 +++ b/roles/matrix/templates/matrix.conf.j2 @@ -17,8 +17,7 @@ server { } location ~ ^(/_synapse/admin) { - allow {{ wireguard_vpn_subnet }}; - deny all; + include /etc/nginx/snippets/internal_access.conf; proxy_pass http://127.0.0.1:8008; proxy_set_header X-Forwarded-For $remote_addr; -- 2.44.0