Files
v2ray_simple/examples/quic.server.toml
2022-12-27 19:47:14 +08:00

47 lines
2.2 KiB
TOML
Raw Permalink 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.
[[listen]]
protocol = "vlesss"
uuid = "a684455c-b14f-11ea-bf0d-42010aaa0003"
host = "0.0.0.0"
port = 4434
insecure = true
#fallback = "udp://127.0.0.1:80" #试图回落到 nginx的 无tls 的 udp的 http3 服务端口 (quic目前是做不到的, 没办法, 除非能出一个 quicSimple; 这里只是吊一下胃口)
cert = "cert.pem"
key = "cert.key"
adv = "quic"
#ca = "ca.crt" # 可选,用于客户端证书 的验证
# network = udp # 只要 advancedLayer 设成了quicnetwork 就会自动被配置为udp所以不需手动指定udp
#alpn = ["asdfsadf"] #如果指定alpn则客户端和服务端都要指定而且要相同
#early = true # 开启 quic 0-rtt功能。注意, 两端都要开启,且 v2ray/xray没有这个功能.
# hy_manual的意思是手动挡, 注意, 你要想提高下载速度,需要手动调节服务端的挡;
# 你也可以给 手动挡设置一个初始值,这样可以省着每次运行都要先调; 范围是 0.21.5,值越小则 速度可能越快, 也不建议太小,自己试, 实际倍率是 1.5/rate, 这里设为 0.5 就是 3倍率.
#extra = { congestion_control = "hy", mbps = 100, hy_manual = true , hy_manual_initial_rate = 0.5}
#extra = { congestion_control = "hy", mbps = 100, hy_manual = true }
#extra = { congestion_control = "hy", mbps = 3000 }
# maxStreamsInOneConn, 含义是 "一个连接中最大并发子连接数", 默认为4. 该值越大, 对浏览网页的延迟降低越多, 特征越隐蔽;
# 但是对下载、测速等情况的负优化越大. 鱼和熊掌不可兼得. 自行调节. 如果调为1, 就相当于 单路单用。
# 这个配置只能在服务端配置,客户端自动适配。
#
# 另外v2ray/xray 是没有这个配置的,它们路数固定为 32路太大了很影响性能的。
# 如果你非要和v2ray一样那你就设成32试试肯定速度很糟糕。
#
#extra = { maxStreamsInOneConn = 6 }
#另外一个注意点就是,本示例 提供了 多行 extra的示例而实际上你只能给出一行不允许 给出好几行 key一样的这是toml的规则。
# 你要是 想应用多个 extra配置那你就 把 多个 合并成一个 进行 书写
[[dial]]
protocol = "direct"