@ts-cloud/core 0.16.47 → 0.16.48
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/dist/types.d.ts +21 -1
- package/package.json +2 -2
package/dist/types.d.ts
CHANGED
|
@@ -1437,7 +1437,27 @@ export interface SiteConfig {
|
|
|
1437
1437
|
daemons?: DaemonConfig[];
|
|
1438
1438
|
/** TLS configuration for this site's nginx vhost. */
|
|
1439
1439
|
ssl?: SiteSslConfig;
|
|
1440
|
-
/**
|
|
1440
|
+
/**
|
|
1441
|
+
* More hostnames this site answers on, routed to it exactly like `domain`.
|
|
1442
|
+
*
|
|
1443
|
+
* ```ts
|
|
1444
|
+
* main: { domain: 'example.com', aliases: ['*.example.com'], start: '…', port: 3000 }
|
|
1445
|
+
* ```
|
|
1446
|
+
*
|
|
1447
|
+
* Each alias gets a gateway route, an address record and a certificate.
|
|
1448
|
+
* A literal alias (`app.example.com`) joins the site's normal http-01
|
|
1449
|
+
* certificates. A wildcard (`*.example.com`) is one Let's Encrypt
|
|
1450
|
+
* wildcard certificate, which only the dns-01 challenge can issue: the
|
|
1451
|
+
* renewal unit reads `PORKBUN_API_KEY` / `PORKBUN_SECRET_KEY` (and only
|
|
1452
|
+
* those) from the site's shared `.env` on the box, so the site must keep
|
|
1453
|
+
* that file (`sharedPaths: ['.env']`, the default for a server app) and
|
|
1454
|
+
* the domain must be at Porkbun. Wildcards are never issued on demand.
|
|
1455
|
+
*
|
|
1456
|
+
* Under nginx they are extra `server_name`s on the same vhost.
|
|
1457
|
+
*
|
|
1458
|
+
* What the app does with the extra hosts is the app's: in Stacks,
|
|
1459
|
+
* `config/server.ts#domains` routes `{username}.example.com` to a page.
|
|
1460
|
+
*/
|
|
1441
1461
|
aliases?: string[];
|
|
1442
1462
|
/** `from` path/host → `to` URL redirects emitted into the nginx vhost. */
|
|
1443
1463
|
redirects?: Record<string, string>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ts-cloud/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.16.
|
|
4
|
+
"version": "0.16.48",
|
|
5
5
|
"description": "Core CloudFormation generation library for ts-cloud",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"typecheck": "tsc --noEmit"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@ts-cloud/aws-types": "0.16.
|
|
34
|
+
"@ts-cloud/aws-types": "0.16.48"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"typescript": "^7.0.2"
|