Skip to content

Commit 3a5e9ec

Browse files
committed
refining docs
1 parent 346bdd8 commit 3a5e9ec

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

custom-domain/dstack-ingress/DNS_PROVIDERS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ This guide explains how to configure dstack-ingress to work with different DNS p
2424
- `SET_CAA` - Enable CAA record setup (default: false)
2525
- `PORT` - HTTPS port (default: 443)
2626
- `TXT_PREFIX` - Prefix for TXT records (default: "_tapp-address")
27-
- `ALIAS_DOMAIN` - Public-facing domain shared across multiple nodes (e.g., `app.example.com`). Added as a SAN on the TLS certificate and to nginx `server_name`. When set alongside `ROUTE53_INITIAL_WEIGHT` (Route53 only), also creates a weight-0 weighted CNAME `ALIAS_DOMAIN → DOMAIN` to register this node in the pool without routing traffic to it. See [Weighted Routing with ALIAS_DOMAIN](#weighted-routing-with-alias_domain-route53).
27+
- `ALIAS_DOMAIN` - A shared domain that acts as a load-balanced entry point across multiple Phala nodes (e.g., `app.example.com`). Each node automatically joins the upstream pool on boot — users hit one address while traffic is distributed across however many nodes are running. See [Weighted Routing with ALIAS_DOMAIN](#weighted-routing-with-alias_domain-route53).
2828

2929
## Provider-Specific Configuration
3030

custom-domain/dstack-ingress/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ configs:
184184
- `PROXY_BUFFERS`: Optional value for nginx `proxy_buffers` (format: `number size`, e.g. `4 256k`) in single-domain mode
185185
- `PROXY_BUSY_BUFFERS_SIZE`: Optional value for nginx `proxy_busy_buffers_size` (numeric with optional `k|m` suffix, e.g. `256k`) in single-domain mode
186186
- `CERTBOT_STAGING`: Optional; set this value to the string `true` to set the `--staging` server option on the [`certbot` cli](https://eff-certbot.readthedocs.io/en/stable/using.html#certbot-command-line-options)
187-
- `ALIAS_DOMAIN`: Optional; a single public-facing domain shared across multiple nodes (e.g. `app.example.com`). Added as a SAN on the TLS certificate and to nginx `server_name`. When combined with `ROUTE53_INITIAL_WEIGHT` (Route53 only), also registers a weight-0 weighted CNAME `ALIAS_DOMAIN → DOMAIN` so the node is in the pool but dark until promoted. See [Multi-Node Weighted Routing](#multi-node-weighted-routing-with-alias_domain).
187+
- `ALIAS_DOMAIN`: Optional; a shared domain that acts as a load-balanced entry point across multiple Phala nodes (e.g. `app.example.com`). Each node automatically joins the upstream pool on boot — users hit one address while traffic is distributed across however many nodes are running. See [Multi-Node Weighted Routing](#multi-node-weighted-routing-with-alias_domain).
188188

189189
**Backward Compatibility:**
190190

@@ -259,7 +259,7 @@ volumes:
259259

260260
### How It Works
261261

262-
Each node has a **node domain** (`DOMAIN`, e.g. `node1.app.example.com`) that is the primary identity used for Phala's TXT-based app routing. A single **public domain** (`ALIAS_DOMAIN`, e.g. `app.example.com`) is shared across all nodes and used as the user-facing address.
262+
Each node has a **node domain** (`DOMAIN`, e.g. `node1.app.example.com`) used for its individual Phala-verified identity. Issuing certificates against per-node domains also avoids Let's Encrypt's duplicate-certificate rate limits that would occur if every node requested a cert for the same shared domain. A single **public domain** (`ALIAS_DOMAIN`, e.g. `app.example.com`) is shared across all nodes as the user-facing address and is added as a SAN on each node's certificate. The Phala gateway validates traffic to the alias domain via a shared TXT record that accumulates an entry for every node in the pool — each node appends its own `APP_ID` on boot rather than replacing the existing values.
263263

264264
```
265265
┌─────────────────────────────────────────┐
@@ -275,6 +275,9 @@ Users │ Route53 Weighted CNAMEs │
275275
_dstack-app-address.node1.app.example.com → <appid1>:443
276276
_dstack-app-address.node2.app.example.com → <appid2>:443
277277
278+
_dstack-app-address.app.example.com → <appid1>:443 ← one entry per node
279+
│ <appid2>:443 ← appended on each boot
280+
278281
│ TLS Certificate (on each node)
279282
280283
│ node1.app.example.com ← primary

0 commit comments

Comments
 (0)