Implement server-side push notifications with scheduler and always-remind option

This commit is contained in:
Gemini Agent
2026-01-25 03:14:04 +00:00
parent ad8b45ee1f
commit 90f54766a5
17 changed files with 2429 additions and 21 deletions

View File

@@ -9,3 +9,25 @@ services:
- ./data:/app/data
environment:
- DATABASE_PATH=/app/data/quietthanks.db
- NEXT_PUBLIC_VAPID_PUBLIC_KEY=BIKukAq5-KPwJAMpksxD7UNL8XfF-oJOI0CLGGZQAY93igZgf1PYa9MVvS8GaBv-vv9ckcXPCEKdzWDCtOyQpKg
- VAPID_PRIVATE_KEY=IBkQ14BLKFCg2PmGOWheC7xfYHS5J49vXS8duHCeDBw
- VAPID_EMAIL=mailto:admin@quietthanks.local
- TZ=Australia/Perth
scheduler:
image: alpine
restart: unless-stopped
depends_on:
quietthanks:
condition: service_started
environment:
- TZ=Australia/Perth
entrypoint: /bin/sh
command: >
-c "apk add --no-cache curl &&
while true; do
echo 'Checking for notifications...' &&
curl -s -X POST http://quietthanks:3000/api/notifications/send &&
echo '' &&
sleep 60;
done"