mirror of
https://github.com/v2fly/v2ray-examples.git
synced 2025-01-18 13:59:29 +08:00
re-format and fix vless settings (#69)
* VLESS-gRPC-TLS: convert indentation to spaces format by vscode * fix: add decryption none to vless settings
This commit is contained in:
parent
1b772667f2
commit
14662e8461
@ -1,47 +1,47 @@
|
|||||||
{
|
{
|
||||||
"log": {
|
"log": {
|
||||||
"loglevel": "warning"
|
"loglevel": "warning"
|
||||||
},
|
},
|
||||||
"inbounds": [
|
"inbounds": [
|
||||||
{
|
{
|
||||||
"listen": "127.0.0.1",
|
"listen": "127.0.0.1",
|
||||||
"port": "1080",
|
"port": "1080",
|
||||||
"protocol": "socks",
|
"protocol": "socks",
|
||||||
"settings": {
|
"settings": {
|
||||||
"auth": "noauth"
|
"auth": "noauth"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"outbounds": [
|
"outbounds": [
|
||||||
{
|
{
|
||||||
"protocol": "vless",
|
"protocol": "vless",
|
||||||
"settings": {
|
"settings": {
|
||||||
"vnext": [
|
"vnext": [
|
||||||
{
|
{
|
||||||
"address": "your_server_ip",
|
"address": "your_server_ip",
|
||||||
"port": 443,
|
"port": 443,
|
||||||
"users": [
|
"users": [
|
||||||
{
|
{
|
||||||
"id": "",
|
"id": "",
|
||||||
"encryption": "none"
|
"encryption": "none"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"streamSettings": {
|
"streamSettings": {
|
||||||
"network": "gun",
|
"network": "gun",
|
||||||
"security": "tls",
|
"security": "tls",
|
||||||
"tlsSettings": {
|
"tlsSettings": {
|
||||||
"serverName": "your_domain",
|
"serverName": "your_domain",
|
||||||
"alpn": [
|
"alpn": [
|
||||||
"h2"
|
"h2"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"grpcSettings": {
|
"grpcSettings": {
|
||||||
"serviceName": "GunService"
|
"serviceName": "GunService"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
@ -1,45 +1,46 @@
|
|||||||
{
|
{
|
||||||
"log": {
|
"log": {
|
||||||
"loglevel": "warning"
|
"loglevel": "warning"
|
||||||
},
|
},
|
||||||
"inbounds": [
|
"inbounds": [
|
||||||
{
|
{
|
||||||
"listen": "0.0.0.0",
|
"listen": "0.0.0.0",
|
||||||
"port": 443,
|
"port": 443,
|
||||||
"protocol": "vless",
|
"protocol": "vless",
|
||||||
"settings": {
|
"settings": {
|
||||||
"clients": [
|
"clients": [
|
||||||
{
|
{
|
||||||
"id": "",
|
"id": "",
|
||||||
"email": "love@v2fly.org"
|
"email": "love@v2fly.org"
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
},
|
"decryption": "none"
|
||||||
"streamSettings": {
|
},
|
||||||
"network": "gun",
|
"streamSettings": {
|
||||||
"security": "tls",
|
"network": "gun",
|
||||||
"tlsSettings": {
|
"security": "tls",
|
||||||
"serverName": "your_domain",
|
"tlsSettings": {
|
||||||
"alpn": [
|
"serverName": "your_domain",
|
||||||
"h2"
|
"alpn": [
|
||||||
],
|
"h2"
|
||||||
"certificates": [
|
],
|
||||||
{
|
"certificates": [
|
||||||
"certificateFile": "/path/to/fullchain.crt",
|
{
|
||||||
"keyFile": "/path/to/private.key"
|
"certificateFile": "/path/to/fullchain.crt",
|
||||||
}
|
"keyFile": "/path/to/private.key"
|
||||||
]
|
}
|
||||||
},
|
]
|
||||||
|
},
|
||||||
"grpcSettings": {
|
"grpcSettings": {
|
||||||
"serviceName": "GunService"
|
"serviceName": "GunService"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"outbounds": [
|
"outbounds": [
|
||||||
{
|
{
|
||||||
"protocol": "freedom",
|
"protocol": "freedom",
|
||||||
"tag": "direct"
|
"tag": "direct"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user