From 76d99c3cf3aa4fa4c25d7022eb90b419372e2d02 Mon Sep 17 00:00:00 2001 From: phil Date: Mon, 2 Feb 2026 17:41:05 -0500 Subject: [PATCH] try not to forget this next time --- slingshot/readme.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/slingshot/readme.md b/slingshot/readme.md index 2e97416..efedaf5 100644 --- a/slingshot/readme.md +++ b/slingshot/readme.md @@ -13,3 +13,29 @@ on macos: ```bash ulimit -n 4096 ``` + +## prod deploy + +you **must** setcap the binary to run it on apollo!!!! + +```bash +sudo setcap CAP_NET_BIND_SERVICE=+eip ../target/release/slingshot +``` + +then run with + +```bash +RUST_BACKTRACE=1 RUST_LOG=info,slingshot=trace /home/ubuntu/links/target/release/slingshot \ + --jetstream wss://jetstream1.us-east.fire.hose.cam/subscribe \ + --healthcheck https://hc-ping.com/[REDACTED] \ + --cache-dir ./foyer \ + --record-cache-memory-mb 2048 \ + --record-cache-disk-gb 32 \ + --identity-cache-memory-mb 1024 \ + --identity-cache-disk-gb 8 \ + --collect-metrics \ + --acme-ipv6 \ + --acme-domain slingshot.microcosm.blue \ + --acme-contact phil@bad-example.com \ + --acme-cache-path /home/ubuntu/certs +``` -- 2.51.2