dsh-plugin-loopback-trust: Restore Host Persistence on the Settings Page in a Reverse Proxy Deployment

Introduction

DeepSeek Harness (DSH) introduced a loopback check in version 0.1.7, restricting settings page persistence to 127.0.0.1, localhost, or ::1. When DSH Web is placed behind a reverse proxy (such as Nginx) and accessed via a domain name, the page is classified as unprivileged. Consequently, settings silently degrade to in-memory mode, rendering the settings page unavailable.

What is dsh-plugin-loopback-trust

This is a client-side plugin maintained by 6mt, designed to restore DSH Web’s Host persistence settings in reverse proxy environments. By marking the page connection as host-owning, it ensures the settings page remains functional under non-loopback domains.

Core Features

  • Mark Host Ownership: Marks the page connection as host-owning to maintain Host persistence for the settings page.
  • Priority Execution: Located in the boot prefetch tier, running before client plugins.
  • Lightweight Implementation: Zero dependencies, no host-side code, implemented purely in client-side JavaScript.
  • Version Compatibility: Supports dsh >=0.1.7 <0.3.

Installation and Activation

  1. Run the installation command:
    dsh plugin --profile web add 6mt/dsh-plugin-loopback-trust
  1. Restart dsh web (the new bundle must be started).
  2. Hard refresh the page in your browser.

Once enabled, accessing Settings -> Models via a domain name should load settings normally.

Use Cases and Notes

  • Use Cases: For DSH Web deployments behind a reverse proxy where domain-based access is required and Host persistence settings need to be saved.
  • Trust Statement: This acts as a trust statement; ensure your reverse proxy has the expected access controls.
  • Security Boundary: Does not touch the server-side /api Host fence and contains no telemetry or data exfiltration.

Conclusion

This plugin is implemented entirely in client-side JavaScript with no external dependencies. Related resources can be found on GitHub or the Community Catalog.

羽毛球分组比赛记分
小程序二维码

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

Xiaoye