yin52133/dsh-luban--packages-dsh-luban-auth0

@yin52133/dsh-luban-auth

为 DSH 的所有 HTTP、SSE 和 WebSocket 路由提供局域网(LAN)身份验证的边车插件。

AI 分析

核心用途是为局域网内暴露的 DSH 服务提供安全认证屏障。适合在多设备或团队局域网环境中使用 DSH 的用户。需要将 DSH 绑定至回环地址,仅暴露此安全边车端口。

包名
@yin52133/dsh-luban-auth
版本
0.1.1
许可证
MIT
最近更新
2026年9月1日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:yin52133/dsh-luban#fd42aad0a6c5628a3bee24796f0caba131fb0252&path:packages/dsh-luban-auth

Configuration

- insert:
    - id: luban-auth
      name: @yin52133/dsh-luban-auth
      config:
        host: 0.0.0.0
        port: 42600
        upstream: http://127.0.0.1:3080
        sessionTtlHours: 72
        usersFile: ~/.dsh/luban/auth/users.json

LAN firewall

Expose the sidecar only to the client address range of the actual LAN. The following CIDR matches one example network; it is not a universal default: