added vless + websocket + docker-compose

This commit is contained in:
Benyamin 2022-12-14 10:49:17 +03:30
parent 5d2309feb5
commit decc487696
2 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,39 @@
{
"log": {
"loglevel": "warning"
},
"inbounds": [
{
"listen": "0.0.0.0",
"port": 1234,
"protocol": "vless",
"settings": {
"clients": [
{
"id": "",
"level": 0,
"email": "love@v2fly.org"
}
],
"decryption": "none",
"fallbacks": [
{
"dest": 8001
}
]
},
"streamSettings": {
"network": "ws",
"wsSettings": {
"path": "/vmess"
}
}
}
],
"outbounds": [
{
"protocol": "freedom",
"tag": "direct"
}
]
}

View File

@ -0,0 +1,11 @@
version: '3'
services:
xray:
image: teddysun/xray
restart: unless-stopped
network_mode: host
environment:
- V2RAY_VMESS_AEAD_FORCED=false
entrypoint: ["/usr/bin/xray", "-config", "/etc/xray/config.json"]
volumes:
- ./config.json:/etc/xray/config.json:ro