mirror of
https://github.com/XTLS/Xray-examples.git
synced 2025-11-02 10:55:33 +08:00
Add files via upload
This commit is contained in:
17
VLESS-TCP-TLS (minimal by rprx)/README.md
Normal file
17
VLESS-TCP-TLS (minimal by rprx)/README.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# VLESS over TCP with TLS + 回落(最简配置)
|
||||
|
||||
你需要有一个解析到服务器 IP 的域名,并且申请了证书,比如 let's encrypt
|
||||
|
||||
你还需要一个 Nginx:(或者 Caddy 等任一 Web 服务器)
|
||||
|
||||
1. 用系统自带的包管理器安装 nginx,具体方法请 Google
|
||||
2. nginx 的默认配置就是监听 80 端口,无需修改
|
||||
3. 可选:找到并替换掉 nginx 自带的 index.html 等文件
|
||||
4. 执行 `systemctl enable nginx` 设置开机自启
|
||||
5. 执行 `systemctl start nginx` 启动 nginx
|
||||
|
||||
若服务器开启了防火墙或 VPS 有安全组,记得放行 TCP/80、443 端口
|
||||
|
||||
---
|
||||
|
||||
接下来,你可以了解 [建站配置](<../VLESS-TCP-TLS%20(maximal%20by%20rprx)>)(回落高级用法)、尝试 [进阶配置](<../VLESS-TCP-TLS-WS%20(recommended)>)(分流 to WebSocket)
|
||||
39
VLESS-TCP-TLS (minimal by rprx)/config_client.json
Normal file
39
VLESS-TCP-TLS (minimal by rprx)/config_client.json
Normal file
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"log": {
|
||||
"loglevel": "warning"
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"port": 10800,
|
||||
"listen": "127.0.0.1",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
"udp": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
"vnext": [
|
||||
{
|
||||
"address": "example.com", // 换成你的域名
|
||||
"port": 443,
|
||||
"users": [
|
||||
{
|
||||
"id": "", // 填写你的 UUID
|
||||
"encryption": "none",
|
||||
"level": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "tcp",
|
||||
"security": "tls"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
46
VLESS-TCP-TLS (minimal by rprx)/config_server.json
Normal file
46
VLESS-TCP-TLS (minimal by rprx)/config_server.json
Normal file
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"log": {
|
||||
"loglevel": "warning"
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"port": 443,
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"id": "", // 填写你的 UUID
|
||||
"level": 0,
|
||||
"email": "love@example.com"
|
||||
}
|
||||
],
|
||||
"decryption": "none",
|
||||
"fallbacks": [
|
||||
{
|
||||
"dest": 80
|
||||
}
|
||||
]
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "tcp",
|
||||
"security": "tls",
|
||||
"tlsSettings": {
|
||||
"alpn": [
|
||||
"http/1.1"
|
||||
],
|
||||
"certificates": [
|
||||
{
|
||||
"certificateFile": "/path/to/fullchain.crt", // 换成你的证书,绝对路径
|
||||
"keyFile": "/path/to/private.key" // 换成你的私钥,绝对路径
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
"protocol": "freedom"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user