From 3ccb30525c246bfa39cf13f0a828d75c92e5ce8e Mon Sep 17 00:00:00 2001 From: Anthony Ettinger Date: Thu, 29 Oct 2026 08:21:04 +0000 Subject: [PATCH 1/4] dev2: add W3BS Net wildcard gateway vhost --- dev2/sites.d/net-gateway.w3bs.org.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 dev2/sites.d/net-gateway.w3bs.org.json diff --git a/dev2/sites.d/net-gateway.w3bs.org.json b/dev2/sites.d/net-gateway.w3bs.org.json new file mode 100644 index 0000000..a2327ce --- /dev/null +++ b/dev2/sites.d/net-gateway.w3bs.org.json @@ -0,0 +1,17 @@ +{ + "site": "net-gateway.w3bs.org", + "nginx_app": false, + "domains": [ + "*.whatever.w3bs.org" + ], + "port": 3209, + "max_body": "64m", + "proxies": [ + { + "host": "*.whatever.w3bs.org", + "port": 3209, + "max_body": "64m" + } + ], + "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." +} From d87bf34ddbcd8add50ef2c0858576e0b14685519 Mon Sep 17 00:00:00 2001 From: Anthony Ettinger Date: Thu, 29 Oct 2026 08:47:28 +0000 Subject: [PATCH 2/4] dev2: route W3BS agent namespace hosts --- dev2/sites.d/net-gateway.w3bs.org.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dev2/sites.d/net-gateway.w3bs.org.json b/dev2/sites.d/net-gateway.w3bs.org.json index a2327ce..1539a69 100644 --- a/dev2/sites.d/net-gateway.w3bs.org.json +++ b/dev2/sites.d/net-gateway.w3bs.org.json @@ -2,7 +2,8 @@ "site": "net-gateway.w3bs.org", "nginx_app": false, "domains": [ - "*.whatever.w3bs.org" + "*.whatever.w3bs.org", + "*.agent.w3bs.org" ], "port": 3209, "max_body": "64m", @@ -11,7 +12,12 @@ "host": "*.whatever.w3bs.org", "port": 3209, "max_body": "64m" + }, + { + "host": "*.agent.w3bs.org", + "port": 3209, + "max_body": "64m" } ], - "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." + "notes": "Dedicated W3BS Net name-routing vhost. DNS and TLS cover *.whatever.w3bs.org and *.agent.w3bs.org; add another suffix here when W3BS Net opts in that namespace. The independent W3BS registry decides active names." } From bc3402676eabb88de47a7fb98cd4010426b7c318 Mon Sep 17 00:00:00 2001 From: Anthony Ettinger Date: Thu, 29 Oct 2026 08:49:19 +0000 Subject: [PATCH 3/4] fix(dev2): preserve nested wildcard DNS names --- dev2/dev2-site | 1 - 1 file changed, 1 deletion(-) diff --git a/dev2/dev2-site b/dev2/dev2-site index d2f89aa..0809b7b 100755 --- a/dev2/dev2-site +++ b/dev2/dev2-site @@ -1677,7 +1677,6 @@ def cmd_dns(args): recs = recs.get("records", recs) if isinstance(recs, dict) else recs for d in ds: host = "@" if d == zone else d[: -len(zone) - 1] - if host.startswith("*"): note(f"{d}: wildcard; set A * manually if needed"); host = "*" for r in recs: if r.get("name") == d and r.get("type") in ("ALIAS", "CNAME", "A", "AAAA"): sh(["porkbun", "rm", zone, host, "--type", r["type"], "--yes"], check=False) From e1d3627a3f7599a505204a8f3a0f4ad73f0164d1 Mon Sep 17 00:00:00 2001 From: Anthony Ettinger Date: Thu, 29 Oct 2026 09:01:50 +0000 Subject: [PATCH 4/4] dev2: host W3BS hacker backfill names --- dev2/sites.d/net-gateway.w3bs.org.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dev2/sites.d/net-gateway.w3bs.org.json b/dev2/sites.d/net-gateway.w3bs.org.json index 1539a69..1a24ada 100644 --- a/dev2/sites.d/net-gateway.w3bs.org.json +++ b/dev2/sites.d/net-gateway.w3bs.org.json @@ -3,7 +3,8 @@ "nginx_app": false, "domains": [ "*.whatever.w3bs.org", - "*.agent.w3bs.org" + "*.agent.w3bs.org", + "*.hacker.w3bs.org" ], "port": 3209, "max_body": "64m", @@ -17,7 +18,12 @@ "host": "*.agent.w3bs.org", "port": 3209, "max_body": "64m" + }, + { + "host": "*.hacker.w3bs.org", + "port": 3209, + "max_body": "64m" } ], - "notes": "Dedicated W3BS Net name-routing vhost. DNS and TLS cover *.whatever.w3bs.org and *.agent.w3bs.org; add another suffix here when W3BS Net opts in that namespace. The independent W3BS registry decides active names." + "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." }