Files
v2ray_simple/examples/multi_samePort.server.toml
e1732a364fed dfebe3f707 修订代码;将fallback的from从string改为[]string
这样可以支持从多个listen fallback到相同的目标,又不至于使用默认回落, 更灵活.
2022-05-06 22:48:15 +08:00

60 lines
1.2 KiB
TOML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 本文件先监听 vlesss然后 各种回落
[app]
default_uuid = "a684455c-b14f-11ea-bf0d-42010aaa0003"
[[listen]]
tag = "vlesstls"
protocol = "vlesss"
ip = "0.0.0.0"
host = "your-domain-name.com"
port = 8443
cert = "cert.pem"
key = "cert.key"
[[fallback]]
from = ["vlesstls"]
alpn = ["http/1.1"]
dest = "@vlessws" # dest 也可以写成 这种形式, 直接匹配tag, 可防止笔误。
[[fallback]]
from = ["vlesstls"]
alpn = ["h2"]
dest = "@vlessgrpc"
[[listen]]
tag = "vlessws"
protocol = "vless"
network = "unix"
host = "/dev/shm/ws.sock" # 别忘了加双引号
advancedLayer = "ws"
path = "/simple"
[[fallback]]
from = ["vlessws"]
dest = "/dev/shm/h1.sock" # 回落到 nginx的 h1 服务你要配置nginx监听这个文件
[[listen]]
tag = "vlessgrpc"
protocol = "vless"
network = "unix" # 监听unix domain socket 必须要 给出 network 为 unix
host = "/dev/shm/grpc.sock" # 你必须要保证 /dev/shm路径存在且你具有写权限才行。
advancedLayer = "grpc"
path = "very"
[[fallback]]
from = ["vlessgrpc"]
dest = "/dev/shm/h2c.sock" # 回落到 nginx的 h2c 服务你要配置nginx监听这个文件
[[fallback]]
dest = 80