Switch xray server from unix socket to TCP socket

This commit is contained in:
opencode
2026-05-18 13:15:03 +00:00
parent 5ae62f3704
commit 632cc57587
3 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ server {
keepalive_timeout 5m;
location /trapdoor {
proxy_pass http://unix:/dev/shm/xray.socket;
proxy_pass http://xray-server:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
+2 -1
View File
@@ -4,7 +4,8 @@
},
"inbounds": [
{
"listen": "/dev/shm/xray.sock,0666",
"listen": "0.0.0.0",
"port": 8080,
"protocol": "vless",
"settings": {
"clients": [