@geekmidas/edge 0.0.0-stage → 10.0.0-alpha.182
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 +14 -2
- package/dist/certificates/local.cjs +393 -0
- package/dist/certificates/local.cjs.map +1 -0
- package/dist/certificates/local.d.cts +92 -0
- package/dist/certificates/local.d.cts.map +1 -0
- package/dist/certificates/local.d.mts +92 -0
- package/dist/certificates/local.d.mts.map +1 -0
- package/dist/certificates/local.mjs +361 -0
- package/dist/certificates/local.mjs.map +1 -0
- package/dist/compose-BHWyQvsD.cjs +22 -0
- package/dist/compose-BHWyQvsD.cjs.map +1 -0
- package/dist/compose-CcNlj65h.mjs +17 -0
- package/dist/compose-CcNlj65h.mjs.map +1 -0
- package/dist/dns/godaddy/index.cjs +448 -0
- package/dist/dns/godaddy/index.cjs.map +1 -0
- package/dist/dns/godaddy/index.d.cts +164 -0
- package/dist/dns/godaddy/index.d.cts.map +1 -0
- package/dist/dns/godaddy/index.d.mts +164 -0
- package/dist/dns/godaddy/index.d.mts.map +1 -0
- package/dist/dns/godaddy/index.mjs +435 -0
- package/dist/dns/godaddy/index.mjs.map +1 -0
- package/dist/dns/hostinger/index.cjs +252 -0
- package/dist/dns/hostinger/index.cjs.map +1 -0
- package/dist/dns/hostinger/index.d.cts +143 -0
- package/dist/dns/hostinger/index.d.cts.map +1 -0
- package/dist/dns/hostinger/index.d.mts +143 -0
- package/dist/dns/hostinger/index.d.mts.map +1 -0
- package/dist/dns/hostinger/index.mjs +249 -0
- package/dist/dns/hostinger/index.mjs.map +1 -0
- package/dist/dns/index.cjs +76 -0
- package/dist/dns/index.cjs.map +1 -0
- package/dist/dns/index.d.cts +144 -0
- package/dist/dns/index.d.cts.map +1 -0
- package/dist/dns/index.d.mts +144 -0
- package/dist/dns/index.d.mts.map +1 -0
- package/dist/dns/index.mjs +71 -0
- package/dist/dns/index.mjs.map +1 -0
- package/dist/dns/route53.cjs +210 -0
- package/dist/dns/route53.cjs.map +1 -0
- package/dist/dns/route53.d.cts +45 -0
- package/dist/dns/route53.d.cts.map +1 -0
- package/dist/dns/route53.d.mts +45 -0
- package/dist/dns/route53.d.mts.map +1 -0
- package/dist/dns/route53.mjs +209 -0
- package/dist/dns/route53.mjs.map +1 -0
- package/dist/errors-CO33_TDV.mjs +16 -0
- package/dist/errors-CO33_TDV.mjs.map +1 -0
- package/dist/errors-DBZfelEN.d.cts +13 -0
- package/dist/errors-DBZfelEN.d.cts.map +1 -0
- package/dist/errors-DBZfelEN.d.mts +13 -0
- package/dist/errors-DBZfelEN.d.mts.map +1 -0
- package/dist/errors-DlRLQOyZ.cjs +27 -0
- package/dist/errors-DlRLQOyZ.cjs.map +1 -0
- package/dist/index.cjs +6 -0
- package/dist/index.d.cts +15 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +15 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +3 -0
- package/dist/proxy/caddy.cjs +167 -0
- package/dist/proxy/caddy.cjs.map +1 -0
- package/dist/proxy/caddy.d.cts +35 -0
- package/dist/proxy/caddy.d.cts.map +1 -0
- package/dist/proxy/caddy.d.mts +35 -0
- package/dist/proxy/caddy.d.mts.map +1 -0
- package/dist/proxy/caddy.mjs +164 -0
- package/dist/proxy/caddy.mjs.map +1 -0
- package/dist/proxy/traefik.cjs +460 -0
- package/dist/proxy/traefik.cjs.map +1 -0
- package/dist/proxy/traefik.d.cts +129 -0
- package/dist/proxy/traefik.d.cts.map +1 -0
- package/dist/proxy/traefik.d.mts +129 -0
- package/dist/proxy/traefik.d.mts.map +1 -0
- package/dist/proxy/traefik.mjs +437 -0
- package/dist/proxy/traefik.mjs.map +1 -0
- package/dist/routes/index.cjs +49 -0
- package/dist/routes/index.cjs.map +1 -0
- package/dist/routes/index.d.cts +205 -0
- package/dist/routes/index.d.cts.map +1 -0
- package/dist/routes/index.d.mts +205 -0
- package/dist/routes/index.d.mts.map +1 -0
- package/dist/routes/index.mjs +44 -0
- package/dist/routes/index.mjs.map +1 -0
- package/package.json +131 -3
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
//#region src/routes/index.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* What a stack's edge serves, as data: one route per public host, and the
|
|
4
|
+
* service behind it. Computed once by the stack, then rendered by whichever
|
|
5
|
+
* proxy the stage runs — a Caddyfile for the stack's own Caddy, or a dynamic
|
|
6
|
+
* config file for the server's shared Traefik — so the two never drift.
|
|
7
|
+
*
|
|
8
|
+
* Pure.
|
|
9
|
+
*/
|
|
10
|
+
/** A service of the stack that a route sends to. */
|
|
11
|
+
export interface Upstream {
|
|
12
|
+
/** Its compose service name — `api`, `minio`. */
|
|
13
|
+
service: string;
|
|
14
|
+
/** The port it listens on, inside the network. */
|
|
15
|
+
port: number;
|
|
16
|
+
}
|
|
17
|
+
/** One public host and what answers it. */
|
|
18
|
+
export interface EdgeRoute {
|
|
19
|
+
/**
|
|
20
|
+
* Its name within the stack — unique there, and what a renderer names
|
|
21
|
+
* its routers and middlewares after: `api`, `files-uploads`.
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/** e.g. `api.example.com` — the canonical host, its `<ID>_URL`'s. */
|
|
25
|
+
host: string;
|
|
26
|
+
/**
|
|
27
|
+
* More hosts answered exactly as `host` is — a construct's `aliases`:
|
|
28
|
+
* every check, handler and upstream of the route holds on each of them.
|
|
29
|
+
*/
|
|
30
|
+
aliases?: readonly string[];
|
|
31
|
+
/**
|
|
32
|
+
* Hosts answered with a permanent redirect to `to`, the canonical origin
|
|
33
|
+
* (`https://example.com`, with the edge's port where it is not 443), path
|
|
34
|
+
* and query kept — a site's `redirects`. Nothing is proxied for them.
|
|
35
|
+
*/
|
|
36
|
+
redirects?: {
|
|
37
|
+
hosts: readonly string[];
|
|
38
|
+
to: string;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Where requests go. One today; a release that swaps containers without
|
|
42
|
+
* downtime routes to the old and the new while it does.
|
|
43
|
+
*/
|
|
44
|
+
upstreams: readonly Upstream[];
|
|
45
|
+
/**
|
|
46
|
+
* Never buffer the response: a streamed one — server-sent events, a
|
|
47
|
+
* Next.js RSC payload — reaches the client as each chunk is written.
|
|
48
|
+
*/
|
|
49
|
+
streaming: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* A path prefix added before the request is sent, with the upstream's own
|
|
52
|
+
* address as `Host`: a bucket, served at a host of its own, is a prefix
|
|
53
|
+
* on MinIO, which routes and signs on the Host header.
|
|
54
|
+
*/
|
|
55
|
+
prefix?: string;
|
|
56
|
+
/**
|
|
57
|
+
* The client addresses (IPs or CIDRs) it answers; every other is refused
|
|
58
|
+
* with 403, before the request reaches the upstream. Absent, it answers
|
|
59
|
+
* everyone. Matched against the peer the proxy sees, never a header a
|
|
60
|
+
* client could set.
|
|
61
|
+
*/
|
|
62
|
+
allow?: readonly string[];
|
|
63
|
+
/**
|
|
64
|
+
* The only paths it answers, matched exactly; every other is refused at
|
|
65
|
+
* the edge, before the request reaches the upstream. Absent, it answers
|
|
66
|
+
* every path. A worker is reached only on the routes SNS pushes to.
|
|
67
|
+
*/
|
|
68
|
+
paths?: readonly string[];
|
|
69
|
+
/**
|
|
70
|
+
* Path prefixes it answers besides `paths` — `/i/` admits everything
|
|
71
|
+
* under it. Together they are the whole allowlist; absent both, it
|
|
72
|
+
* answers every path. A processor unit's own host is reached only on its
|
|
73
|
+
* processors' prefixes.
|
|
74
|
+
*/
|
|
75
|
+
prefixes?: readonly string[];
|
|
76
|
+
/**
|
|
77
|
+
* A header every request must carry, with exactly this value; any other
|
|
78
|
+
* is refused at the edge. What a CDN adds to reach its origin, so the
|
|
79
|
+
* origin's public host cannot be called around the CDN.
|
|
80
|
+
*/
|
|
81
|
+
requireHeader?: {
|
|
82
|
+
name: string;
|
|
83
|
+
value: string;
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* Path prefixes on this host sent to another upstream, ahead of the
|
|
87
|
+
* route's own: a file server's processor patterns, to its processor unit,
|
|
88
|
+
* while every other path is the bucket. Served at the path asked for —
|
|
89
|
+
* no `prefix` — and never combined with `allow`, `paths`, `prefixes` or
|
|
90
|
+
* `requireHeader`, which would have to hold for every handler too.
|
|
91
|
+
*/
|
|
92
|
+
handlers?: readonly EdgeHandler[];
|
|
93
|
+
/**
|
|
94
|
+
* The login every request must carry — HTTP basic auth, asked for by the
|
|
95
|
+
* edge before anything reaches the upstream. Absent, it asks for none.
|
|
96
|
+
* The password's bcrypt hash, never the password.
|
|
97
|
+
*/
|
|
98
|
+
auth?: {
|
|
99
|
+
user: string;
|
|
100
|
+
hash: string;
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* What one client address may ask of it — a WebSocket surface's
|
|
104
|
+
* handshakes a minute and open sockets — refused with 429 at the edge.
|
|
105
|
+
* Rendered for Traefik (`rateLimit`, `inFlightReq`); Caddy ships no rate
|
|
106
|
+
* limiter, so behind it the surface's own count is what holds.
|
|
107
|
+
*/
|
|
108
|
+
limits?: {
|
|
109
|
+
handshakesPerMinute?: number;
|
|
110
|
+
connectionsPerIp?: number;
|
|
111
|
+
};
|
|
112
|
+
/** The path the upstream answers its health on — `/health`, `/`. */
|
|
113
|
+
health?: string;
|
|
114
|
+
/**
|
|
115
|
+
* For a wildcard site's route, whose `host` is `*.<domain>`: every one
|
|
116
|
+
* label under the domain that no other route answers, and how its
|
|
117
|
+
* certificate is had. Named hosts always win over it.
|
|
118
|
+
*/
|
|
119
|
+
wildcard?: EdgeWildcard;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Every host a route answers on — its own, its aliases and its redirects —
|
|
123
|
+
* in that order: what DNS, certificates and the edge's claims cover.
|
|
124
|
+
*/
|
|
125
|
+
export declare function routeHosts(route: EdgeRoute): string[];
|
|
126
|
+
/** How a `*.<domain>` route is matched and certified. */
|
|
127
|
+
export interface EdgeWildcard {
|
|
128
|
+
/** The domain under the `*` — `example.com`. */
|
|
129
|
+
domain: string;
|
|
130
|
+
/**
|
|
131
|
+
* Labels under the domain that never reach it, although no route of this
|
|
132
|
+
* stack answers them: the protected subdomains (`www`, `mail`), and a
|
|
133
|
+
* stage whose domain sits under this one's (`staging`).
|
|
134
|
+
*/
|
|
135
|
+
except: readonly string[];
|
|
136
|
+
/**
|
|
137
|
+
* Where its certificate comes from:
|
|
138
|
+
* - `stage`: the stage's own (`deploy.compose.tls`), a wildcard one;
|
|
139
|
+
* - `dns`: one `*.<domain>` certificate from Let's Encrypt over the DNS
|
|
140
|
+
* challenge, which the shared Traefik edge answers through Route 53;
|
|
141
|
+
* - `on-demand`: one per host, as Caddy is first asked for it, once the
|
|
142
|
+
* site's `hosts` route — `ask`, on the stack's network — answers 200.
|
|
143
|
+
*/
|
|
144
|
+
tls: {
|
|
145
|
+
kind: 'stage';
|
|
146
|
+
} | {
|
|
147
|
+
kind: 'dns';
|
|
148
|
+
} | {
|
|
149
|
+
kind: 'on-demand';
|
|
150
|
+
ask: string;
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
/** Some of a route's paths, answered by another upstream. */
|
|
154
|
+
export interface EdgeHandler {
|
|
155
|
+
/** Unique within the route: what a renderer names its router after. */
|
|
156
|
+
name: string;
|
|
157
|
+
/** e.g. `/i/` — everything under it. */
|
|
158
|
+
prefixes: readonly string[];
|
|
159
|
+
upstreams: readonly Upstream[];
|
|
160
|
+
}
|
|
161
|
+
/** A route with handlers and a check that would have to hold for each of them. */
|
|
162
|
+
export declare class EdgeRouteConflict extends Error {
|
|
163
|
+
readonly route: string;
|
|
164
|
+
constructor(route: string);
|
|
165
|
+
}
|
|
166
|
+
/** @throws {EdgeRouteConflict} */
|
|
167
|
+
export declare function assertRouteRenderable(route: EdgeRoute): void;
|
|
168
|
+
/** Where a stack's certificates come from. */
|
|
169
|
+
export type EdgeTls =
|
|
170
|
+
/** A deployed stage: Let's Encrypt, over HTTP-01, on first request. */
|
|
171
|
+
{
|
|
172
|
+
kind: 'acme';
|
|
173
|
+
} |
|
|
174
|
+
/**
|
|
175
|
+
* A certificate and key, as the proxy's container reads them: a deployed
|
|
176
|
+
* stage's own (`deploy.compose.tls`), or — on the local stage — the one
|
|
177
|
+
* gkm's local authority issued (`trust/authority.ts`).
|
|
178
|
+
*/
|
|
179
|
+
{
|
|
180
|
+
kind: 'files';
|
|
181
|
+
certFile: string;
|
|
182
|
+
keyFile: string;
|
|
183
|
+
};
|
|
184
|
+
/** File descriptors a process holding sockets may open. */
|
|
185
|
+
export declare const NOFILE: {
|
|
186
|
+
soft: number;
|
|
187
|
+
hard: number;
|
|
188
|
+
};
|
|
189
|
+
/**
|
|
190
|
+
* What the edge runs with: a descriptor per socket, twice — the client's and
|
|
191
|
+
* the upstream's — and every local port for those upstream connections. One
|
|
192
|
+
* edge address to one upstream has only the ephemeral range to open
|
|
193
|
+
* connections from, ~28k by Linux's default; widened, ~64k per replica.
|
|
194
|
+
*/
|
|
195
|
+
export declare const EDGE_LIMITS: {
|
|
196
|
+
sysctls: Record<string, string>;
|
|
197
|
+
ulimits: Record<string, {
|
|
198
|
+
soft: number;
|
|
199
|
+
hard: number;
|
|
200
|
+
}>;
|
|
201
|
+
};
|
|
202
|
+
/** The proxies a stack can be served by — `deploy.compose.proxy`. */
|
|
203
|
+
export type ComposeProxy = 'caddy' | 'traefik';
|
|
204
|
+
//#endregion
|
|
205
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/routes/index.ts"],"mappings":";;;;;;;;;;iBAUiB;;EAEhB;;EAEA;;;iBAIgB;;;;;EAKhB;;EAEA;;;;;EAKA;;;;;;EAMA;IAAc;IAA0B;;;;;;EAKxC,oBAAoB;;;;;EAKpB;;;;;;EAMA;;;;;;;EAOA;;;;;;EAMA;;;;;;;EAOA;;;;;;EAMA;IAAkB;IAAc;;;;;;;;;EAQhC,oBAAoB;;;;;;EAMpB;IAAS;IAAc;;;;;;;;EAOvB;IAAW;IAA8B;;;EAEzC;;;;;;EAMA,WAAW;;;;;;wBAOI,WAAW,OAAO;;iBASjB;;EAEhB;;;;;;EAMA;;;;;;;;;EASA;IAAO;;IAAoB;;IAAkB;IAAmB;;;;iBAIhD;;EAEhB;;EAEA;EACA,oBAAoB;;;qBAIR,0BAA0B;WACjB;EAArB,YAAqB;;;wBAWN,sBAAsB,OAAO;;YAUjC;;;EAEP;;;;;;;;EAMA;EAAe;EAAkB;;;qBAGzB;EAAW;EAAiB;;;;;;;;qBAQ5B;EACZ,SAAS;EACT,SAAS;IAAiB;IAAc;;;;YAO7B"}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
//#region src/routes/index.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* What a stack's edge serves, as data: one route per public host, and the
|
|
4
|
+
* service behind it. Computed once by the stack, then rendered by whichever
|
|
5
|
+
* proxy the stage runs — a Caddyfile for the stack's own Caddy, or a dynamic
|
|
6
|
+
* config file for the server's shared Traefik — so the two never drift.
|
|
7
|
+
*
|
|
8
|
+
* Pure.
|
|
9
|
+
*/
|
|
10
|
+
/** A service of the stack that a route sends to. */
|
|
11
|
+
export interface Upstream {
|
|
12
|
+
/** Its compose service name — `api`, `minio`. */
|
|
13
|
+
service: string;
|
|
14
|
+
/** The port it listens on, inside the network. */
|
|
15
|
+
port: number;
|
|
16
|
+
}
|
|
17
|
+
/** One public host and what answers it. */
|
|
18
|
+
export interface EdgeRoute {
|
|
19
|
+
/**
|
|
20
|
+
* Its name within the stack — unique there, and what a renderer names
|
|
21
|
+
* its routers and middlewares after: `api`, `files-uploads`.
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/** e.g. `api.example.com` — the canonical host, its `<ID>_URL`'s. */
|
|
25
|
+
host: string;
|
|
26
|
+
/**
|
|
27
|
+
* More hosts answered exactly as `host` is — a construct's `aliases`:
|
|
28
|
+
* every check, handler and upstream of the route holds on each of them.
|
|
29
|
+
*/
|
|
30
|
+
aliases?: readonly string[];
|
|
31
|
+
/**
|
|
32
|
+
* Hosts answered with a permanent redirect to `to`, the canonical origin
|
|
33
|
+
* (`https://example.com`, with the edge's port where it is not 443), path
|
|
34
|
+
* and query kept — a site's `redirects`. Nothing is proxied for them.
|
|
35
|
+
*/
|
|
36
|
+
redirects?: {
|
|
37
|
+
hosts: readonly string[];
|
|
38
|
+
to: string;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Where requests go. One today; a release that swaps containers without
|
|
42
|
+
* downtime routes to the old and the new while it does.
|
|
43
|
+
*/
|
|
44
|
+
upstreams: readonly Upstream[];
|
|
45
|
+
/**
|
|
46
|
+
* Never buffer the response: a streamed one — server-sent events, a
|
|
47
|
+
* Next.js RSC payload — reaches the client as each chunk is written.
|
|
48
|
+
*/
|
|
49
|
+
streaming: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* A path prefix added before the request is sent, with the upstream's own
|
|
52
|
+
* address as `Host`: a bucket, served at a host of its own, is a prefix
|
|
53
|
+
* on MinIO, which routes and signs on the Host header.
|
|
54
|
+
*/
|
|
55
|
+
prefix?: string;
|
|
56
|
+
/**
|
|
57
|
+
* The client addresses (IPs or CIDRs) it answers; every other is refused
|
|
58
|
+
* with 403, before the request reaches the upstream. Absent, it answers
|
|
59
|
+
* everyone. Matched against the peer the proxy sees, never a header a
|
|
60
|
+
* client could set.
|
|
61
|
+
*/
|
|
62
|
+
allow?: readonly string[];
|
|
63
|
+
/**
|
|
64
|
+
* The only paths it answers, matched exactly; every other is refused at
|
|
65
|
+
* the edge, before the request reaches the upstream. Absent, it answers
|
|
66
|
+
* every path. A worker is reached only on the routes SNS pushes to.
|
|
67
|
+
*/
|
|
68
|
+
paths?: readonly string[];
|
|
69
|
+
/**
|
|
70
|
+
* Path prefixes it answers besides `paths` — `/i/` admits everything
|
|
71
|
+
* under it. Together they are the whole allowlist; absent both, it
|
|
72
|
+
* answers every path. A processor unit's own host is reached only on its
|
|
73
|
+
* processors' prefixes.
|
|
74
|
+
*/
|
|
75
|
+
prefixes?: readonly string[];
|
|
76
|
+
/**
|
|
77
|
+
* A header every request must carry, with exactly this value; any other
|
|
78
|
+
* is refused at the edge. What a CDN adds to reach its origin, so the
|
|
79
|
+
* origin's public host cannot be called around the CDN.
|
|
80
|
+
*/
|
|
81
|
+
requireHeader?: {
|
|
82
|
+
name: string;
|
|
83
|
+
value: string;
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* Path prefixes on this host sent to another upstream, ahead of the
|
|
87
|
+
* route's own: a file server's processor patterns, to its processor unit,
|
|
88
|
+
* while every other path is the bucket. Served at the path asked for —
|
|
89
|
+
* no `prefix` — and never combined with `allow`, `paths`, `prefixes` or
|
|
90
|
+
* `requireHeader`, which would have to hold for every handler too.
|
|
91
|
+
*/
|
|
92
|
+
handlers?: readonly EdgeHandler[];
|
|
93
|
+
/**
|
|
94
|
+
* The login every request must carry — HTTP basic auth, asked for by the
|
|
95
|
+
* edge before anything reaches the upstream. Absent, it asks for none.
|
|
96
|
+
* The password's bcrypt hash, never the password.
|
|
97
|
+
*/
|
|
98
|
+
auth?: {
|
|
99
|
+
user: string;
|
|
100
|
+
hash: string;
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* What one client address may ask of it — a WebSocket surface's
|
|
104
|
+
* handshakes a minute and open sockets — refused with 429 at the edge.
|
|
105
|
+
* Rendered for Traefik (`rateLimit`, `inFlightReq`); Caddy ships no rate
|
|
106
|
+
* limiter, so behind it the surface's own count is what holds.
|
|
107
|
+
*/
|
|
108
|
+
limits?: {
|
|
109
|
+
handshakesPerMinute?: number;
|
|
110
|
+
connectionsPerIp?: number;
|
|
111
|
+
};
|
|
112
|
+
/** The path the upstream answers its health on — `/health`, `/`. */
|
|
113
|
+
health?: string;
|
|
114
|
+
/**
|
|
115
|
+
* For a wildcard site's route, whose `host` is `*.<domain>`: every one
|
|
116
|
+
* label under the domain that no other route answers, and how its
|
|
117
|
+
* certificate is had. Named hosts always win over it.
|
|
118
|
+
*/
|
|
119
|
+
wildcard?: EdgeWildcard;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Every host a route answers on — its own, its aliases and its redirects —
|
|
123
|
+
* in that order: what DNS, certificates and the edge's claims cover.
|
|
124
|
+
*/
|
|
125
|
+
export declare function routeHosts(route: EdgeRoute): string[];
|
|
126
|
+
/** How a `*.<domain>` route is matched and certified. */
|
|
127
|
+
export interface EdgeWildcard {
|
|
128
|
+
/** The domain under the `*` — `example.com`. */
|
|
129
|
+
domain: string;
|
|
130
|
+
/**
|
|
131
|
+
* Labels under the domain that never reach it, although no route of this
|
|
132
|
+
* stack answers them: the protected subdomains (`www`, `mail`), and a
|
|
133
|
+
* stage whose domain sits under this one's (`staging`).
|
|
134
|
+
*/
|
|
135
|
+
except: readonly string[];
|
|
136
|
+
/**
|
|
137
|
+
* Where its certificate comes from:
|
|
138
|
+
* - `stage`: the stage's own (`deploy.compose.tls`), a wildcard one;
|
|
139
|
+
* - `dns`: one `*.<domain>` certificate from Let's Encrypt over the DNS
|
|
140
|
+
* challenge, which the shared Traefik edge answers through Route 53;
|
|
141
|
+
* - `on-demand`: one per host, as Caddy is first asked for it, once the
|
|
142
|
+
* site's `hosts` route — `ask`, on the stack's network — answers 200.
|
|
143
|
+
*/
|
|
144
|
+
tls: {
|
|
145
|
+
kind: 'stage';
|
|
146
|
+
} | {
|
|
147
|
+
kind: 'dns';
|
|
148
|
+
} | {
|
|
149
|
+
kind: 'on-demand';
|
|
150
|
+
ask: string;
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
/** Some of a route's paths, answered by another upstream. */
|
|
154
|
+
export interface EdgeHandler {
|
|
155
|
+
/** Unique within the route: what a renderer names its router after. */
|
|
156
|
+
name: string;
|
|
157
|
+
/** e.g. `/i/` — everything under it. */
|
|
158
|
+
prefixes: readonly string[];
|
|
159
|
+
upstreams: readonly Upstream[];
|
|
160
|
+
}
|
|
161
|
+
/** A route with handlers and a check that would have to hold for each of them. */
|
|
162
|
+
export declare class EdgeRouteConflict extends Error {
|
|
163
|
+
readonly route: string;
|
|
164
|
+
constructor(route: string);
|
|
165
|
+
}
|
|
166
|
+
/** @throws {EdgeRouteConflict} */
|
|
167
|
+
export declare function assertRouteRenderable(route: EdgeRoute): void;
|
|
168
|
+
/** Where a stack's certificates come from. */
|
|
169
|
+
export type EdgeTls =
|
|
170
|
+
/** A deployed stage: Let's Encrypt, over HTTP-01, on first request. */
|
|
171
|
+
{
|
|
172
|
+
kind: 'acme';
|
|
173
|
+
} |
|
|
174
|
+
/**
|
|
175
|
+
* A certificate and key, as the proxy's container reads them: a deployed
|
|
176
|
+
* stage's own (`deploy.compose.tls`), or — on the local stage — the one
|
|
177
|
+
* gkm's local authority issued (`trust/authority.ts`).
|
|
178
|
+
*/
|
|
179
|
+
{
|
|
180
|
+
kind: 'files';
|
|
181
|
+
certFile: string;
|
|
182
|
+
keyFile: string;
|
|
183
|
+
};
|
|
184
|
+
/** File descriptors a process holding sockets may open. */
|
|
185
|
+
export declare const NOFILE: {
|
|
186
|
+
soft: number;
|
|
187
|
+
hard: number;
|
|
188
|
+
};
|
|
189
|
+
/**
|
|
190
|
+
* What the edge runs with: a descriptor per socket, twice — the client's and
|
|
191
|
+
* the upstream's — and every local port for those upstream connections. One
|
|
192
|
+
* edge address to one upstream has only the ephemeral range to open
|
|
193
|
+
* connections from, ~28k by Linux's default; widened, ~64k per replica.
|
|
194
|
+
*/
|
|
195
|
+
export declare const EDGE_LIMITS: {
|
|
196
|
+
sysctls: Record<string, string>;
|
|
197
|
+
ulimits: Record<string, {
|
|
198
|
+
soft: number;
|
|
199
|
+
hard: number;
|
|
200
|
+
}>;
|
|
201
|
+
};
|
|
202
|
+
/** The proxies a stack can be served by — `deploy.compose.proxy`. */
|
|
203
|
+
export type ComposeProxy = 'caddy' | 'traefik';
|
|
204
|
+
//#endregion
|
|
205
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/routes/index.ts"],"mappings":";;;;;;;;;;iBAUiB;;EAEhB;;EAEA;;;iBAIgB;;;;;EAKhB;;EAEA;;;;;EAKA;;;;;;EAMA;IAAc;IAA0B;;;;;;EAKxC,oBAAoB;;;;;EAKpB;;;;;;EAMA;;;;;;;EAOA;;;;;;EAMA;;;;;;;EAOA;;;;;;EAMA;IAAkB;IAAc;;;;;;;;;EAQhC,oBAAoB;;;;;;EAMpB;IAAS;IAAc;;;;;;;;EAOvB;IAAW;IAA8B;;;EAEzC;;;;;;EAMA,WAAW;;;;;;wBAOI,WAAW,OAAO;;iBASjB;;EAEhB;;;;;;EAMA;;;;;;;;;EASA;IAAO;;IAAoB;;IAAkB;IAAmB;;;;iBAIhD;;EAEhB;;EAEA;EACA,oBAAoB;;;qBAIR,0BAA0B;WACjB;EAArB,YAAqB;;;wBAWN,sBAAsB,OAAO;;YAUjC;;;EAEP;;;;;;;;EAMA;EAAe;EAAkB;;;qBAGzB;EAAW;EAAiB;;;;;;;;qBAQ5B;EACZ,SAAS;EACT,SAAS;IAAiB;IAAc;;;;YAO7B"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
//#region src/routes/index.ts
|
|
2
|
+
/**
|
|
3
|
+
* Every host a route answers on — its own, its aliases and its redirects —
|
|
4
|
+
* in that order: what DNS, certificates and the edge's claims cover.
|
|
5
|
+
*/
|
|
6
|
+
function routeHosts(route) {
|
|
7
|
+
return [
|
|
8
|
+
route.host,
|
|
9
|
+
...route.aliases ?? [],
|
|
10
|
+
...route.redirects?.hosts ?? []
|
|
11
|
+
];
|
|
12
|
+
}
|
|
13
|
+
/** A route with handlers and a check that would have to hold for each of them. */
|
|
14
|
+
var EdgeRouteConflict = class extends Error {
|
|
15
|
+
route;
|
|
16
|
+
constructor(route) {
|
|
17
|
+
super(`The edge route '${route}' sends some paths to other upstreams and also restricts who or what it answers. The two are not combined: give the restricted paths a host of their own.`);
|
|
18
|
+
this.route = route;
|
|
19
|
+
this.name = "EdgeRouteConflict";
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
/** @throws {EdgeRouteConflict} */
|
|
23
|
+
function assertRouteRenderable(route) {
|
|
24
|
+
if (route.handlers?.length && (route.allow || route.paths || route.prefixes || route.requireHeader)) throw new EdgeRouteConflict(route.name);
|
|
25
|
+
}
|
|
26
|
+
/** File descriptors a process holding sockets may open. */
|
|
27
|
+
const NOFILE = {
|
|
28
|
+
soft: 1048576,
|
|
29
|
+
hard: 1048576
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* What the edge runs with: a descriptor per socket, twice — the client's and
|
|
33
|
+
* the upstream's — and every local port for those upstream connections. One
|
|
34
|
+
* edge address to one upstream has only the ephemeral range to open
|
|
35
|
+
* connections from, ~28k by Linux's default; widened, ~64k per replica.
|
|
36
|
+
*/
|
|
37
|
+
const EDGE_LIMITS = {
|
|
38
|
+
sysctls: { "net.ipv4.ip_local_port_range": "1024 65535" },
|
|
39
|
+
ulimits: { nofile: NOFILE }
|
|
40
|
+
};
|
|
41
|
+
//#endregion
|
|
42
|
+
export { EDGE_LIMITS, EdgeRouteConflict, NOFILE, assertRouteRenderable, routeHosts };
|
|
43
|
+
|
|
44
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../src/routes/index.ts"],"sourcesContent":["/**\n * What a stack's edge serves, as data: one route per public host, and the\n * service behind it. Computed once by the stack, then rendered by whichever\n * proxy the stage runs — a Caddyfile for the stack's own Caddy, or a dynamic\n * config file for the server's shared Traefik — so the two never drift.\n *\n * Pure.\n */\n\n/** A service of the stack that a route sends to. */\nexport interface Upstream {\n\t/** Its compose service name — `api`, `minio`. */\n\tservice: string;\n\t/** The port it listens on, inside the network. */\n\tport: number;\n}\n\n/** One public host and what answers it. */\nexport interface EdgeRoute {\n\t/**\n\t * Its name within the stack — unique there, and what a renderer names\n\t * its routers and middlewares after: `api`, `files-uploads`.\n\t */\n\tname: string;\n\t/** e.g. `api.example.com` — the canonical host, its `<ID>_URL`'s. */\n\thost: string;\n\t/**\n\t * More hosts answered exactly as `host` is — a construct's `aliases`:\n\t * every check, handler and upstream of the route holds on each of them.\n\t */\n\taliases?: readonly string[];\n\t/**\n\t * Hosts answered with a permanent redirect to `to`, the canonical origin\n\t * (`https://example.com`, with the edge's port where it is not 443), path\n\t * and query kept — a site's `redirects`. Nothing is proxied for them.\n\t */\n\tredirects?: { hosts: readonly string[]; to: string };\n\t/**\n\t * Where requests go. One today; a release that swaps containers without\n\t * downtime routes to the old and the new while it does.\n\t */\n\tupstreams: readonly Upstream[];\n\t/**\n\t * Never buffer the response: a streamed one — server-sent events, a\n\t * Next.js RSC payload — reaches the client as each chunk is written.\n\t */\n\tstreaming: boolean;\n\t/**\n\t * A path prefix added before the request is sent, with the upstream's own\n\t * address as `Host`: a bucket, served at a host of its own, is a prefix\n\t * on MinIO, which routes and signs on the Host header.\n\t */\n\tprefix?: string;\n\t/**\n\t * The client addresses (IPs or CIDRs) it answers; every other is refused\n\t * with 403, before the request reaches the upstream. Absent, it answers\n\t * everyone. Matched against the peer the proxy sees, never a header a\n\t * client could set.\n\t */\n\tallow?: readonly string[];\n\t/**\n\t * The only paths it answers, matched exactly; every other is refused at\n\t * the edge, before the request reaches the upstream. Absent, it answers\n\t * every path. A worker is reached only on the routes SNS pushes to.\n\t */\n\tpaths?: readonly string[];\n\t/**\n\t * Path prefixes it answers besides `paths` — `/i/` admits everything\n\t * under it. Together they are the whole allowlist; absent both, it\n\t * answers every path. A processor unit's own host is reached only on its\n\t * processors' prefixes.\n\t */\n\tprefixes?: readonly string[];\n\t/**\n\t * A header every request must carry, with exactly this value; any other\n\t * is refused at the edge. What a CDN adds to reach its origin, so the\n\t * origin's public host cannot be called around the CDN.\n\t */\n\trequireHeader?: { name: string; value: string };\n\t/**\n\t * Path prefixes on this host sent to another upstream, ahead of the\n\t * route's own: a file server's processor patterns, to its processor unit,\n\t * while every other path is the bucket. Served at the path asked for —\n\t * no `prefix` — and never combined with `allow`, `paths`, `prefixes` or\n\t * `requireHeader`, which would have to hold for every handler too.\n\t */\n\thandlers?: readonly EdgeHandler[];\n\t/**\n\t * The login every request must carry — HTTP basic auth, asked for by the\n\t * edge before anything reaches the upstream. Absent, it asks for none.\n\t * The password's bcrypt hash, never the password.\n\t */\n\tauth?: { user: string; hash: string };\n\t/**\n\t * What one client address may ask of it — a WebSocket surface's\n\t * handshakes a minute and open sockets — refused with 429 at the edge.\n\t * Rendered for Traefik (`rateLimit`, `inFlightReq`); Caddy ships no rate\n\t * limiter, so behind it the surface's own count is what holds.\n\t */\n\tlimits?: { handshakesPerMinute?: number; connectionsPerIp?: number };\n\t/** The path the upstream answers its health on — `/health`, `/`. */\n\thealth?: string;\n\t/**\n\t * For a wildcard site's route, whose `host` is `*.<domain>`: every one\n\t * label under the domain that no other route answers, and how its\n\t * certificate is had. Named hosts always win over it.\n\t */\n\twildcard?: EdgeWildcard;\n}\n\n/**\n * Every host a route answers on — its own, its aliases and its redirects —\n * in that order: what DNS, certificates and the edge's claims cover.\n */\nexport function routeHosts(route: EdgeRoute): string[] {\n\treturn [\n\t\troute.host,\n\t\t...(route.aliases ?? []),\n\t\t...(route.redirects?.hosts ?? []),\n\t];\n}\n\n/** How a `*.<domain>` route is matched and certified. */\nexport interface EdgeWildcard {\n\t/** The domain under the `*` — `example.com`. */\n\tdomain: string;\n\t/**\n\t * Labels under the domain that never reach it, although no route of this\n\t * stack answers them: the protected subdomains (`www`, `mail`), and a\n\t * stage whose domain sits under this one's (`staging`).\n\t */\n\texcept: readonly string[];\n\t/**\n\t * Where its certificate comes from:\n\t * - `stage`: the stage's own (`deploy.compose.tls`), a wildcard one;\n\t * - `dns`: one `*.<domain>` certificate from Let's Encrypt over the DNS\n\t * challenge, which the shared Traefik edge answers through Route 53;\n\t * - `on-demand`: one per host, as Caddy is first asked for it, once the\n\t * site's `hosts` route — `ask`, on the stack's network — answers 200.\n\t */\n\ttls: { kind: 'stage' } | { kind: 'dns' } | { kind: 'on-demand'; ask: string };\n}\n\n/** Some of a route's paths, answered by another upstream. */\nexport interface EdgeHandler {\n\t/** Unique within the route: what a renderer names its router after. */\n\tname: string;\n\t/** e.g. `/i/` — everything under it. */\n\tprefixes: readonly string[];\n\tupstreams: readonly Upstream[];\n}\n\n/** A route with handlers and a check that would have to hold for each of them. */\nexport class EdgeRouteConflict extends Error {\n\tconstructor(readonly route: string) {\n\t\tsuper(\n\t\t\t`The edge route '${route}' sends some paths to other upstreams and also ` +\n\t\t\t\t`restricts who or what it answers. The two are not combined: give the ` +\n\t\t\t\t`restricted paths a host of their own.`,\n\t\t);\n\t\tthis.name = 'EdgeRouteConflict';\n\t}\n}\n\n/** @throws {EdgeRouteConflict} */\nexport function assertRouteRenderable(route: EdgeRoute): void {\n\tif (\n\t\troute.handlers?.length &&\n\t\t(route.allow || route.paths || route.prefixes || route.requireHeader)\n\t) {\n\t\tthrow new EdgeRouteConflict(route.name);\n\t}\n}\n\n/** Where a stack's certificates come from. */\nexport type EdgeTls =\n\t/** A deployed stage: Let's Encrypt, over HTTP-01, on first request. */\n\t| { kind: 'acme' }\n\t/**\n\t * A certificate and key, as the proxy's container reads them: a deployed\n\t * stage's own (`deploy.compose.tls`), or — on the local stage — the one\n\t * gkm's local authority issued (`trust/authority.ts`).\n\t */\n\t| { kind: 'files'; certFile: string; keyFile: string };\n\n/** File descriptors a process holding sockets may open. */\nexport const NOFILE = { soft: 1_048_576, hard: 1_048_576 };\n\n/**\n * What the edge runs with: a descriptor per socket, twice — the client's and\n * the upstream's — and every local port for those upstream connections. One\n * edge address to one upstream has only the ephemeral range to open\n * connections from, ~28k by Linux's default; widened, ~64k per replica.\n */\nexport const EDGE_LIMITS: {\n\tsysctls: Record<string, string>;\n\tulimits: Record<string, { soft: number; hard: number }>;\n} = {\n\tsysctls: { 'net.ipv4.ip_local_port_range': '1024 65535' },\n\tulimits: { nofile: NOFILE },\n};\n\n/** The proxies a stack can be served by — `deploy.compose.proxy`. */\nexport type ComposeProxy = 'caddy' | 'traefik';\n"],"mappings":";;;;;AAkHA,SAAgB,WAAW,OAA4B;CACtD,OAAO;EACN,MAAM;EACN,GAAI,MAAM,WAAW,CAAC;EACtB,GAAI,MAAM,WAAW,SAAS,CAAC;CAChC;AACD;;AAiCA,IAAa,oBAAb,cAAuC,MAAM;CACvB;CAArB,YAAY,OAAwB;EACnC,MACC,mBAAmB,MAAM,0JAG1B;EALoB,KAAA,QAAA;EAMpB,KAAK,OAAO;CACb;AACD;;AAGA,SAAgB,sBAAsB,OAAwB;CAC7D,IACC,MAAM,UAAU,WACf,MAAM,SAAS,MAAM,SAAS,MAAM,YAAY,MAAM,gBAEvD,MAAM,IAAI,kBAAkB,MAAM,IAAI;AAExC;;AAcA,MAAa,SAAS;CAAE,MAAM;CAAW,MAAM;AAAU;;;;;;;AAQzD,MAAa,cAGT;CACH,SAAS,EAAE,gCAAgC,aAAa;CACxD,SAAS,EAAE,QAAQ,OAAO;AAC3B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,134 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geekmidas/edge",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "10.0.0-alpha.182",
|
|
4
|
+
"description": "The edge in front of a gkm stack: routes, reverse proxies, certificates and DNS providers.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"import": {
|
|
9
|
+
"types": "./dist/index.d.mts",
|
|
10
|
+
"default": "./dist/index.mjs"
|
|
11
|
+
},
|
|
12
|
+
"require": {
|
|
13
|
+
"types": "./dist/index.d.cts",
|
|
14
|
+
"default": "./dist/index.cjs"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"./routes": {
|
|
18
|
+
"import": {
|
|
19
|
+
"types": "./dist/routes/index.d.mts",
|
|
20
|
+
"default": "./dist/routes/index.mjs"
|
|
21
|
+
},
|
|
22
|
+
"require": {
|
|
23
|
+
"types": "./dist/routes/index.d.cts",
|
|
24
|
+
"default": "./dist/routes/index.cjs"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"./proxy/caddy": {
|
|
28
|
+
"import": {
|
|
29
|
+
"types": "./dist/proxy/caddy.d.mts",
|
|
30
|
+
"default": "./dist/proxy/caddy.mjs"
|
|
31
|
+
},
|
|
32
|
+
"require": {
|
|
33
|
+
"types": "./dist/proxy/caddy.d.cts",
|
|
34
|
+
"default": "./dist/proxy/caddy.cjs"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"./proxy/traefik": {
|
|
38
|
+
"import": {
|
|
39
|
+
"types": "./dist/proxy/traefik.d.mts",
|
|
40
|
+
"default": "./dist/proxy/traefik.mjs"
|
|
41
|
+
},
|
|
42
|
+
"require": {
|
|
43
|
+
"types": "./dist/proxy/traefik.d.cts",
|
|
44
|
+
"default": "./dist/proxy/traefik.cjs"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"./certificates/local": {
|
|
48
|
+
"import": {
|
|
49
|
+
"types": "./dist/certificates/local.d.mts",
|
|
50
|
+
"default": "./dist/certificates/local.mjs"
|
|
51
|
+
},
|
|
52
|
+
"require": {
|
|
53
|
+
"types": "./dist/certificates/local.d.cts",
|
|
54
|
+
"default": "./dist/certificates/local.cjs"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"./dns": {
|
|
58
|
+
"import": {
|
|
59
|
+
"types": "./dist/dns/index.d.mts",
|
|
60
|
+
"default": "./dist/dns/index.mjs"
|
|
61
|
+
},
|
|
62
|
+
"require": {
|
|
63
|
+
"types": "./dist/dns/index.d.cts",
|
|
64
|
+
"default": "./dist/dns/index.cjs"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"./dns/route53": {
|
|
68
|
+
"import": {
|
|
69
|
+
"types": "./dist/dns/route53.d.mts",
|
|
70
|
+
"default": "./dist/dns/route53.mjs"
|
|
71
|
+
},
|
|
72
|
+
"require": {
|
|
73
|
+
"types": "./dist/dns/route53.d.cts",
|
|
74
|
+
"default": "./dist/dns/route53.cjs"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"./dns/hostinger": {
|
|
78
|
+
"import": {
|
|
79
|
+
"types": "./dist/dns/hostinger/index.d.mts",
|
|
80
|
+
"default": "./dist/dns/hostinger/index.mjs"
|
|
81
|
+
},
|
|
82
|
+
"require": {
|
|
83
|
+
"types": "./dist/dns/hostinger/index.d.cts",
|
|
84
|
+
"default": "./dist/dns/hostinger/index.cjs"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"./dns/godaddy": {
|
|
88
|
+
"import": {
|
|
89
|
+
"types": "./dist/dns/godaddy/index.d.mts",
|
|
90
|
+
"default": "./dist/dns/godaddy/index.mjs"
|
|
91
|
+
},
|
|
92
|
+
"require": {
|
|
93
|
+
"types": "./dist/dns/godaddy/index.d.cts",
|
|
94
|
+
"default": "./dist/dns/godaddy/index.cjs"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"files": [
|
|
99
|
+
"dist"
|
|
100
|
+
],
|
|
101
|
+
"repository": {
|
|
102
|
+
"type": "git",
|
|
103
|
+
"url": "https://github.com/geekmidas/toolbox"
|
|
104
|
+
},
|
|
105
|
+
"publishConfig": {
|
|
106
|
+
"registry": "https://registry.npmjs.org/",
|
|
107
|
+
"access": "public"
|
|
108
|
+
},
|
|
109
|
+
"dependencies": {
|
|
110
|
+
"node-forge": "~1.4.2",
|
|
111
|
+
"yaml": "~2.9.1",
|
|
112
|
+
"@geekmidas/manifest": "10.0.0-alpha.182"
|
|
113
|
+
},
|
|
114
|
+
"peerDependencies": {
|
|
115
|
+
"@aws-sdk/client-route-53": ">=3.1136.0",
|
|
116
|
+
"@aws-sdk/credential-providers": ">=3.1136.0"
|
|
117
|
+
},
|
|
118
|
+
"peerDependenciesMeta": {
|
|
119
|
+
"@aws-sdk/client-route-53": {
|
|
120
|
+
"optional": true
|
|
121
|
+
},
|
|
122
|
+
"@aws-sdk/credential-providers": {
|
|
123
|
+
"optional": true
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"devDependencies": {
|
|
127
|
+
"@aws-sdk/client-route-53": "~3.1136.0",
|
|
128
|
+
"@aws-sdk/credential-providers": "~3.1136.0",
|
|
129
|
+
"@types/node-forge": "~1.3.14"
|
|
130
|
+
},
|
|
131
|
+
"scripts": {
|
|
132
|
+
"build": "tsdown --config ../../tsdown.config.ts --filter ."
|
|
133
|
+
}
|
|
6
134
|
}
|