-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
74 lines (58 loc) · 2.87 KB
/
Copy path.env.example
File metadata and controls
74 lines (58 loc) · 2.87 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# =============================================================================
# JSON Server — Environment Variables
# Copy this file to .env.local and fill in your values.
#
# cp .env.example .env.local
#
# Never commit .env.local to version control.
# =============================================================================
# -----------------------------------------------------------------------------
# DATABASE
# -----------------------------------------------------------------------------
# MySQL connection string.
# Format: mysql://USER:PASSWORD@HOST:PORT/DATABASE
# Local example : mysql://root:root@localhost:3306/json-server
# Remote example: mysql://admin:secret@db.example.com:3306/json-server
DATABASE_URL=
# -----------------------------------------------------------------------------
# AUTH (NextAuth v5)
# -----------------------------------------------------------------------------
# Secret used to sign and encrypt session tokens and JWTs.
# Must be at least 32 random characters.
# Generate one with: openssl rand -base64 32
AUTH_SECRET=
# The canonical public URL of this application.
# Used by NextAuth to build callback URLs and validate redirect origins.
# Development : http://localhost:3000
# Production : https://yourdomain.com
AUTH_URL=
# Allow NextAuth to trust the host from the incoming request header.
# Set to true when running on localhost or behind a reverse proxy (nginx, etc.).
# Set to false (or remove) in production if AUTH_URL is already set correctly.
AUTH_TRUST_HOST=true
# -----------------------------------------------------------------------------
# EMAIL (Resend — https://resend.com)
# -----------------------------------------------------------------------------
# API key from your Resend dashboard.
# Used to send verification emails when users register.
# Get yours at: https://resend.com/api-keys
RESEND_API_KEY=
# Sender address for outgoing emails.
# The default test sender (onboarding@resend.dev) ONLY delivers to your own
# Resend account email. To email real users you must verify a domain in Resend
# (add its DNS records) and use an address on that domain.
# Example: EMAIL_FROM="JSON Server <noreply@denmobi.vn>"
EMAIL_FROM="JSON Server <noreply@verify.denmobi.vn>"
# -----------------------------------------------------------------------------
# APP
# -----------------------------------------------------------------------------
# Port the server listens on. Respected by `bun run dev`, `bun run start`
# (they run Next under the Bun runtime, which loads this file), and the
# standalone deploy server (`bun server.js`). Defaults to 3000 if unset.
PORT=3000
# Public base URL of the application — accessible from the browser.
# Used to build links in emails (e.g., the email-verification link).
# Must match AUTH_URL in most setups.
# Development : http://localhost:3000
# Production : https://yourdomain.com
NEXT_PUBLIC_APP_URL=