Commit Graph

30 Commits

Author SHA1 Message Date
Michał Ordon 62d7c44efc feat: add REDIS_KEY_PREFIX env var for Redis ACL namespace isolation (#365)
* feat: add REDIS_KEY_PREFIX env var for Redis ACL namespace isolation

Adds optional REDIS_KEY_PREFIX env var that prefixes all Redis keys
(BullMQ queues via `prefix` option, cache/lock/rate-limit keys via
`redisKey()` helper). When unset, behavior is unchanged (BullMQ
defaults to "bull:", cache keys are unprefixed).

This enables self-hosters using Redis ACL multi-tenancy to restrict
useSend to its own key namespace (e.g. `~usesend:*`).

16 files changed across env schema, Redis module, 9 BullMQ queue/worker
files, and 5 direct Redis key operation sites.

* docs: add REDIS_KEY_PREFIX to self-host assets and fix docker run example

Add REDIS_KEY_PREFIX env var to docker/prod/compose.yml, .env.example,
.env.selfhost.example, and self-hosting docs. Fix missing trailing
backslashes in standalone docker run example.

* fix(redis): disable ioredis ready check and BullMQ version check

Redis ACL blocks INFO command (in @dangerous category). ioredis uses
INFO for ready check, BullMQ uses it for version detection. Without
these flags, BullMQ workers fail to initialize and silently stop
processing jobs.

- Add enableReadyCheck: false to ioredis connection
- Add skipVersionCheck: true to all 5 Queue + 5 Worker constructors

* fix(redis): add skipVersionCheck to remaining BullMQ job queues

Add skipVersionCheck: true to Queue and Worker constructors in all 4 job
files (campaign-scheduler, cleanup-email-bodies, usage-job,
webhook-cleanup) to match the pattern already used in service files.
This prevents BullMQ version mismatch errors when using REDIS_KEY_PREFIX
with Redis ACL namespace isolation.
2026-03-02 08:12:47 +11:00
KM Koushik 3e3f6d521a Display Docker image version in sidebar (#304)
Co-authored-by: Claude <noreply@anthropic.com>
2025-12-07 22:18:56 +11:00
Deepak S 357d561a8e "[feat] Emails retention periods/cleanup #158" (#286) 2025-11-29 08:13:41 +11:00
KM Koushik 77b0239b92 add contact to users on waitlist removal (#276) 2025-10-19 15:08:33 +11:00
KM Koushik 87c772dcc4 add waitlist submission form (#238) 2025-09-18 21:00:59 +10:00
KM Koushik 8c8af1f846 use bucket from environment variable 2025-09-17 18:08:57 +10:00
KM Koushik 9723c78825 feat: add auth email rate limit (#220) 2025-09-09 23:08:59 +10:00
KM Koushik 07c53d3f58 rebrand to useSend (#210) 2025-09-03 08:21:55 +10:00
KM Koushik 3f9094e95d feat: make billing better (#203) 2025-08-25 22:35:21 +10:00
KMKoushik d107d59dfd change smtp env to server env 2025-03-31 23:18:01 +11:00
Sidharth Babu 5cf5022aed refactor: dynamic SMTP for self host (#138)
Co-authored-by: KM Koushik <koushikmohan1996@gmail.com>
2025-03-29 14:40:25 +11:00
KM Koushik 403ad8b93e add stripe (#121)
* add some stripe stuff

* more stripe stuff

* more stripe things

* more stripr stuff

* more stripe stuff

* more stripe stuff

* add more stuff

* add more stripe stuff

* more stuff

* fix types
2025-03-23 07:06:56 +11:00
KM Koushik 0a1d93ac60 make dev setup better (#116)
* make dev setup better

* chage docs

* remove the need of github login
2025-03-17 21:33:43 +11:00
Arxk 9c5da6dca6 Added transaction to creating an SES setting & upgraded to Prisma ORM 6 (#109)
* Added transaction to creating SES setting & upgraded Prisma to Prisma ORM 6

* Keep logging of the queue status in

---------

Co-authored-by: Kumarion <121711454+Kumarion@users.noreply.github.com>
2025-03-08 23:05:28 +11:00
KM Koushik 5e297ac23a fix rate limit set to default (#83) 2024-11-29 10:47:01 +11:00
KMKoushik 2db31cda35 disable multiple team creation for self-hosters 2024-10-20 08:25:48 +11:00
Xavi Velàsquez 2391d1c306 Add environment variable to enable team creation for new users in self-hosted deployments (#74) 2024-10-20 07:23:14 +11:00
KM Koushik f9105971f0 upload image option (#64) 2024-08-26 20:46:38 +10:00
KMKoushik 0941c4b5ad Fix email login 2024-08-13 07:42:44 +10:00
KMKoushik e8d87ca20d Fix email login 2024-08-13 07:41:09 +10:00
Harsh Shrikant Bhat 0c072579b9 perf: Enable Prisma Optimize (#44)
* Enable Prisma Optimize

* Added Environment variable to toggle on and off the Prisma Optimize

---------

Co-authored-by: harshsbhat <icybhat@gmail.com>
2024-08-01 06:35:14 +10:00
KMKoushik 88549febfe Make some envs optional 2024-06-28 17:47:13 +10:00
KM Koushik f77a8829be Improve Self host setup (#30)
* Add self host setup

* Improve blunders

* Move to bull mq

* More changes

* Add example code for sending test emails
2024-06-24 08:21:37 +10:00
KMKoushik ee93855cc0 Fix, pgboss connection issue 2024-06-12 18:10:01 +10:00
KM Koushik 18b523912d Improve self host support (#28)
* Add docker setup for self hosting

* Add ses settings tables
2024-06-10 17:40:42 +10:00
KM Koushik 8b61223153 Add API rate limit (#23) 2024-05-30 20:01:20 +10:00
KM Koushik 64c7613d8c Add email queue (#1)
* Add pgboss queue support

* Implement queue for sending emails

* Add migrations
2024-05-10 16:21:26 +10:00
KMKoushik 3a462fb50b Add login flow 2024-04-28 18:55:04 +10:00
KMKoushik bbc64b5392 Add MVP version 2024-03-24 17:43:56 +11:00
KMKoushik 9032efa9b2 Setup app 2024-03-19 09:34:23 +11:00