mirror of
				https://github.com/v2fly/v2ray-examples.git
				synced 2025-11-04 03:45:39 +08:00 
			
		
		
		
	add VLESS minimized template
This commit is contained in:
		
							
								
								
									
										72
									
								
								VLESS-TCP-TLS/config_client.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										72
									
								
								VLESS-TCP-TLS/config_client.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,72 @@
 | 
			
		||||
{
 | 
			
		||||
    "log": {
 | 
			
		||||
        "loglevel": "warning"
 | 
			
		||||
    },
 | 
			
		||||
    "inbounds": [
 | 
			
		||||
        {
 | 
			
		||||
            "listen": "127.0.0.1",
 | 
			
		||||
            "port": "1080",
 | 
			
		||||
            "protocol": "socks",
 | 
			
		||||
            "settings": {
 | 
			
		||||
                "auth": "noauth",
 | 
			
		||||
                "udp": true,
 | 
			
		||||
                "ip": "127.0.0.1"
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "listen": "127.0.0.1",
 | 
			
		||||
            "port": "1081",
 | 
			
		||||
            "protocol": "http"
 | 
			
		||||
        }
 | 
			
		||||
    ],
 | 
			
		||||
    "outbounds": [
 | 
			
		||||
        {
 | 
			
		||||
            "protocol": "vless",
 | 
			
		||||
            "settings": {
 | 
			
		||||
                "vnext": [
 | 
			
		||||
                    {
 | 
			
		||||
                        "address": "1.2.3.4",
 | 
			
		||||
                        "port": 443,
 | 
			
		||||
                        "user": [
 | 
			
		||||
                            {
 | 
			
		||||
                                "id": "",
 | 
			
		||||
                                "encryption": "none",
 | 
			
		||||
                                "level": 0
 | 
			
		||||
                            }
 | 
			
		||||
                        ]
 | 
			
		||||
                    }
 | 
			
		||||
                ]
 | 
			
		||||
            },
 | 
			
		||||
            "streamSettings": {
 | 
			
		||||
                "network": "tcp",
 | 
			
		||||
                "security": "tls",
 | 
			
		||||
                "tlsSettings": {
 | 
			
		||||
                    "serverName": "example.domain",
 | 
			
		||||
                    "allowInsecure": false,
 | 
			
		||||
                    "alpn": [
 | 
			
		||||
                        "h2",
 | 
			
		||||
                        "http/1.1"
 | 
			
		||||
                    ],
 | 
			
		||||
                    "disableSessionResumption": true
 | 
			
		||||
                }
 | 
			
		||||
            },
 | 
			
		||||
            "tag": "proxy"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "protocol": "freedom",
 | 
			
		||||
            "tag": "direct"
 | 
			
		||||
        }
 | 
			
		||||
    ],
 | 
			
		||||
    "routing": {
 | 
			
		||||
        "domainStratedy": "AsIs",
 | 
			
		||||
        "rules": [
 | 
			
		||||
            {
 | 
			
		||||
                "type": "field",
 | 
			
		||||
                "ip": [
 | 
			
		||||
                    "geoip:private"
 | 
			
		||||
                ],
 | 
			
		||||
                "tag": "direct"
 | 
			
		||||
            }
 | 
			
		||||
        ]
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										55
									
								
								VLESS-TCP-TLS/config_server.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										55
									
								
								VLESS-TCP-TLS/config_server.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,55 @@
 | 
			
		||||
{
 | 
			
		||||
    "log": {
 | 
			
		||||
        "loglevel": "warning"
 | 
			
		||||
    },
 | 
			
		||||
    "inbounds": [
 | 
			
		||||
        {
 | 
			
		||||
            "listen": "0.0.0.0",
 | 
			
		||||
            "port": 443,
 | 
			
		||||
            "protocol": "vless",
 | 
			
		||||
            "settings": {
 | 
			
		||||
                "clients": [
 | 
			
		||||
                    {
 | 
			
		||||
                        "id": "",
 | 
			
		||||
                        "level": 0,
 | 
			
		||||
                        "email": "love@v2fly.org"
 | 
			
		||||
                    }
 | 
			
		||||
                ],
 | 
			
		||||
                "fallback": {
 | 
			
		||||
                    "addr": "127.0.0.1",
 | 
			
		||||
                    "port": 8001,
 | 
			
		||||
                    "xver": 0
 | 
			
		||||
                },
 | 
			
		||||
                "fallback_h2": {
 | 
			
		||||
                    "addr": "127.0.0.1",
 | 
			
		||||
                    "port": 8002,
 | 
			
		||||
                    "xver": 0
 | 
			
		||||
                },
 | 
			
		||||
                "decryption": "none"
 | 
			
		||||
            },
 | 
			
		||||
            "streamSettings": {
 | 
			
		||||
                "network": "tcp",
 | 
			
		||||
                "security": "tls",
 | 
			
		||||
                "tlsSettings": {
 | 
			
		||||
                    "serverName": "example.domain",
 | 
			
		||||
                    "alpn": [
 | 
			
		||||
                        "h2",
 | 
			
		||||
                        "http/1.1"
 | 
			
		||||
                    ],
 | 
			
		||||
                    "certificates": [
 | 
			
		||||
                        {
 | 
			
		||||
                            "certificateFile": "/path/to/certificate.crt",
 | 
			
		||||
                            "keyFile": "/path/to/key.key"
 | 
			
		||||
                        }
 | 
			
		||||
                    ]
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    ],
 | 
			
		||||
    "outbounds": [
 | 
			
		||||
        {
 | 
			
		||||
            "protocol": "freedom",
 | 
			
		||||
            "tag": "direct"
 | 
			
		||||
        }
 | 
			
		||||
    ]
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										68
									
								
								VLESS-TCP-TLS/nginx.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										68
									
								
								VLESS-TCP-TLS/nginx.conf
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,68 @@
 | 
			
		||||
worker_processes auto;
 | 
			
		||||
worker_cpu_affinity auto;
 | 
			
		||||
worker_rlimit_nofile 65535;
 | 
			
		||||
 | 
			
		||||
error_log logs/error.log warn;
 | 
			
		||||
 | 
			
		||||
pid logs/nginx.pid;;
 | 
			
		||||
 | 
			
		||||
events {
 | 
			
		||||
    worker_connections 1024;
 | 
			
		||||
    use epoll;
 | 
			
		||||
    multi_accept on;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
http {
 | 
			
		||||
 | 
			
		||||
    include mime.types;
 | 
			
		||||
    default_type application/octet-stream;
 | 
			
		||||
 | 
			
		||||
    index    index.html index.htm
 | 
			
		||||
 | 
			
		||||
    log_format   main '$remote_addr - $remote_user [$time_local]  $status '
 | 
			
		||||
    '"$request" $body_bytes_sent "$http_referer" '
 | 
			
		||||
    '"$http_user_agent" "$http_x_forwarded_for"';
 | 
			
		||||
 | 
			
		||||
    sendfile on;
 | 
			
		||||
    
 | 
			
		||||
    #tcp_nopush     on;
 | 
			
		||||
 | 
			
		||||
    #keepalive_timeout  0;
 | 
			
		||||
    keepalive_timeout 65;
 | 
			
		||||
 | 
			
		||||
    #gzip  on;
 | 
			
		||||
 | 
			
		||||
    server {
 | 
			
		||||
        listen 127.0.0.1:8001;
 | 
			
		||||
        server_name yourserver_8001.com;
 | 
			
		||||
 | 
			
		||||
        charset utf-8;
 | 
			
		||||
 | 
			
		||||
        access_log logs/yourserver_8001.access.log main;
 | 
			
		||||
 | 
			
		||||
        location / {
 | 
			
		||||
            root /var/www/html;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        error_page  404              /404.html;
 | 
			
		||||
 | 
			
		||||
        error_page 500 502 503 504 /50x.html;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    server {
 | 
			
		||||
        listen 127.0.0.1:8002 http2;
 | 
			
		||||
        server_name yourserver_8002.com;
 | 
			
		||||
 | 
			
		||||
        charset utf-8;
 | 
			
		||||
 | 
			
		||||
        access_log logs/yourserver_8002.access.log main;
 | 
			
		||||
 | 
			
		||||
        location / {
 | 
			
		||||
            root /var/www/html;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        error_page  404              /404.html;
 | 
			
		||||
 | 
			
		||||
        error_page 500 502 503 504 /50x.html;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user