]> Nutra Git (v1) - nutratech/vps-root.git/commitdiff
update to fix matrix registry and route
authornutra-bot <nutradigest@gmail.com>
Fri, 5 Sep 2025 01:39:03 +0000 (01:39 +0000)
committernutra-bot <nutradigest@gmail.com>
Fri, 5 Sep 2025 01:39:03 +0000 (01:39 +0000)
    chat.nutra.tk points to dev.nutra.tk
    and nginx routes those requests to port 8448,
    which we used to manually suffix the domain with,
    i.e., dev.nutra.tk:8448 now becomes chat.nutra.tk

etc/nginx/conf.d/default.conf

index ca6b38be37c0de2db010c56918193039508cc0c9..2cca9907af99ebd8595d0d99c74db434d4739635 100644 (file)
@@ -186,6 +186,16 @@ server {
   }
 }
 
+# Listen on 443 with matrix / synapse
+server {
+  listen 443 ssl http2;
+  server_name chat.nutra.tk;
+
+  location / {
+    proxy_pass http://127.0.0.1:8008;
+    proxy_set_header X-Forwarded-For $remote_addr;
+  }
+}
 
 # Open matrix chat on 8448
 server {