Skip to content

Commit d1c06fa

Browse files
Merge pull request #217 from profullstack/codex/w3bs-net-gateway
fix(dev2): route W3BS agent wildcard
2 parents 8e13c2f + b498f11 commit d1c06fa

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

‎dev2/dev2-site‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1677,7 +1677,6 @@ def cmd_dns(args):
16771677
recs = recs.get("records", recs) if isinstance(recs, dict) else recs
16781678
for d in ds:
16791679
host = "@" if d == zone else d[: -len(zone) - 1]
1680-
if host.startswith("*"): note(f"{d}: wildcard; set A * manually if needed"); host = "*"
16811680
for r in recs:
16821681
if r.get("name") == d and r.get("type") in ("ALIAS", "CNAME", "A", "AAAA"):
16831682
sh(["porkbun", "rm", zone, host, "--type", r["type"], "--yes"], check=False)

‎dev2/sites.d/net-gateway.w3bs.org.json‎

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"site": "net-gateway.w3bs.org",
33
"nginx_app": false,
44
"domains": [
5-
"*.whatever.w3bs.org"
5+
"*.whatever.w3bs.org",
6+
"*.agent.w3bs.org",
7+
"*.hacker.w3bs.org"
68
],
79
"port": 3209,
810
"max_body": "64m",
@@ -11,7 +13,17 @@
1113
"host": "*.whatever.w3bs.org",
1214
"port": 3209,
1315
"max_body": "64m"
16+
},
17+
{
18+
"host": "*.agent.w3bs.org",
19+
"port": 3209,
20+
"max_body": "64m"
21+
},
22+
{
23+
"host": "*.hacker.w3bs.org",
24+
"port": 3209,
25+
"max_body": "64m"
1426
}
1527
],
16-
"notes": "Dedicated W3BS Net Moshpit wildcard vhost. DNS and TLS cover *.whatever.w3bs.org. The W3BS app serves only manually approved names from W3BS_NET_APPROVED_NAMES."
28+
"notes": "Dedicated W3BS Net name-routing vhost. DNS and TLS cover *.whatever.w3bs.org, *.agent.w3bs.org and the Moshpit backfill namespace *.hacker.w3bs.org; add another suffix here when W3BS Net opts in that namespace. The independent W3BS registry decides active names."
1729
}

0 commit comments

Comments
 (0)