A tool for parsing traffic on the jetstream and applying a moderation workstream based on regexp based rules

16: Minor updates to defaults

+9 -9
+7 -7
.env.example
··· 1 - MOD_DID=did:plc:xxx 2 - OZONE_URL=ozone.example.xyz 3 - OZONE_PDS=mushroom.us-region.host.bsky.network 4 - BSKY_HANDLE=mod.example.xyz 5 - BSKY_PASSWORD=xxxx 1 + MOD_DID= 2 + OZONE_URL= 3 + OZONE_PDS= 4 + BSKY_HANDLE= 5 + BSKY_PASSWORD= 6 6 HOST=127.0.0.1 7 - PORT=4000 // Not currently used 7 + PORT=4000 8 8 METRICS_PORT=4001 9 - FIREHOSE_URL=wss://jetstream1.us-east.bsky.network/subscribe 9 + FIREHOSE_URL= 10 10 CURSOR_UPDATE_INTERVAL=10000 11 11 LABEL_LIMIT=2900 * 1000 12 12 LABEL_LIMIT_WAIT=300 * 1000
+1 -1
README.md
··· 95 95 | `HOST` | The host on which the server runs. | `127.0.0.1` | 96 96 | `PORT` | The port for the main application (currently unused). | `4100` | 97 97 | `METRICS_PORT` | The port for the Prometheus metrics server. | `4101` | 98 - | `FIREHOSE_URL` | The WebSocket URL for the Bluesky firehose. | `wss://jetstream.atproto.tools/subscribe` | 98 + | `FIREHOSE_URL` | The WebSocket URL for the Bluesky firehose. | `FIREHOSE_URL=wss://jetstream1.us-east.bsky.network/subscribe` | 99 99 | `CURSOR_UPDATE_INTERVAL` | How often to save the firehose cursor to disk (in milliseconds). | `60000` | 100 100 | `LABEL_LIMIT` | (Optional) API call limit for labeling. | `undefined` | 101 101 | `LABEL_LIMIT_WAIT` | (Optional) Wait time when label limit is hit. | `undefined` |
+1 -1
src/config.ts
··· 11 11 ? Number(process.env.METRICS_PORT) 12 12 : 4101; // Left this intact from the code I adapted this from 13 13 export const FIREHOSE_URL = 14 - process.env.FIREHOSE_URL ?? "wss://jetstream.atproto.tools/subscribe"; 14 + process.env.FIREHOSE_URL ?? "wss://jetstream1.us-east.bsky.network/subscribe"; 15 15 export const WANTED_COLLECTION = [ 16 16 "app.bsky.feed.post", 17 17 "app.bsky.actor.defs",