From 3c85c3ca29af59be06669fcec3d7374e4c3256c8 Mon Sep 17 00:00:00 2001 From: Arya Kiran Date: Thu, 29 Feb 2024 20:46:43 +0530 Subject: [PATCH] add well-known file --- privfrontends/templates/in/apps.Caddyfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/privfrontends/templates/in/apps.Caddyfile b/privfrontends/templates/in/apps.Caddyfile index 416c5d8..23bafd2 100644 --- a/privfrontends/templates/in/apps.Caddyfile +++ b/privfrontends/templates/in/apps.Caddyfile @@ -241,6 +241,12 @@ matrixmpp.projectsegfau.lt https://matrixmpp.projectsegfau.lt:8448 { reverse_proxy :8446 { header_up X-Real-IP {remote_host} } + header /.well-known/matrix/* Content-Type application/json + header /.well-known/matrix/* Access-Control-Allow-Origin * + handle_path /.well-known/* { + root * /var/www/matrixmpp-well-known + file_server + } import acmedns }