From bc3ebc22842fb890cd206b2df8b03591f430ae88 Mon Sep 17 00:00:00 2001 From: nutra-bot Date: Sun, 24 Jul 2022 18:57:50 +0000 Subject: [PATCH] try adding /chat/ route, following directions: https://docs.mattermost.com/install/config-proxy-nginx.html --- etc/nginx/sites-available/default | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/etc/nginx/sites-available/default b/etc/nginx/sites-available/default index 6858f14..bd560b4 100644 --- a/etc/nginx/sites-available/default +++ b/etc/nginx/sites-available/default @@ -41,6 +41,29 @@ server { } + # Matter most (Chat / Slack alternative) + location /chat/ { + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + client_max_body_size 50M; + proxy_set_header Host $http_host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Frame-Options SAMEORIGIN; + proxy_buffers 256 16k; + proxy_buffer_size 16k; + client_body_timeout 60; + send_timeout 300; + lingering_timeout 5; + proxy_connect_timeout 90; + proxy_send_timeout 300; + proxy_read_timeout 90s; + proxy_http_version 1.1; + proxy_pass http://localhost:8065; + } + + # default favicon location = /favicon.ico { alias /var/www/favicon.gif; -- 2.52.0