Mattermost-6.7.0-linux-amd64 NGINX Proxy

Hello, I installed mattermost-6.7.0-linux-amd64 on my “Ubuntu.20.04.3 LTS focal” server.
I use NGINX.1.14.0 for many servers, which is configured as a proxy with folder’s and IP filter,
but unfortunately that doesn’t work with Mattermost, I’ve tried everything I could find on the internet.

I am new…

----------- NGINX .1.14.0 Begin Mattermost Konfiguration ------------ 02,06.2022 --------------------------

server {

listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name test999_com; ( _ is a dot ) (new user can only 2 link show )
… ssl at so on…


}
location /matterhost/api/v[0-9]+/(users/)?websocket$ {

   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_pass          IP-Address:8065;  ( http:// new user can only 2 link schow )

}

location /matterhost {
client_max_body_size 50M;
proxy_set_header Connection “”;
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;
proxy_read_timeout 600s;
proxy_cache_revalidate on;
proxy_cache_min_uses 2;
proxy_cache_use_stale timeout;
proxy_cache_lock on;
proxy_pass IP-Address:8065; ( http:// new user can only 2 link schow )
proxy_redirect http://IP-Address:8065 https://test999.com;
access_log /var/log/nginx/RZKVM331-mattermost-test999.com.access.log;

------------ NGINX.1.14.0 ENDE Mattermost configuration -----------------------------

need help … :frowning:
has anyone ever solved the problem?

Hi Volker,

this is not the full nginx config, at least the “upstream” configuration is missing here.
Can you share the current nginx configuration again and maybe use the “preformatted text” feature here so that the board does not kill the formatting?

Also, can you please describe the problems you’re experiencing? What are you trying to do and what are you seeing?