initial: ZeroTier-like P2P mesh VPN server with multi-tenant Web UI

This commit is contained in:
xieyao
2026-06-17 03:50:23 +08:00
commit ee5f036325
74 changed files with 9517 additions and 0 deletions

55
config.yaml Normal file
View File

@@ -0,0 +1,55 @@
server:
port: 10001
database:
driver: sqlite
auto_migrate: true
init_data: true
sqlite:
path: ./data/zeromesh.db
mysql:
host: 127.0.0.1
port: 3306
username: root
password: ""
database: zeromesh
charset: utf8mb4
max_idle_conns: 10
max_open_conns: 100
jwt:
secret: "change-me-in-production"
expire_hours: 720
controller:
listen_port: 19993
public_endpoint: ""
planet_id: ""
agent:
controller_url: "http://127.0.0.1:10001"
listen_port: 0
tap_name: "zeromesh0"
tap_mtu: 2800
network_id: 1
psk: "default-psk-change-me"
relay:
listen_port: 3478
realm: "zeromesh"
cors:
allowed_origins:
- "*"
rate_limit:
enabled: true
requests_per_second: 10
burst_size: 20
logging:
level: info
format: text
env:
name: dev