Skip to content

v1.6.0

Latest

Choose a tag to compare

@flavorjones flavorjones released this 01 Dec 20:45
7869189

Campfire 1.6.0

Campfire 1.6 adds optional email for password resets, caches pages in memory, and moves to Ruby 4.0.

Upgrading

  • The upgrade runs two migrations. On a test copy with 284,000 messages they took 8 ms.
  • You can roll back to 1.5.13 without restoring a backup: 1.5.13 boots and works on a database that 1.6.0 migrated.
  • Email is optional and off unless you set it up. Nothing changes for an install that sets none of the new variables.
  • Each Puma worker now caches pages and fragments in memory, with a 64 MiB budget for each. With many small entries, the caches can use about twice their budget. Campfire starts two workers for every three CPUs that the container may use. Set CAMPFIRE_RESPONSE_CACHE_MB=0 to turn the page cache off, or WEB_CONCURRENCY to choose the number of workers.

Password resets by email

With email set up, a "Forgot your password?" link on the sign-in page sends a reset link that works once, for 15 minutes (#100, #455).

On ONCE, fill in the Email settings on the dashboard. With Docker, set:

  • SMTP_ADDRESS, MAILER_FROM_ADDRESS and BASE_URL (required; BASE_URL defaults to https:// plus TLS_DOMAIN)
  • SMTP_PORT, SMTP_USERNAME, SMTP_PASSWORD
  • SMTP_ENABLED, SMTP_TLS, SMTP_DOMAIN, SMTP_AUTHENTICATION, SMTP_SSL_VERIFY_MODE

The email guide explains each one. Campfire logs at boot whether email is on, and why not when it is off.

Faster pages

  • Room, message, sidebar and search pages come from an in-memory cache in each worker. Any write to the database invalidates it, and every request still checks sign-in and room access.
  • Message fragments that hold nothing personal are shared between viewers (#412).
  • SQLite now checkpoints its write-ahead log in the background instead of during requests (#339).
  • Rooms keep a count of their messages, so bot pages no longer count them (#337).

Fixes

  • A page that was disconnected catches up when it reconnects: it shows missed messages and removes deleted ones (#405, #414).
  • A file that fails to upload is marked as failed, and the rest still send (#391, #398).
  • Videos play past five minutes, and Thruster serves files from disk (#359, #361, #362).
  • A push notification for a long message shows its start (#395).
  • Dollar signs stay in a message while it sends (#397).
  • The people filter finds names with spaces and punctuation (#390).
  • Two requests for the same direct room make one room (#409).
  • Banning a user who signed in from a private address, such as over a LAN or a VPN, no longer fails (#305).
  • Bots: an empty webhook answer posts nothing, an unreachable webhook gets a reply, an empty edit is refused, and a non-UTF-8 body gets a 400 (#393, #400, #399, #396).
  • The message composer grows to 15 lines, then scrolls (#58).

Under the hood

  • Ruby 4.0.10, Puma 8.0.3, Sentry 7.1 and rack 3.2.9, on Rails main at 439aad5a.
  • Kredis is gone; nothing used it (#389).
  • Puma warms up its heap before it forks workers (#385).

Full changelog: v1.5.13...v1.6.0