Repository navigation
Expand file tree
/
Copy path.env.sample
More file actions
55 lines (45 loc) · 1.99 KB
/
Copy path.env.sample
File metadata and controls
55 lines (45 loc) · 1.99 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
# Environment
NODE_ENV=development
# LOG_LEVEL=debug
# Server configuration
PORT=8080
HOST=0.0.0.0
# Database/Storage configuration
# PostgreSQL connection string (e.g., postgresql://user:pass@host:5432/dbname?sslmode=disable)
# Required for production, should be set via DATABASE_URL environment variable
DATABASE_URL=postgresql://username:password@localhost:5432/dbname?sslmode=disable
# Auth service configuration
AUTH_SERVICE_URL=http://localhost:8080
AUTH_SERVICE_SECRET=better-auth-secret-change-in-production
# CORS configuration (comma-separated, first entry is used for email links)
ALLOWED_ORIGIN=http://localhost:3000,http://localhost:7443
# Cookie configuration (for production with custom domains)
# AUTH_COOKIE_DOMAIN=.example.com # Base domain for cross-subdomain cookies (e.g., .nixopus.com)
# AUTH_SECURE_COOKIES=true # Enable Secure flag for cookies (required for HTTPS)
# Resend configuration
RESEND_API_KEY=your_resend_api_key_here
RESEND_FROM_EMAIL=your_email@example.com
# Secret Manager Configuration (optional)
SECRET_MANAGER_ENABLED=false
SECRET_MANAGER_TYPE=infisical
SECRET_MANAGER_PROJECT_ID=
SECRET_MANAGER_ENVIRONMENT=prod
SECRET_MANAGER_SECRET_PATH=/
INFISICAL_URL=https://app.infisical.com
INFISICAL_TOKEN=
# Cloudflare Turnstile (CAPTCHA)
# Get keys at https://dash.cloudflare.com/turnstile
# For local dev, use test key: 1x0000000000000000000000000000000AA (always passes)
# Leave blank to disable captcha verification
TURNSTILE_SECRET_KEY=
# Dodo Payments Configuration
# Required for Dodo Payments integration
DODO_PAYMENTS_API_KEY=your_dodo_payments_api_key_here
DODO_PAYMENTS_WEBHOOK_SECRET=your_webhook_secret_here
DODO_PAYMENTS_ENVIRONMENT=test_mode
DODO_PAYMENTS_PRODUCT_ID=pdt.dodo_payments_product_id
DODO_PAYMENTS_PRODUCT_SLUG=dodo_payments_product_slug
DODO_CREDITS_PRODUCT_ID=pdt.your_credits_product_id
DODO_AUTO_TOPUP_PRODUCT_ID=pdt.your_auto_topup_subscription_product_id
# Internal cron secret for machine-to-machine sweep endpoint
INTERNAL_CRON_SECRET=your_random_secret_here