Last active
February 6, 2022 06:21
-
-
Save jimmylu2333/bf8d881d8930812c0ca4a3a6ed74777d to your computer and use it in GitHub Desktop.
v2ray配置文件 - v2ray服务器端配置文件 - v2ray server configuration - v2ray configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"inbound": { | |
"port": 40006, | |
"protocol": "vmess", | |
"settings": { | |
"clients": [ | |
{ | |
"id": "3cfb2db1-7161-44d5-998c-e20d5b30544c", | |
"level": 1, | |
"alterId": 64 | |
} | |
], | |
"detour": { | |
"to": "dynamicPort" | |
} | |
}, | |
"streamSettings": { | |
"network": "kcp", | |
"kcpSettings": { | |
"mtu": 1350, | |
"tti": 20, | |
"uplinkCapacity": 10, | |
"downlinkCapacity": 100, | |
"congestion": false, | |
"readBufferSize": 1, | |
"writeBufferSize": 1, | |
"header": { | |
"type": "none" | |
} | |
} | |
} | |
}, | |
"inboundDetour": [ | |
{ | |
"protocol": "vmess", | |
"port": "10000-10500", | |
"tag": "dynamicPort", | |
"settings": { | |
"default": { | |
"level": 1, | |
"alterId": 32 | |
} | |
}, | |
"allocate": { | |
"strategy": "random", | |
"concurrency": 2, | |
"refresh": 5 | |
}, | |
"streamSettings": { | |
"network": "kcp" | |
} | |
}, | |
{ | |
"protocol": "shadowsocks", | |
"port": 40006, | |
"settings": { | |
"method": "aes-256-gcm", | |
"password": "00000000", | |
"udp": false | |
} | |
} | |
], | |
"outbound": { | |
"protocol": "freedom", | |
"settings": {} | |
}, | |
"transport": {}, | |
"log": { | |
"access": "/var/log/v2ray/access.log", | |
"error": "/var/log/v2ray/error.log", | |
"loglevel": "warning" | |
}, | |
"policy": { | |
"levels": { | |
"0": { | |
"handshake": 4, | |
"connIdle": 300, | |
"uplinkOnly": 300, | |
"downlinkOnly": 300 | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
说明文件
这是v2ray Linux 服务器端配置文件。是我当前正在用的。使用方法是将这个配置文件替换/etc/v2ray/config.json 里面的内容即可。当然,在这之前有两项需要改。
该配置文件可以使用的功能有。