@lukstei/dsh-client-pwa 0.2.2-rc.5.10 → 0.2.2-rc.5.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -10
- package/cordis.patch.yml +1 -16
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,20 +18,47 @@ Makes DSH installable as a PWA and lets trusted reverse-proxy requests log in wi
|
|
|
18
18
|
<a id="use-this-package"></a>
|
|
19
19
|
## Use this package
|
|
20
20
|
|
|
21
|
-
Host plugin. Requires `webServer` and `connection`.
|
|
21
|
+
Host plugin. Requires `webServer` and `connection`. The shipped bundle patch ([cordis.patch.yml](cordis.patch.yml)) leaves `config` empty, so DSH serves the PWA manifest and icons while keeping standard token login active:
|
|
22
22
|
|
|
23
23
|
```yaml
|
|
24
24
|
- insert:
|
|
25
25
|
- id: client-pwa
|
|
26
26
|
name: '@lukstei/dsh-client-pwa'
|
|
27
|
-
config:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
27
|
+
config: {}
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Example 1: Localhost PWA
|
|
31
|
+
|
|
32
|
+
Install DSH as a desktop app on `localhost` without changing auth. Customize manifest metadata only if you want different app names or colors:
|
|
33
|
+
|
|
34
|
+
```yaml
|
|
35
|
+
- id: client-pwa
|
|
36
|
+
config:
|
|
37
|
+
pwa:
|
|
38
|
+
name: 'DeepSeek Harness'
|
|
39
|
+
shortName: 'DSH'
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Example 2: Tailscale Serve (reverse-proxy login)
|
|
43
|
+
|
|
44
|
+
Expose local DSH (`localhost:3080`) on your tailnet as an HTTPS service:
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
tailscale serve --service=svc:dsh --https=443 http://localhost:3080
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Tailscale terminates TLS, sets `tailscale-user-login`, and proxies to DSH over loopback (`127.0.0.1` / `::1`). Override `client-pwa` in your profile `cordis.patch.yml` to trust that proxy:
|
|
51
|
+
|
|
52
|
+
```yaml
|
|
53
|
+
- id: client-pwa
|
|
54
|
+
config:
|
|
55
|
+
auth:
|
|
56
|
+
userHeader: 'tailscale-user-login'
|
|
57
|
+
trustedCidrs: ['127.0.0.1', '::1', '100.64.0.0/10', 'fd7a:115c:a1e0::/48']
|
|
58
|
+
authRoutes: ['/login', '/auth/tailscale', '/auto-login']
|
|
59
|
+
loginRedirectPath: '/login'
|
|
60
|
+
pwa:
|
|
61
|
+
pathPrefixes: ['/tsctl'] # optional: only needed when mounted under a subpath
|
|
35
62
|
```
|
|
36
63
|
|
|
37
64
|
### Config: `auth`
|
|
@@ -69,7 +96,7 @@ Server-side only (no client entry). `inject`: `webServer`, `connection`.
|
|
|
69
96
|
|
|
70
97
|
Non-plugin requirement: a reverse proxy that sets the configured `auth.userHeader` and connects from `auth.trustedCidrs`; otherwise trusted login never fires.
|
|
71
98
|
|
|
72
|
-
The
|
|
99
|
+
The shipped patch leaves auth unconfigured, so trusted-proxy login stays off until you configure `auth.userHeader` or `auth.trustedCidrs`. Used by: nothing.
|
|
73
100
|
|
|
74
101
|
### Behavior
|
|
75
102
|
|
package/cordis.patch.yml
CHANGED
|
@@ -1,19 +1,4 @@
|
|
|
1
1
|
- insert:
|
|
2
2
|
- id: client-pwa
|
|
3
3
|
name: '@lukstei/dsh-client-pwa'
|
|
4
|
-
config:
|
|
5
|
-
auth:
|
|
6
|
-
userHeader: 'tailscale-user-login'
|
|
7
|
-
trustedCidrs:
|
|
8
|
-
- '127.0.0.1'
|
|
9
|
-
- '::1'
|
|
10
|
-
- '100.64.0.0/10'
|
|
11
|
-
- 'fd7a:115c:a1e0::/48'
|
|
12
|
-
authRoutes:
|
|
13
|
-
- '/login'
|
|
14
|
-
- '/auth/tailscale'
|
|
15
|
-
- '/auto-login'
|
|
16
|
-
loginRedirectPath: '/login'
|
|
17
|
-
pwa:
|
|
18
|
-
pathPrefixes:
|
|
19
|
-
- '/tsctl'
|
|
4
|
+
config: {}
|