gitsang/dsh-gateway
A secure installable gateway in front of the dsh web UI: password login, reverse proxy for HTTP and WebSocket, dsh session bridging, and PWA delivery.
It puts an authentication boundary in front of a dsh web instance that was designed for localhost, without patching dsh: password sessions, reverse proxying of authenticated HTTP and WebSocket traffic, loopback identity for upstream plugins, and dsh session recovery. Because the same layer serves the page as an installable PWA with service-worker caching, a phone or tablet can keep it on a home screen. The README is explicit that 'gateway' describes owning the whole browser-facing access layer, not just adding a login form.
Install
dsh plugin --profile web add github:gitsang/dsh-gatewayThe GitHub line from the README's install instructions. The dsh web server itself is left untouched: the bundle adds one row to the web profile, and that gateway process starts beside dsh web. The package, bundle row, environment prefix, session cookie and data directory all use the same dsh-gateway / gateway naming.
Compatibility
First visit shows a set-password form because no password is stored yet; the password is bcrypt-hashed into the gateway profile's auth.json, and a successful login exchanges it for a random 256-bit session token kept server-side and delivered as a dsh_gateway_session cookie with rolling 24-hour expiry. The proxy also satisfies dsh's own browser-session gate by forwarding requests as the loopback authority and redeeming the launch token dsh issues on GET /, so the password page is the only login you see. PWA assets, service-worker caching and Host-mode injection are part of the same layer.
Details
- Repo: gitsang/dsh-gateway
- Category: Infrastructure & Deployment
- Stars: 0
- Version: installed from the repo's default branch
Alternatives
lament-z/dsh-bridge-gateway · xiaohanqing/dsh-relay · ouyinai/dsh-tray