first-commit
This commit is contained in:
226
v2ray示例/XRay-外网服务器/Phonix-amd64-02实际使用的Xray配置.json
Normal file
226
v2ray示例/XRay-外网服务器/Phonix-amd64-02实际使用的Xray配置.json
Normal file
@@ -0,0 +1,226 @@
|
||||
{
|
||||
"log": {
|
||||
"access": "/var/log/xray/access.log",
|
||||
"error": "/var/log/xray/error.log",
|
||||
"loglevel": "warning"
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"port": 19990,
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"id": "adbd84eb-15fe-4c62-931c-b471791672ad",
|
||||
"flow": "xtls-rprx-direct",
|
||||
"level": 0,
|
||||
"email": "ice@gmail.com"
|
||||
}
|
||||
],
|
||||
"decryption": "none",
|
||||
"fallbacks": [
|
||||
{
|
||||
"dest": 60001,
|
||||
"alpn": "",
|
||||
"xver": 1
|
||||
},
|
||||
{
|
||||
"dest": 60002,
|
||||
"alpn": "h2",
|
||||
"xver": 1
|
||||
},
|
||||
{
|
||||
"path": "/v2ice-vless-ws/",
|
||||
"dest": 19998,
|
||||
"xver": 1
|
||||
},
|
||||
{
|
||||
"path": "/v2ice-vmess-tcp",
|
||||
"dest": 19997,
|
||||
"xver": 1
|
||||
},
|
||||
{
|
||||
"path": "/v2ice-vmess-ws",
|
||||
"dest": 19996,
|
||||
"xver": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "tcp",
|
||||
"security": "xtls",
|
||||
"xtlsSettings": {
|
||||
"alpn": [
|
||||
"h2",
|
||||
"http/1.1"
|
||||
],
|
||||
"certificates": [
|
||||
{
|
||||
"certificateFile": "/root/.acme.sh/xx.s4.cc.hh.107421.xyz_ecc/fullchain.cer",
|
||||
"keyFile": "/root/.acme.sh/xx.s4.cc.hh.107421.xyz_ecc/xx.s4.cc.hh.107421.xyz.key"
|
||||
}
|
||||
]
|
||||
},
|
||||
"sniffing": {
|
||||
"enabled": true,
|
||||
"destOverride": [
|
||||
"http",
|
||||
"tls"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"port": 19999,
|
||||
"listen": "127.0.0.1",
|
||||
"protocol": "trojan",
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"password": "loveff.22",
|
||||
"level": 0,
|
||||
"email": "ice@gmail.com.cn",
|
||||
"flow": "xtls-rprx-direct"
|
||||
}
|
||||
],
|
||||
"fallbacks": [
|
||||
{
|
||||
"dest": 8080,
|
||||
"alpn": "",
|
||||
"xver": 1
|
||||
},
|
||||
{
|
||||
"dest": 8081,
|
||||
"alpn": "h2",
|
||||
"xver": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "tcp",
|
||||
"security": "xtls",
|
||||
"xtlsSettings": {
|
||||
"alpn": [
|
||||
"h2",
|
||||
"http/1.1"
|
||||
],
|
||||
"certificates": [
|
||||
{
|
||||
"certificateFile": "/root/.acme.sh/xx.s4.cc.hh.107421.xyz_ecc/fullchain.cer",
|
||||
"keyFile": "/root/.acme.sh/xx.s4.cc.hh.107421.xyz_ecc/xx.s4.cc.hh.107421.xyz.key"
|
||||
}
|
||||
]
|
||||
},
|
||||
"sniffing": {
|
||||
"enabled": true,
|
||||
"destOverride": [
|
||||
"http",
|
||||
"tls"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"port": 19998,
|
||||
"listen": "127.0.0.1",
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"id": "adbd84eb-15fe-4c62-931c-b471791672ad",
|
||||
"level": 0,
|
||||
"email": "ice@gmail.com"
|
||||
}
|
||||
],
|
||||
"decryption": "none"
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "ws",
|
||||
"security": "none",
|
||||
"wsSettings": {
|
||||
"acceptProxyProtocol": true,
|
||||
"path": "/v2ice-vless-ws/"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"port": 19997,
|
||||
"listen": "127.0.0.1",
|
||||
"protocol": "vmess",
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"id": "3da8aa3f-ddd7-49bf-94ba-950593f24471",
|
||||
"level": 0,
|
||||
"email": "ice@gmail.com"
|
||||
}
|
||||
]
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "tcp",
|
||||
"security": "auto",
|
||||
"tcpSettings": {
|
||||
"acceptProxyProtocol": true,
|
||||
"header": {
|
||||
"type": "http",
|
||||
"request": {
|
||||
"path": [
|
||||
"/v2ice-vmess-tcp"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"port": 19996,
|
||||
"listen": "127.0.0.1",
|
||||
"protocol": "vmess",
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"id": "c08e68f1-283c-4f91-9603-0b80484bb283",
|
||||
"level": 0,
|
||||
"email": "ice@gmail.com"
|
||||
}
|
||||
]
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "ws",
|
||||
"security": "auto",
|
||||
"wsSettings": {
|
||||
"acceptProxyProtocol": true,
|
||||
"path": "/v2ice-vmess-ws"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"port": 19995,
|
||||
"listen": "0.0.0.0",
|
||||
"protocol": "vmess",
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"id": "becaca40-b457-4572-9b46-ed66ecca7b4e",
|
||||
"level": 0,
|
||||
"alterId": 0,
|
||||
"email": "ice@cc.com"
|
||||
}
|
||||
]
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "ws",
|
||||
"security": "auto",
|
||||
"wsSettings": {
|
||||
"acceptProxyProtocol": false,
|
||||
"path": "/v2ice-default-ws"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
"protocol": "freedom"
|
||||
}
|
||||
]
|
||||
}
|
||||
226
v2ray示例/XRay-外网服务器/Seoul4实际使用的Xray配置.json
Normal file
226
v2ray示例/XRay-外网服务器/Seoul4实际使用的Xray配置.json
Normal file
@@ -0,0 +1,226 @@
|
||||
{
|
||||
"log": {
|
||||
"access": "/var/log/xray/access.log",
|
||||
"error": "/var/log/xray/error.log",
|
||||
"loglevel": "warning"
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"port": 19990,
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"id": "adbd84eb-15fe-4c62-931c-b471791672ad",
|
||||
"flow": "xtls-rprx-direct",
|
||||
"level": 0,
|
||||
"email": "ice@gmail.com"
|
||||
}
|
||||
],
|
||||
"decryption": "none",
|
||||
"fallbacks": [
|
||||
{
|
||||
"dest": 60001,
|
||||
"alpn": "",
|
||||
"xver": 1
|
||||
},
|
||||
{
|
||||
"dest": 60002,
|
||||
"alpn": "h2",
|
||||
"xver": 1
|
||||
},
|
||||
{
|
||||
"path": "/v2ice-vless-ws/",
|
||||
"dest": 19998,
|
||||
"xver": 1
|
||||
},
|
||||
{
|
||||
"path": "/v2ice-vmess-tcp",
|
||||
"dest": 19997,
|
||||
"xver": 1
|
||||
},
|
||||
{
|
||||
"path": "/v2ice-vmess-ws",
|
||||
"dest": 19996,
|
||||
"xver": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "tcp",
|
||||
"security": "xtls",
|
||||
"xtlsSettings": {
|
||||
"alpn": [
|
||||
"h2",
|
||||
"http/1.1"
|
||||
],
|
||||
"certificates": [
|
||||
{
|
||||
"certificateFile": "/root/.acme.sh/xx.s4.cc.hh.107421.xyz_ecc/fullchain.cer",
|
||||
"keyFile": "/root/.acme.sh/xx.s4.cc.hh.107421.xyz_ecc/xx.s4.cc.hh.107421.xyz.key"
|
||||
}
|
||||
]
|
||||
},
|
||||
"sniffing": {
|
||||
"enabled": true,
|
||||
"destOverride": [
|
||||
"http",
|
||||
"tls"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"port": 19999,
|
||||
"listen": "127.0.0.1",
|
||||
"protocol": "trojan",
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"password": "loveff.22",
|
||||
"level": 0,
|
||||
"email": "ice@gmail.com.cn",
|
||||
"flow": "xtls-rprx-direct"
|
||||
}
|
||||
],
|
||||
"fallbacks": [
|
||||
{
|
||||
"dest": 8080,
|
||||
"alpn": "",
|
||||
"xver": 1
|
||||
},
|
||||
{
|
||||
"dest": 8081,
|
||||
"alpn": "h2",
|
||||
"xver": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "tcp",
|
||||
"security": "xtls",
|
||||
"xtlsSettings": {
|
||||
"alpn": [
|
||||
"h2",
|
||||
"http/1.1"
|
||||
],
|
||||
"certificates": [
|
||||
{
|
||||
"certificateFile": "/root/.acme.sh/xx.s4.cc.hh.107421.xyz_ecc/fullchain.cer",
|
||||
"keyFile": "/root/.acme.sh/xx.s4.cc.hh.107421.xyz_ecc/xx.s4.cc.hh.107421.xyz.key"
|
||||
}
|
||||
]
|
||||
},
|
||||
"sniffing": {
|
||||
"enabled": true,
|
||||
"destOverride": [
|
||||
"http",
|
||||
"tls"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"port": 19998,
|
||||
"listen": "127.0.0.1",
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"id": "adbd84eb-15fe-4c62-931c-b471791672ad",
|
||||
"level": 0,
|
||||
"email": "ice@gmail.com"
|
||||
}
|
||||
],
|
||||
"decryption": "none"
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "ws",
|
||||
"security": "none",
|
||||
"wsSettings": {
|
||||
"acceptProxyProtocol": true,
|
||||
"path": "/v2ice-vless-ws/"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"port": 19997,
|
||||
"listen": "127.0.0.1",
|
||||
"protocol": "vmess",
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"id": "3da8aa3f-ddd7-49bf-94ba-950593f24471",
|
||||
"level": 0,
|
||||
"email": "ice@gmail.com"
|
||||
}
|
||||
]
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "tcp",
|
||||
"security": "auto",
|
||||
"tcpSettings": {
|
||||
"acceptProxyProtocol": true,
|
||||
"header": {
|
||||
"type": "http",
|
||||
"request": {
|
||||
"path": [
|
||||
"/v2ice-vmess-tcp"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"port": 19996,
|
||||
"listen": "127.0.0.1",
|
||||
"protocol": "vmess",
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"id": "c08e68f1-283c-4f91-9603-0b80484bb283",
|
||||
"level": 0,
|
||||
"email": "ice@gmail.com"
|
||||
}
|
||||
]
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "ws",
|
||||
"security": "auto",
|
||||
"wsSettings": {
|
||||
"acceptProxyProtocol": true,
|
||||
"path": "/v2ice-vmess-ws"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"port": 19995,
|
||||
"listen": "0.0.0.0",
|
||||
"protocol": "vmess",
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"id": "becaca40-b457-4572-9b46-ed66ecca7b4e",
|
||||
"level": 0,
|
||||
"alterId": 0,
|
||||
"email": "ice@cc.com"
|
||||
}
|
||||
]
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "ws",
|
||||
"security": "auto",
|
||||
"wsSettings": {
|
||||
"acceptProxyProtocol": false,
|
||||
"path": "/v2ice-default-ws"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
"protocol": "freedom"
|
||||
}
|
||||
]
|
||||
}
|
||||
220
v2ray示例/XRay-外网服务器/XTLS-Trojan-vless-websocket-终极方案.json
Normal file
220
v2ray示例/XRay-外网服务器/XTLS-Trojan-vless-websocket-终极方案.json
Normal file
@@ -0,0 +1,220 @@
|
||||
{
|
||||
"log": {
|
||||
"access": "/var/log/xray/access.log",
|
||||
"error": "/var/log/xray/error.log",
|
||||
"loglevel": "warning"
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"port": 19990,
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"id": "adbd84eb-15fe-4c62-931c-b471791672ad",
|
||||
"flow": "xtls-rprx-direct",
|
||||
"level": 0,
|
||||
"email": "ice@gmail.com"
|
||||
}
|
||||
],
|
||||
"decryption": "none",
|
||||
"fallbacks": [
|
||||
{
|
||||
"dest": 19999,
|
||||
"xver": 1
|
||||
},
|
||||
{
|
||||
"path": "/v2ice-vless-ws",
|
||||
"dest": 19998,
|
||||
"xver": 1
|
||||
},
|
||||
{
|
||||
"path": "/v2ice-vmess-tcp",
|
||||
"dest": 19997,
|
||||
"xver": 1
|
||||
},
|
||||
{
|
||||
"path": "/v2ice-vmess-ws",
|
||||
"dest": 19996,
|
||||
"xver": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "tcp",
|
||||
"security": "xtls",
|
||||
"xtlsSettings": {
|
||||
"alpn": [
|
||||
"h2",
|
||||
"http/1.1"
|
||||
],
|
||||
"certificates": [
|
||||
{
|
||||
"certificateFile": "/root/.acme.sh/xx.s4.cc.hh.107421.xyz_ecc/fullchain.cer",
|
||||
"keyFile": "/root/.acme.sh/xx.s4.cc.hh.107421.xyz_ecc/xx.s4.cc.hh.107421.xyz.key"
|
||||
}
|
||||
]
|
||||
},
|
||||
"sniffing": {
|
||||
"enabled": true,
|
||||
"destOverride": [
|
||||
"http",
|
||||
"tls"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"port": 19999,
|
||||
"listen": "127.0.0.1",
|
||||
"protocol": "trojan",
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"password": "loveff.22",
|
||||
"level": 0,
|
||||
"email": "ice@gmail.com.cn",
|
||||
"flow": "xtls-rprx-direct"
|
||||
}
|
||||
],
|
||||
"fallbacks": [
|
||||
{
|
||||
"dest": 8080,
|
||||
"alpn": "",
|
||||
"xver": 1
|
||||
},
|
||||
{
|
||||
"dest": 8081,
|
||||
"alpn": "h2",
|
||||
"xver": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "tcp",
|
||||
"security": "xtls",
|
||||
"xtlsSettings": {
|
||||
"alpn": [
|
||||
"h2",
|
||||
"http/1.1"
|
||||
],
|
||||
"certificates": [
|
||||
{
|
||||
"certificateFile": "/root/.acme.sh/xx.s4.cc.hh.107421.xyz_ecc/fullchain.cer",
|
||||
"keyFile": "/root/.acme.sh/xx.s4.cc.hh.107421.xyz_ecc/xx.s4.cc.hh.107421.xyz.key"
|
||||
}
|
||||
]
|
||||
},
|
||||
"sniffing": {
|
||||
"enabled": true,
|
||||
"destOverride": [
|
||||
"http",
|
||||
"tls"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"port": 19998,
|
||||
"listen": "127.0.0.1",
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"id": "adbd84eb-15fe-4c62-931c-b471791672ad",
|
||||
"level": 0,
|
||||
"email": "ice@gmail.com"
|
||||
}
|
||||
],
|
||||
"decryption": "none"
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "ws",
|
||||
"security": "auto",
|
||||
"wsSettings": {
|
||||
"acceptProxyProtocol": true,
|
||||
"path": "/v2ice-vless-ws"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"port": 19997,
|
||||
"listen": "127.0.0.1",
|
||||
"protocol": "vmess",
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"id": "3da8aa3f-ddd7-49bf-94ba-950593f24471",
|
||||
"level": 0,
|
||||
"email": "ice@gmail.com"
|
||||
}
|
||||
]
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "tcp",
|
||||
"security": "auto",
|
||||
"tcpSettings": {
|
||||
"acceptProxyProtocol": true,
|
||||
"header": {
|
||||
"type": "http",
|
||||
"request": {
|
||||
"path": [
|
||||
"/v2ice-vmess-tcp"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"port": 19996,
|
||||
"listen": "127.0.0.1",
|
||||
"protocol": "vmess",
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"id": "c08e68f1-283c-4f91-9603-0b80484bb283",
|
||||
"level": 0,
|
||||
"email": "ice@gmail.com"
|
||||
}
|
||||
]
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "ws",
|
||||
"security": "auto",
|
||||
"wsSettings": {
|
||||
"acceptProxyProtocol": true,
|
||||
"path": "/v2ice-vmess-ws"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"port": 19995,
|
||||
"listen": "0.0.0.0",
|
||||
"protocol": "vmess",
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"id": "becaca40-b457-4572-9b46-ed66ecca7b4e",
|
||||
"level": 0,
|
||||
"alterId": 0,
|
||||
"email": "ice@cc.com"
|
||||
}
|
||||
]
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "ws",
|
||||
"security": "auto",
|
||||
"wsSettings": {
|
||||
"acceptProxyProtocol": false,
|
||||
"path": "/v2ice-default-ws"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
"protocol": "freedom"
|
||||
}
|
||||
]
|
||||
}
|
||||
64
v2ray示例/XRay-外网服务器/XTLS-Vless.json
Normal file
64
v2ray示例/XRay-外网服务器/XTLS-Vless.json
Normal file
@@ -0,0 +1,64 @@
|
||||
{
|
||||
"log": {
|
||||
"access": "/var/log/xray/access.log",
|
||||
"error": "/var/log/xray/error.log",
|
||||
"loglevel": "warning"
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"port": 19990,
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"id": "adbd84eb-15fe-4c62-931c-b471791672ad",
|
||||
"flow": "xtls-rprx-direct",
|
||||
"level": 0,
|
||||
"email": "ice@gmail.com"
|
||||
}
|
||||
],
|
||||
"decryption": "none",
|
||||
"fallbacks": [
|
||||
{
|
||||
"dest": 60000,
|
||||
"alpn": "",
|
||||
"xver": 1
|
||||
},
|
||||
{
|
||||
"dest": 60001,
|
||||
"alpn": "h2",
|
||||
"xver": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "tcp",
|
||||
"security": "xtls",
|
||||
"xtlsSettings": {
|
||||
"alpn": [
|
||||
"h2",
|
||||
"http/1.1"
|
||||
],
|
||||
"certificates": [
|
||||
{
|
||||
"certificateFile": "/root/.acme.sh/xx.s4.cc.hh.107421.xyz_ecc/fullchain.cer",
|
||||
"keyFile": "/root/.acme.sh/xx.s4.cc.hh.107421.xyz_ecc/xx.s4.cc.hh.107421.xyz.key"
|
||||
}
|
||||
]
|
||||
},
|
||||
"sniffing": {
|
||||
"enabled": true,
|
||||
"destOverride": [
|
||||
"http",
|
||||
"tls"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
"protocol": "freedom"
|
||||
}
|
||||
]
|
||||
}
|
||||
30
v2ray示例/XRay-外网服务器/vmess-websocket-前端Nginx配置.conf
Normal file
30
v2ray示例/XRay-外网服务器/vmess-websocket-前端Nginx配置.conf
Normal file
@@ -0,0 +1,30 @@
|
||||
server {
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
|
||||
ssl_certificate /etc/nginx/ssl/ws.s1.ccc.107421.xyz/ws.s1.ccc.107421.xyz.cert.pem;
|
||||
ssl_certificate_key /etc/nginx/ssl/ws.s1.ccc.107421.xyz/ws.s1.ccc.107421.xyz.key.pem;
|
||||
ssl_session_timeout 1d;
|
||||
ssl_session_cache shared:MozSSL:10m;
|
||||
ssl_session_tickets off;
|
||||
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
|
||||
ssl_prefer_server_ciphers off;
|
||||
|
||||
server_name xx.s4.cc.hh.107421.xyz;
|
||||
location /v2ice { # 与 V2Ray 配置中的 path 保持一致
|
||||
if ($http_upgrade != "websocket") { # WebSocket协商失败时返回404
|
||||
return 404;
|
||||
}
|
||||
proxy_redirect off;
|
||||
proxy_pass http://127.0.0.1:12000; # 假设WebSocket监听在环回地址的10000端口上
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header Host $host;
|
||||
# Show real IP in v2ray access.log
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
}
|
||||
19
v2ray示例/XRay-外网服务器/外网服务器-说明文档.md
Normal file
19
v2ray示例/XRay-外网服务器/外网服务器-说明文档.md
Normal file
@@ -0,0 +1,19 @@
|
||||
## Xray官方文档,写的非常好
|
||||
|
||||
https://xtls.github.io/document/level-1/fallbacks-lv1.html
|
||||
|
||||
这一段配置用人话要怎么解释呢?
|
||||
|
||||
Xray 的入站端口 (inbound port) 是 443
|
||||
|
||||
即由 Xray 负责监听 443 端口的 HTTPS 流量,并使用 certificates 项下设定的 TLS 证书来进行验证
|
||||
|
||||
Xray 的入站协议 (inbound protocol) 是 vless
|
||||
|
||||
1. vless 协议流量直接流入 Xray 中做后续处理
|
||||
2. 非 VLESS 协议流量有 4 个不同的回落目标:
|
||||
1. path 为 websocket 的流量,回落给端口 1234 后续处理
|
||||
2. path 为 vmesstcp 的流量,回落给端口 2345 后续处理
|
||||
3. path 为 vmessws 的流量,回落给端口 3456 后续处理
|
||||
4. 其它所有流量,回落给端口 1310 后续处理
|
||||
3. xver 为 1 表示开启 proxy protocol 功能,向后传递来源真实 IP
|
||||
BIN
v2ray示例/XRay-外网服务器/服务器系统架构图.png
Normal file
BIN
v2ray示例/XRay-外网服务器/服务器系统架构图.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 72 KiB |
89
v2ray示例/XRay-外网服务器/香港实际使用的Xray配置.json
Normal file
89
v2ray示例/XRay-外网服务器/香港实际使用的Xray配置.json
Normal file
@@ -0,0 +1,89 @@
|
||||
{
|
||||
"log": {
|
||||
"access": "/var/log/xray/access.log",
|
||||
"error": "/var/log/xray/error.log",
|
||||
"loglevel": "warning"
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"port": 29999,
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"id": "fc903f5d-a007-482b-928c-570da9a851f9",
|
||||
"flow": "xtls-rprx-direct"
|
||||
}
|
||||
],
|
||||
"decryption": "none",
|
||||
"fallbacks": [
|
||||
{
|
||||
"dest": 60000,
|
||||
"alpn": "",
|
||||
"xver": 1
|
||||
},
|
||||
{
|
||||
"dest": 60001,
|
||||
"alpn": "h2",
|
||||
"xver": 1
|
||||
},
|
||||
{
|
||||
"dest": 60002,
|
||||
"path": "/0e03986e4baac9/",
|
||||
"xver": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "tcp",
|
||||
"security": "xtls",
|
||||
"xtlsSettings": {
|
||||
"minVersion": "1.2",
|
||||
"certificates": [
|
||||
{
|
||||
"certificateFile": "/usr/local/etc/xray/self_signed_cert.pem",
|
||||
"keyFile": "/usr/local/etc/xray/self_signed_key.pem"
|
||||
},
|
||||
{
|
||||
"certificateFile": "/ssl/xray.crt",
|
||||
"keyFile": "/ssl/xray.key"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"sniffing": {
|
||||
"enabled": true,
|
||||
"destOverride": [
|
||||
"http",
|
||||
"tls"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"port": 60002,
|
||||
"listen": "127.0.0.1",
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"id": "fc903f5d-a007-482b-928c-570da9a851f9"
|
||||
}
|
||||
],
|
||||
"decryption": "none"
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "ws",
|
||||
"security": "none",
|
||||
"wsSettings": {
|
||||
"acceptProxyProtocol": true,
|
||||
"path": "/0e03986e4baac9/"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
"protocol": "freedom"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user