10 browsers: add b9 (Edge macOS) + b10 (Chrome Android Samsung)

- config.json: 10 browsers, 10 UA presets, vpsIp 49.128.189.254
- generate.js / server.js: id validation ^b(10|[1-9])$
- install.sh: loops seq 1..10, VPS_IP auto-detected via ifconfig.me,
  UFW ranges 18081:18090 / 52000:52999
- index.html: grid 5x2, subtitle 10 browser
- paste-sync-test: 10 cells, 17/17 pass
- README: 10-browser docs, manual add section now covers b11+
This commit is contained in:
maspend committed 2026-12-02 14:27:32 +07:00
1 parent b600b92d76
commit df4ae5a17a
7 files changed
+89 -74

No files matched your search

+4 -4
View File
@@ -1,8 +1,8 @@
// Browser Farm manager — serves the grid UI and controls 8 isolated Neko
// browsers (farm-b1..farm-b8) via docker. Listens on 127.0.0.1:18080;
// Browser Farm manager — serves the grid UI and controls 10 isolated Neko
// browsers (farm-b1..farm-b10) via docker. Listens on 127.0.0.1:18080;
// nginx proxies port 80 to it. No database: per-browser runtime state lives
// in /opt/farm/<id>/meta.json, static identity in manager/config.json.
// Security: browser ids are validated strictly (^b[1-8]$) and every docker
// Security: browser ids are validated strictly (^b(10|[1-9])$) and every docker
// call uses execFile with an argument array — no user input ever reaches a
// shell. One password (FARM_PASSWORD) gates the whole grid (httpOnly
// farm_auth cookie, 7 days); the manager logs in to each Neko instance
@@ -112,7 +112,7 @@ function loadBrowser(id) {
}
function validateId(id) {
return /^b[1-8]$/.test(id || '');
return /^b(10|[1-9])$/.test(id || '');
}
async function dockerStatus(id) {