-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
55 lines (42 loc) · 1.92 KB
/
.env.example
File metadata and controls
55 lines (42 loc) · 1.92 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
# Node environment - development/production/test
# Use 'development' for local development, 'production' for production deployment
NODE_ENV=development
# Port for the server to listen on
# Can be any available port on your system
PORT=3001
# JWT configuration
# JWT_SECRET - Generate a secure random string (e.g., using: node -e "console.log(require('crypto').randomBytes(64).toString('hex'))")
JWT_SECRET=your_jwt_secret
# JWT expiration time (1d = 1 day, 2h = 2 hours, etc.)
JWT_EXPIRES_IN=1d
# Refresh token expiration time (usually longer than JWT)
REFRESH_TOKEN_EXPIRES_IN=7d
# SuperTokens configuration
# Visit https://app.supertokens.com to create an account, then create a project and get these values
# If self-hosting: URL where your SuperTokens core service is running
SUPERTOKENS_CONNECTION_URI=https://try.supertokens.io
# If using SuperTokens managed service, get this from your SuperTokens dashboard
# If self-hosting, this can be left empty
SUPERTOKENS_API_KEY=your_supertokens_api_key
# Domain of your frontend website
# Should be the URL where your frontend application is hosted
WEBSITE_DOMAIN=http://localhost:3000
# Domain where this API is deployed
# In production, replace with your actual backend URL
API_DOMAIN=http://localhost:3001
# Base path for authentication endpoints
API_BASE_PATH=/auth
# Beehiiv API
# Log in to your Beehiiv account, go to Settings > Developers > API Keys
# Create a new API key with permissions to read subscribers
BEEHIIV_API_KEY=your_beehiiv_api_key
# Found in your Beehiiv dashboard URL or via API
# Format: https://dashboard.beehiiv.com/p/{PUBLICATION_ID}
# Or via API: GET https://api.beehiiv.com/v2/publications
BEEHIIV_PUBLICATION_ID=your_beehiiv_publication_id
# CORS config
# Comma-separated list of origins (domains) allowed to call your API
# In production, replace with your actual frontend URL(s)
ALLOWED_ORIGINS=http://localhost:3000
# Show Magic Links in the UI.
DEBUG_MAGIC_LINKS=false