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:
sixg0000d 2021-04-30 15:07:51 +08:00 committed by GitHub
parent 1b772667f2
commit 14662e8461
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 89 additions and 88 deletions

View File

@ -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"
} }
} }
} }
] ]
} }

View File

@ -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"
} }
] ]
} }