配置
了解如何配置您的 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"选项
| 选项 | 类型 | 描述 |
|---|---|---|
port | number | 监听端口 |
max_connections | number | 最大同时连接数 |
tls | boolean | 启用 TLS 加密 |