mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-03 09:52:50 +08:00
Anonymous usage ping from self-hosted gateways
On startup and once a day the gateway sends a random instance id and its version to gateway.webspeak3.de (TELEMETRY=0 turns it off, the startup log says so). The standalone store server receives it with PING_DATA_FILE set, keeps id/version/first/last seen without IPs, and serves admin-only counts. The release tag is baked into the image as WEBSPEAK3_VERSION. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
This commit is contained in:
1 parent
603cedd907
commit
cc70bc4736
8 files changed
+172
-1
No files matched your search
@@ -136,7 +136,7 @@ async function saveStoreThemes(themes: StoreTheme[]): Promise<void> {
|
||||
await rename(tmp, STORE_DATA_FILE);
|
||||
}
|
||||
|
||||
function isAdminRequest(req: IncomingMessage): boolean {
|
||||
export function isAdminRequest(req: IncomingMessage): boolean {
|
||||
const authHeader = req.headers.authorization ?? "";
|
||||
return authHeader.startsWith("Bearer ") && isValidStoreAdminToken(authHeader.slice("Bearer ".length));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user