1.0.1 • Published 12 months ago

@d8d-localtunnel/server v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

@d8d-localtunnel/server

D8D LocalTunnel 服务端 - 隧道服务器

安装

npm install -g @d8d-localtunnel/server

使用

d8d-lt-server --port 23908 --domain 23908.dev.d8dcloud.com --secure https --tunnel-port 7002 --max-sockets 10

参数说明

  • --port: HTTP 服务端口
  • --domain: 域名
  • --secure: 使用 HTTPS
  • --tunnel-port: TCP 隧道端口
  • --max-sockets: 最大连接数

开发

# 安装依赖
npm install
# 开发模式
npm run dev
# 构建
npm run build
# 测试
npm run test

API

状态检查

GET /api/status

返回服务器状态信息。

隧道状态

GET /api/tunnels/:id/status

返回特定隧道的状态信息。

License

MIT

1.0.1

12 months ago

1.0.0

12 months ago