From 9900fcb9dbdb133658c32225e8468b756c7bb0f1 Mon Sep 17 00:00:00 2001 From: astar76 Date: Wed, 2 Dec 2026 12:07:45 -0600 Subject: [PATCH] docs: Astar Hub moved to astar76sites.tail7c4f5e.ts.net Co-Authored-By: Claude Opus 5.5 --- CLAUDE.md | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index b6b81f7..2f2aa4e 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -45,7 +45,7 @@ Never modify: `data/` contents on the server (`/root/Dezio/data`, live user data - Build and test on this PC: `source ~/.cargo/env; cargo build --release` and `cargo test` (about 227 unit tests). Tests that need the internet are `#[ignore]`d (`cargo test live_ -- --ignored`). - Without `DEZIO_LIVE=1` the binary only lists its commands and exits. **Never run it with the real token on this PC**: the live bot would answer twice. - Local website for testing: `cargo build && DISCORD_BOT_TOKEN=dev-placeholder target/debug/dezio --web-dev` → http://127.0.0.1:8099 (also the `dezio-web-dev` entry in `.claude/launch.json`). -- Server: the Chromebook, `ssh root@192.168.1.71` (Arch Linux, x86_64). Bot in `/root/Dezio` (binary `dezio`, `assets/`, `web/`, `data/`, `.env`). `dezio-bot.service` runs `/root/Dezio/dezio --headless`, Restart=always; website on 127.0.0.1:8080, public at https://archlinux.tail7c4f5e.ts.net. Logs: `journalctl -u dezio-bot`. +- Server: the Chromebook, `ssh root@192.168.1.71` (Arch Linux, x86_64). Bot in `/root/Dezio` (binary `dezio`, `assets/`, `web/`, `data/`, `.env`). `dezio-bot.service` runs `/root/Dezio/dezio --headless`, Restart=always; website on 127.0.0.1:8080, public at https://astar76sites.tail7c4f5e.ts.net. Logs: `journalctl -u dezio-bot`. - The server's line is slow: measured about 425 KB/s down and **114 KB/s (≈ 0.9 Mbit/s) up**, on `wlan0`. `dezio-shape.service` (deploy/shape-upload.sh, installed as `/usr/local/bin/dezio-shape`) caps internet-bound upload at 800 kbit with fq_codel so voice packets go first. Voice and every upload share that. - Discord HTTP client: one twilight `Client` with a 180 s timeout for every call (`src/main.rs`). `/download` retries uploads 3 times (`UPLOAD_RETRIES`), so a file that can't finish in 180 s costs 9+ minutes (seen 2026-11-12: a 9.2 MB video, 3 timeouts, handler took 792 s). - Discord's attachment limit for bots is 10 MiB unless the server is boosted (tier 2: 50 MiB, tier 3: 100 MiB). `media::upload_limit` reads the server's tier; `FALLBACK_UPLOAD_LIMIT` lives in `download/plan.rs`. @@ -64,7 +64,7 @@ Never modify: `data/` contents on the server (`/root/Dezio/data`, live user data - Upload time, not file size, is what breaks: at ~100 KB/s a 10 MiB file needs ~105 s on an idle line and much longer with voice. Any upload path must think in seconds. - Retrying a whole upload that timed out just repeats the timeout. Retry only on errors that can succeed the second time. - yt-dlp, ffmpeg, gallery-dl and curl are child processes fed user links: never pass user text where it can become an option (`--`), keep the private-network check (`safe_redirects`, music's check) on every fetch. -- Security testing runs against a **local copy only** (`--web-dev` on 127.0.0.1). Never send attack traffic to https://archlinux.tail7c4f5e.ts.net or Discord. Never connect to Tor or proxies. +- Security testing runs against a **local copy only** (`--web-dev` on 127.0.0.1). Never send attack traffic to https://astar76sites.tail7c4f5e.ts.net or Discord. Never connect to Tor or proxies. - Discord changes can't be tested on this PC; things only the owner checks in Discord are marked 🧑. - `/help` pages and slash registration change when commands are added or removed: run the help-limits test. diff --git a/README.md b/README.md index 9e32a24..aa5f04e 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@

➕ Add to your server · - Website · + Website · Support server