From ce4de085d7eb36bb0a885e24f51da5b75386b7fd Mon Sep 17 00:00:00 2001
From: pigeonmoelleux <pigeonmoelleux@crans.org>
Date: Sat, 1 Mar 2025 19:46:14 +0100
Subject: [PATCH] Ajout endpoint admin

---
 modules/services/matrix.nix | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/modules/services/matrix.nix b/modules/services/matrix.nix
index d9095f9..8d46c6d 100644
--- a/modules/services/matrix.nix
+++ b/modules/services/matrix.nix
@@ -176,5 +176,14 @@
         proxy_set_header Host $host;
       '';
     };
+
+    locations."/_synapse/admin" = {
+      proxyPass = "http://localhost:8008";
+      extraConfig = ''
+        proxy_set_header X-Forwarded-For $remote_addr;
+        proxy_set_header X-Forwarded-Proto $scheme;
+        proxy_set_header Host $host;
+      '';
+    };
   };
 }
-- 
GitLab