mirror of
				https://github.com/v2fly/v2ray-examples.git
				synced 2025-11-04 03:45:39 +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:
		@@ -1,47 +1,47 @@
 | 
			
		||||
{
 | 
			
		||||
	"log": {
 | 
			
		||||
		"loglevel": "warning"
 | 
			
		||||
	},
 | 
			
		||||
	"inbounds": [
 | 
			
		||||
		{
 | 
			
		||||
			"listen": "127.0.0.1",
 | 
			
		||||
			"port": "1080",
 | 
			
		||||
			"protocol": "socks",
 | 
			
		||||
			"settings": {
 | 
			
		||||
				"auth": "noauth"
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	],
 | 
			
		||||
	"outbounds": [
 | 
			
		||||
		{
 | 
			
		||||
			"protocol": "vless",
 | 
			
		||||
			"settings": {
 | 
			
		||||
				"vnext": [
 | 
			
		||||
					{
 | 
			
		||||
						"address": "your_server_ip",
 | 
			
		||||
						"port": 443,
 | 
			
		||||
						"users": [
 | 
			
		||||
							{
 | 
			
		||||
								"id": "",
 | 
			
		||||
								"encryption": "none"
 | 
			
		||||
							}
 | 
			
		||||
						]
 | 
			
		||||
					}
 | 
			
		||||
				]
 | 
			
		||||
			},
 | 
			
		||||
			"streamSettings": {
 | 
			
		||||
				"network": "gun",
 | 
			
		||||
				"security": "tls",
 | 
			
		||||
				"tlsSettings": {
 | 
			
		||||
					"serverName": "your_domain",
 | 
			
		||||
					"alpn": [
 | 
			
		||||
						"h2"
 | 
			
		||||
					]
 | 
			
		||||
				},
 | 
			
		||||
				"grpcSettings": {
 | 
			
		||||
					"serviceName": "GunService"
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	]
 | 
			
		||||
    "log": {
 | 
			
		||||
        "loglevel": "warning"
 | 
			
		||||
    },
 | 
			
		||||
    "inbounds": [
 | 
			
		||||
        {
 | 
			
		||||
            "listen": "127.0.0.1",
 | 
			
		||||
            "port": "1080",
 | 
			
		||||
            "protocol": "socks",
 | 
			
		||||
            "settings": {
 | 
			
		||||
                "auth": "noauth"
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    ],
 | 
			
		||||
    "outbounds": [
 | 
			
		||||
        {
 | 
			
		||||
            "protocol": "vless",
 | 
			
		||||
            "settings": {
 | 
			
		||||
                "vnext": [
 | 
			
		||||
                    {
 | 
			
		||||
                        "address": "your_server_ip",
 | 
			
		||||
                        "port": 443,
 | 
			
		||||
                        "users": [
 | 
			
		||||
                            {
 | 
			
		||||
                                "id": "",
 | 
			
		||||
                                "encryption": "none"
 | 
			
		||||
                            }
 | 
			
		||||
                        ]
 | 
			
		||||
                    }
 | 
			
		||||
                ]
 | 
			
		||||
            },
 | 
			
		||||
            "streamSettings": {
 | 
			
		||||
                "network": "gun",
 | 
			
		||||
                "security": "tls",
 | 
			
		||||
                "tlsSettings": {
 | 
			
		||||
                    "serverName": "your_domain",
 | 
			
		||||
                    "alpn": [
 | 
			
		||||
                        "h2"
 | 
			
		||||
                    ]
 | 
			
		||||
                },
 | 
			
		||||
                "grpcSettings": {
 | 
			
		||||
                    "serviceName": "GunService"
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    ]
 | 
			
		||||
}
 | 
			
		||||
@@ -1,45 +1,46 @@
 | 
			
		||||
{
 | 
			
		||||
	"log": {
 | 
			
		||||
		"loglevel": "warning"
 | 
			
		||||
	},
 | 
			
		||||
	"inbounds": [
 | 
			
		||||
		{
 | 
			
		||||
			"listen": "0.0.0.0",
 | 
			
		||||
			"port": 443,
 | 
			
		||||
			"protocol": "vless",
 | 
			
		||||
			"settings": {
 | 
			
		||||
				"clients": [
 | 
			
		||||
					{
 | 
			
		||||
						"id": "",
 | 
			
		||||
						"email": "love@v2fly.org"
 | 
			
		||||
					}
 | 
			
		||||
				]
 | 
			
		||||
			},
 | 
			
		||||
			"streamSettings": {
 | 
			
		||||
				"network": "gun",
 | 
			
		||||
				"security": "tls",
 | 
			
		||||
				"tlsSettings": {
 | 
			
		||||
					"serverName": "your_domain",
 | 
			
		||||
					"alpn": [
 | 
			
		||||
						"h2"
 | 
			
		||||
					],
 | 
			
		||||
					"certificates": [
 | 
			
		||||
						{
 | 
			
		||||
							"certificateFile": "/path/to/fullchain.crt",
 | 
			
		||||
							"keyFile": "/path/to/private.key"
 | 
			
		||||
						}
 | 
			
		||||
					]
 | 
			
		||||
				},
 | 
			
		||||
    "log": {
 | 
			
		||||
        "loglevel": "warning"
 | 
			
		||||
    },
 | 
			
		||||
    "inbounds": [
 | 
			
		||||
        {
 | 
			
		||||
            "listen": "0.0.0.0",
 | 
			
		||||
            "port": 443,
 | 
			
		||||
            "protocol": "vless",
 | 
			
		||||
            "settings": {
 | 
			
		||||
                "clients": [
 | 
			
		||||
                    {
 | 
			
		||||
                        "id": "",
 | 
			
		||||
                        "email": "love@v2fly.org"
 | 
			
		||||
                    }
 | 
			
		||||
                ],
 | 
			
		||||
                "decryption": "none"
 | 
			
		||||
            },
 | 
			
		||||
            "streamSettings": {
 | 
			
		||||
                "network": "gun",
 | 
			
		||||
                "security": "tls",
 | 
			
		||||
                "tlsSettings": {
 | 
			
		||||
                    "serverName": "your_domain",
 | 
			
		||||
                    "alpn": [
 | 
			
		||||
                        "h2"
 | 
			
		||||
                    ],
 | 
			
		||||
                    "certificates": [
 | 
			
		||||
                        {
 | 
			
		||||
                            "certificateFile": "/path/to/fullchain.crt",
 | 
			
		||||
                            "keyFile": "/path/to/private.key"
 | 
			
		||||
                        }
 | 
			
		||||
                    ]
 | 
			
		||||
                },
 | 
			
		||||
                "grpcSettings": {
 | 
			
		||||
					"serviceName": "GunService"
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	],
 | 
			
		||||
	"outbounds": [
 | 
			
		||||
		{
 | 
			
		||||
			"protocol": "freedom",
 | 
			
		||||
			"tag": "direct"
 | 
			
		||||
		}
 | 
			
		||||
	]
 | 
			
		||||
}
 | 
			
		||||
                    "serviceName": "GunService"
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    ],
 | 
			
		||||
    "outbounds": [
 | 
			
		||||
        {
 | 
			
		||||
            "protocol": "freedom",
 | 
			
		||||
            "tag": "direct"
 | 
			
		||||
        }
 | 
			
		||||
    ]
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user