dsh-plugin-remote-access: DSH Remote Access (Restricted to Network Range)

Preface

DeepSeek Harness (DSH) provides a web-based operation interface. Local access is typically restricted to localhost. The dsh-plugin-remote-access plugin resolves this issue by allowing the DSH Web GUI to be exposed to a selected CIDR range (defaulting to Tailscale’s 100.64.0.0/10), enabling access via mobile phones or remote machines.

Plugin Overview

  • Name: dsh-plugin-remote-access
  • Author: Mzy123l
  • License: MIT
  • Core Value: Exposes the local DSH Web GUI to a selected CIDR range (e.g., Tailscale) on DSH 0.2.1+. Supports optional numeric access codes, a mobile layout exclusively for remote pages, mobile-side resource caching, mobile-side Enter key line-breaking, and appearance/font preferences exclusively for remote pages. Configuration exists only in each Windows user’s $DSH_HOME/remote-access-config (the plugin does not read or write shared profiles); when the port is busy, it automatically falls back to a free port and remembers it.

Core Features

  1. Network Range Exposure: Exposes the DSH GUI to a selected CIDR range (default Tailscale 100.64.0.0/10).
  2. Secure Listening: Only listens on allowed addresses; returns 403 for other addresses.
  3. No Hardcoding: Network range, listening address, port, upstream, and file paths are all configurable items with no hardcoding.
  4. Access Methods: Provides two access methods: copying a token URL or setting a numeric password (30-day password-free access after one-time input).
  5. Remote UI Layout: Supports Mobile/Desktop/Auto remote UI layout options.
  6. Remote-Only Settings: UI settings apply only to remote pages; appearance and font size affect only remote pages.
  7. DSH 0.2.1 Adaptation: Automatically reads source, system port, and HTTPS; compatible with DSH 0.2.1+.
  8. Hot Reload: Supports hot reloading of settings pages without restarting DSH.
  9. Configuration Management: Configuration source is $DSH_HOME/remote-access-config.json (since v1.5.0, single-user file only).
  10. Port Auto-Fallback: When the port is busy, automatically falls back to a free port and remembers it.

Installation and Enablement

  1. Ensure your DSH version meets the requirements.
  2. Execute the installation command.

Installation Command:

dsh plugin --profile desktop add dsh-plugin-remote-access

Version Requirements:
* DSH 0.2.1+ (Plugin version 1.4.0+).
* DSH 0.2.0 requires plugin version 1.3.8.

Configuration and Access

Plugin configuration is stored in $DSH_HOME/remote-access-config. Parameter changes are made via the settings page, and hot reloading occurs without restarting DSH after saving.

Access Methods:
* Token URL: Copy and paste into a browser.
* Numeric Password: Once set, inputting it once grants password-free access for 30 days.

Applicable Scenarios and Notes

  • Configuration Location: Configuration exists only in each Windows user’s $DSH_HOME/remote-access-config. The plugin does not read or write shared profiles.
  • Port Conflict: When the port is busy, it automatically falls back to a free port and remembers it.
  • Version Compatibility: Ensure the DSH version matches (0.2.1+).
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye