-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
44 lines (37 loc) · 2.57 KB
/
.env.example
File metadata and controls
44 lines (37 loc) · 2.57 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
# =============================================
# OpenMail — Environment Variables
# =============================================
# Copy this file to api/.env (and adjust for each service).
# See README.md → Email Setup for full instructions.
# ── Auth ──────────────────────────────────────────────────────────────────────
# Generate with: openssl rand -base64 32
BETTER_AUTH_SECRET=change-me-to-a-random-32-char-secret
# Public URL of the api service (used for password reset links, cookie domains)
BETTER_AUTH_URL=http://localhost:3001
# ── Public service URLs ────────────────────────────────────────────────────────
WEB_URL=http://localhost:5173
TRACKER_URL=http://localhost:3003
# ── Database & Redis ──────────────────────────────────────────────────────────
DATABASE_URL=postgresql://user:password@localhost:5432/openmail
REDIS_URL=redis://localhost:6379
# ── Resend (email sending) ────────────────────────────────────────────────────
# Get your API key at https://resend.com
# The key's domain must have the sending domain(s) you configure below verified.
RESEND_API_KEY=re_your_resend_api_key
# ── Platform transactional emails ────────────────────────────────────────────
# These control who sends invite emails and password reset emails.
#
# PLATFORM_FROM_EMAIL must be an address whose domain is verified in Resend.
# Steps:
# 1. Log in to Resend → Domains → Add Domain (e.g. mail.yourdomain.com)
# 2. Add the DNS records Resend gives you to your domain registrar
# 3. Wait for verification (usually < 5 minutes)
# 4. Set PLATFORM_FROM_EMAIL to an address on that domain
#
PLATFORM_FROM_NAME=OpenMail
# ── Default workspace email sending ──────────────────────────────────────────
# Used for broadcast/campaign emails from workspaces that haven't configured
# their own Resend API key in Settings → Email Sending.
DEFAULT_FROM_NAME=OpenMail