From 2bbd4627b480a104cbfee9a02d2b976c4da2b5d6 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 31 May 2022 09:52:24 +0200 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index e5ac8f3..c187424 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -12,8 +12,16 @@ location ^~ __PATH__/ { proxy_http_version 1.1; proxy_set_header Connection "upgrade"; proxy_set_header Upgrade $http_upgrade; - - # Include SSOWAT user panel. - include conf.d/yunohost_panel.conf.inc; - more_clear_input_headers 'Accept-Encoding'; } + +#https://geekgonecrazy.com/2022/05/30/rocketchat-and-the-matrix-protocol/ +location /.well-known/matrix/ { + + proxy_pass http://127.0.0.1:8008; + proxy_redirect off; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Host $server_name; +} \ No newline at end of file