FairyScript/dsh-arbitrary-host

FairyScript★ 0JavaScriptLast synced: 2026-08-15

Open on GitHub

README excerpt

dsh web — arbitrary --host (non-invasive bundle) dsh web originally restricts the bind host: 1. dsh-web-app/lib/startup.js — rejects --host 0.0.0.0 outright (usage error). 2. dsh-host-webserver/lib/index.js — the webServer config schema only accepts the literals 127.0.0.1 or 0.0.0.0 , so no other host (e.g. a concrete LAN IP) can be configured. 3. dsh-web-app/lib/index.js ( resolveLanTrust ) — the /api browser-trust fence auto-derives trusted authorities only for the 0.0.0.0 bind. This bundle removes those restrictions: any --host value is accepted verbatim and handed to node:http server.listen , and the app refuses to load from a non-secure browser origin instead of booting half-broken. How it is wired (zero modification of shipped files) The global dsh installation is untouched (wherever it lives — the installer locates it dynamically, see below). Instead, a single bundle package plugin/ is registered as an extra bundle layer of the web profile through the official mechanism: That runs pnpm add in the profile and reconcilePlugins appends dsh-arbitrary-host to dsh.profile.bundles (now [@deepseek-ai/dsh-base, @deepseek-ai/dsh-web-app, dsh-arbitrary-host] ). During local development…

View full README on GitHub →
Tools / Devdsh-plugin

Category