From: nutra-bot Date: Thu, 11 Sep 2025 19:16:42 +0000 (+0000) Subject: update synapse & nginx configs X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=a0c7bffdd536d58fb6228f8360baaeadf8a38e07;p=nutratech%2Fvps-root.git update synapse & nginx configs --- diff --git a/etc/nginx/conf.d/default.conf b/etc/nginx/conf.d/default.conf index 2cca990..2b235a7 100644 --- a/etc/nginx/conf.d/default.conf +++ b/etc/nginx/conf.d/default.conf @@ -174,6 +174,14 @@ server { alias /var/www/cv/ds/resume.pdf; } + # public folder + location /public { + root /var/www; + autoindex on; + #index index.html index.htm; + #try_files $uri $uri/ /index.html =404; + } + # HTTPS / SSL ssl_certificate /etc/letsencrypt/live/dev.nutra.tk/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/dev.nutra.tk/privkey.pem; # managed by Certbot @@ -189,7 +197,7 @@ server { # Listen on 443 with matrix / synapse server { listen 443 ssl http2; - server_name chat.nutra.tk; + server_name matrix.nutra.tk chat.nutra.tk; location / { proxy_pass http://127.0.0.1:8008;