-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
44 lines (36 loc) · 1.27 KB
/
Copy path.env.example
File metadata and controls
44 lines (36 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# JWT Secret (change in production!)
JWT_SECRET=change-this-secret-in-production-at-least-32-characters
# Sentry DSN (optional)
SENTRY_DSN=
# Database
DATABASE_URL=postgres://postgres:postgres@localhost:5432/multitenancy_chat
# Redis
REDIS_URL=redis://localhost:6379
# Admin API token (optional, if not set - all admin requests allowed)
ADMIN_API_TOKEN=
# Outgoing Webhooks (optional)
# URL to send webhook events to
WEBHOOK_URL=
# Secret for HMAC-SHA256 signing
WEBHOOK_SECRET=
# Smart Notifications (via job queue)
# Delay before sending notification webhook (0 = instant, default: 30)
NOTIFICATION_DELAY_SECS=30
# Concurrency for notification workers (default: 2)
NOTIFICATION_CONCURRENCY=2
# Auto-Archive (via job queue)
# Cron schedule for auto-archive job (default: every 5 minutes)
ARCHIVE_CRON=0 */5 * * * *
# Seconds of inactivity before auto-archive (default: 259200 = 3 days)
ARCHIVE_AFTER_SECS=259200
# S3 / MinIO Configuration
S3_ACCESS_KEY_ID=minioadmin
S3_SECRET_ACCESS_KEY=minioadmin
S3_BUCKET=mtchat-attachments
S3_ENDPOINT=http://localhost:9000
S3_REGION=us-east-1
# Public endpoint for presigned URLs (if different from S3_ENDPOINT)
S3_PUBLIC_ENDPOINT=http://localhost:9000
# Presigned URL expiry times in seconds
S3_PRESIGN_UPLOAD_EXPIRY=300
S3_PRESIGN_DOWNLOAD_EXPIRY=3600