remove mattermost and /v2/chat in nginx
authorShane Jaroch <chown_tee@proton.me>
Sat, 10 Jan 2026 18:01:18 +0000 (13:01 -0500)
committerShane Jaroch <chown_tee@proton.me>
Sat, 10 Jan 2026 18:01:18 +0000 (13:01 -0500)
etc/nginx/conf.d/default.conf

index b9f2570e5b32c070c1a88028dbce422539f30f77..1836a113dfd287b548ddce05fd5c962eade4e480 100644 (file)
@@ -187,11 +187,6 @@ server {
   listen [::]:8448 ssl default_server;
   server_name dev.nutra.tk;
 
-#  # New chat (matrix / element)
-#  location ~ /v2/chat/ {
-#    proxy_pass http://127.0.0.1:8008;
-#    proxy_set_header X-Forwarded-For $remote_addr;
-#  }
   location / {
     proxy_pass http://127.0.0.1:8008;
     proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
@@ -204,52 +199,3 @@ server {
   include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
   ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
 }
-
-
-# Chat (mattermost)
-#proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=mattermost_cache:10m max_size=3g inactive=120m use_temp_path=off;
-#server {
-#   listen 443 ssl http2;
-#   server_name chat.nutra.tk;
-#
-#   location ~ /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_http_version 1.1;
-#       proxy_pass http://localhost:8065;
-#   }
-#
-#   location / {
-#       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 mattermost_cache;
-#       proxy_cache_revalidate on;
-#       proxy_cache_min_uses 2;
-#       proxy_cache_use_stale timeout;
-#       proxy_cache_lock on;
-#       proxy_http_version 1.1;
-#       proxy_pass http://localhost:8065;
-#   }
-#}