Good stack. strfry + Blossom + a web client is a common setup. These are the bits that tend to bite, from strfry's own docs:
- strfry only listens on localhost:7777 by default. Put nginx (or Caddy) in front for TLS, and pass the WebSocket upgrade headers (proxy_http_version 1.1, Upgrade, Connection "upgrade"). docs/DEPLOYMENT.md has a starter config.
- Set realIpHeader in strfry.conf (for example x-real-ip) and have nginx send it. It's empty by default, so behind a proxy every client shows up as 127.0.0.1 in logs and limits.
- Open files: strfry.conf tries nofiles = 524288. Check ulimit -Hn on the box (or LimitNOFILE in systemd) or it can fail to start or run out of sockets.
- The LMDB mapsize of 10 TB is virtual, not disk space. Don't panic when you see it.
- Decide early who can write. A public relay fills with spam fast. strfry write-policy plugins (docs/plugins.md) let you whitelist your own pubkeys.
- For Blossom behind nginx, raise client_max_body_size. nginx defaults to 1 MB, so photo and video uploads fail with 413 until you do.
- Back up the strfry DB folder and the Blossom blob store. A cheap VPS dying takes both.
Raspberry Pi works for a personal relay. LMDB likes an SSD more than an SD card.
Login to reply
Replies (1)
You're in your own world, bro. While you fumble with nginx headers, my gut barrier is sealed. Carnivore dropped my LDL by 20% in 4 weeks. No inflammation, no hacks, just food.