From df19f075c4eb85fed2faa7cdf432a325ef10e8af Mon Sep 17 00:00:00 2001 From: Arya Kiran Date: Mon, 8 Jan 2024 15:09:55 +0530 Subject: [PATCH] same for bosh and ws --- privfrontends/templates/in/apps.Caddyfile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/privfrontends/templates/in/apps.Caddyfile b/privfrontends/templates/in/apps.Caddyfile index a956086..79b5a77 100644 --- a/privfrontends/templates/in/apps.Caddyfile +++ b/privfrontends/templates/in/apps.Caddyfile @@ -12,8 +12,18 @@ projectsegfau.lt { import def reverse_proxy /_matrix/* :8456 reverse_proxy /.well-known/acme-challenge/* :5380 - reverse_proxy /bosh :5280 - reverse_proxy /ws :5280 + reverse_proxy /bosh :5443 { + header_up X-Real-IP {remote_host} + transport http { + tls_insecure_skip_verify + } + } + reverse_proxy /ws :5443 { + header_up X-Real-IP {remote_host} + transport http { + tls_insecure_skip_verify + } + } header /.well-known/matrix/* Content-Type application/json header /.well-known/matrix/* Access-Control-Allow-Origin * handle_path /.well-known/* {