backend for xcvr appview
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

change nginx root path

+15 -5
+15 -5
nginx/xcvr.conf
··· 2 2 listen 80; 3 3 server_name xcvr.chat; 4 4 5 - root /var/www/xcvr/dist; 5 + root /var/www/xcvr; 6 6 index index.html; 7 - 8 - location / { 9 - try_files $uri /index.html; 10 - } 11 7 12 8 location /xrpc/ { 13 9 proxy_pass http://localhost:8080; 14 10 proxy_set_header Host $host; 15 11 proxy_set_header X-Real-IP $remote_addr; 16 12 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 13 + } 14 + 15 + location ~ ^/(3[2-9][0-9]{3}|[4-5][0-9]{4}|6[0-5][0-9]{3})/ws$ { 16 + set $port $1; 17 + proxy_pass http://localhost:$port/ws; 18 + 19 + proxy_http_version 1.1; 20 + proxy_set_header Upgrade $http_upgrade; 21 + proxy_set_header Connection "upgrade"; 22 + proxy_set_header Host $host; 23 + } 24 + 25 + location / { 26 + try_files $uri /index.html; 17 27 } 18 28 }