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:
1 parent
b600b92d76
commit
df4ae5a17a
7 files changed
+89
-74
No files matched your search
+3
-3
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env node
|
||||
// generate.js — single source of truth for per-browser Neko files.
|
||||
// Usage: node generate.js <browserId> [uaKey] [proxyJson]
|
||||
// browserId: b1..b8 (required)
|
||||
// browserId: b1..b10 (required)
|
||||
// uaKey: one of the keys in manager/config.json uaPresets (optional,
|
||||
// defaults to the browser's configured uaKey)
|
||||
// proxyJson: JSON string, e.g. '{"type":"direct"}' or
|
||||
@@ -9,7 +9,7 @@
|
||||
// (optional, defaults to {"type":"direct"})
|
||||
// Writes: <FARM_ROOT>/<id>/chromium.conf and <FARM_ROOT>/<id>/meta.json
|
||||
// FARM_ROOT env var overrides the output root (default /opt/farm).
|
||||
// Only ever called with validated arguments (browser id ^b[1-8]$, ua key from
|
||||
// Only ever called with validated arguments (browser id ^b(10|[1-9])$, ua key from
|
||||
// the preset list, proxy validated by the caller). Never passes user input
|
||||
// to a shell.
|
||||
'use strict';
|
||||
@@ -32,7 +32,7 @@ function main() {
|
||||
const uaKeyArg = process.argv[3] || '';
|
||||
const proxyJson = process.argv[4] || '';
|
||||
|
||||
if (!/^b[1-8]$/.test(id || '')) fail('invalid browser id (want b1..b8)');
|
||||
if (!/^b(10|[1-9])$/.test(id || '')) fail('invalid browser id (want b1..b10)');
|
||||
|
||||
let cfg;
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user