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 +```