diff options
| author | Gabriel Schneider <[email protected]> | 2026-10-12 15:45:52 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-17 12:15:16 -0300 |
| commit | fd7775b4e9c24b6bb8f664beb7d4fd2ccecd8d85 (patch) | |
| tree | 33a4ba949a2c883d3cbd13d7fd069770f013f166 /web/static/catalog.html | |
| parent | 7f418a6bb3c2d5319d781a61a14aeaf15aff4c89 (diff) | |
| download | cloud9-fd7775b4e9c24b6bb8f664beb7d4fd2ccecd8d85.tar.gz cloud9-fd7775b4e9c24b6bb8f664beb7d4fd2ccecd8d85.zip | |
9web: serve local sites with 9P build controls and passive listener discovery
Add optional catalogue mode with an explicit site registry, per-site HTTP roots, MIME/index/pretty-URL handling, HEAD and byte ranges. Existing generated sites are available immediately, without preview processes.
Expose build, watch, cancel, status, logs and state events through the shared 9P backend and HTTP dashboard. Supervise process groups, coalesce queued rebuilds and watch configured source paths. Discover Linux TCP listeners by socket inode ownership and executable/argument recognizers; never probe endpoints.
Document configuration, the user-systemd unit, workstation ports, network access assumptions and limitations including in-place publication and static-only Worker sites. Keep the original upstream gateway mode.
Validation: catalogue integration suite (including paginated directory reads, cancellation and parked events), existing HTTP filesystem and mux suites, real 9ns mount, dual-stack service restart and all five workstation sites. Real entomology build: 129 pages, zero failures.
Diffstat (limited to 'web/static/catalog.html')
| -rw-r--r-- | web/static/catalog.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/web/static/catalog.html b/web/static/catalog.html new file mode 100644 index 0000000..2160612 --- /dev/null +++ b/web/static/catalog.html @@ -0,0 +1,14 @@ +<!doctype html> +<html lang="en"><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"> +<title>9web ยท local sites</title> +<style> +:root{color-scheme:light dark;font:16px/1.5 system-ui;background:#151917;color:#e3e9df}body{max-width:1100px;margin:3rem auto;padding:0 1.5rem}h1{font-size:2.5rem;margin-bottom:0}a{color:#b8dfa6}header p{color:#aab8a6}.sites{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:1rem}article{background:#212922;border:1px solid #3c4b3c;border-radius:10px;padding:1.2rem}article h2{margin:0 0 .6rem;font-size:1.3rem}code,pre{font:13px/1.5 monospace;overflow-wrap:anywhere}button{background:#324631;color:inherit;border:1px solid #61765a;border-radius:5px;padding:.4rem .7rem;cursor:pointer;margin:.4rem .3rem .1rem 0}button:disabled{opacity:.4}table{width:100%;border-collapse:collapse}td,th{text-align:left;border-bottom:1px solid #354234;padding:.6rem;overflow-wrap:anywhere}th{color:#aab8a6}pre{max-height:35rem;overflow:auto;background:#101410;padding:1rem;white-space:pre-wrap}small{color:#aab8a6}.error{color:#ffb4a9}.toolbar{display:flex;gap:1rem;align-items:center}dialog{width:min(850px,85vw);background:#212922;color:inherit;border:1px solid #61765a}#message{min-height:1.5em}details{margin-top:1.5rem}@media(max-width:650px){td,th{padding:.4rem;font-size:13px}.process{display:none}} +</style> +<header><h1>9web</h1><p>Local sites, builds, and listening services.</p></header> +<p id="message" role="status"></p><main><div id="sites" class="sites"></div> +<div class="toolbar"><h2>HTTP services</h2><a href="/fs/">9P tree</a></div> +<p><small>Identified from socket ownership and process arguments. No endpoint probing. Loopback links work only on this computer.</small></p> +<table><thead><tr><th>Service</th><th>Address</th><th class="process">Process</th><th>Evidence</th></tr></thead><tbody id="services"></tbody></table> +<details><summary id="unknown-title">Other listeners</summary><table><tbody id="unknown"></tbody></table></details></main> +<dialog id="logs"><button id="close-log">Close</button><h2 id="log-title"></h2><pre id="log-text"></pre></dialog> +<script src="/_cloud9/catalog.js"></script></html> |
