配置

了解如何配置您的 Mesh 中继服务器。

配置文件

Configuration file location: ~/.mesh/config.yaml

relay:
  port: 3030
  max_connections: 1000
  bind_address: "0.0.0.0"

logging:
  level: "info"
  file: "/var/log/mesh/relay.log"

security:
  tls: true
  cert_file: "/etc/mesh/tls.crt"
  key_file: "/etc/mesh/tls.key"

选项

选项类型描述
portnumber监听端口
max_connectionsnumber最大同时连接数
tlsboolean启用 TLS 加密