From 64c60b97c994e43c59701cde60e9393b6572c3fd Mon Sep 17 00:00:00 2001 From: Shane Jaroch Date: Sat, 10 Jan 2026 13:01:18 -0500 Subject: [PATCH] remove mattermost and /v2/chat in nginx --- etc/nginx/conf.d/default.conf | 54 ----------------------------------- 1 file changed, 54 deletions(-) diff --git a/etc/nginx/conf.d/default.conf b/etc/nginx/conf.d/default.conf index b9f2570..1836a11 100644 --- a/etc/nginx/conf.d/default.conf +++ b/etc/nginx/conf.d/default.conf @@ -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; -# } -#} -- 2.52.0