Caddyfileit.lab-terminal.tech { # Blog handle /blog/* { uri strip_prefix /blog reverse_proxy localhost:xxx } # ntfy handle /notify/* { uri strip_prefix /notify reverse_proxy localhost:xxx } # APRS API handle /aprs/* { uri strip_prefix /aprs reverse_proxy localhost:xxx } # Trilium handle / { reverse_proxy localhost:xxx } }
https://docs.zerotier.com/quickstart/
主要是用来组虚拟局域网跟朋友联机打游戏的,只需要下载 对应平台的客户端。
添加NetworkID就可加入了。
我部署的是Moon Server,也可以部署Planet Server 但是并不是很推荐,
这个方案比内网穿透好就好在是有很多中继节点的,Zerotier会就近选择最最低延迟的节点,
我跟朋友测试下来延迟大概在8ms(同省份)。