-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathexample.env
More file actions
189 lines (162 loc) · 7.42 KB
/
Copy pathexample.env
File metadata and controls
189 lines (162 loc) · 7.42 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
# ==============================================================================
# Next.js - Environment Variables
# ==============================================================================
# ==============================================================================
# APP Configuration
# ==============================================================================
APP_MODE=production
NEXT_PUBLIC_SECURITY_ENABLED=true
# ==============================================================================
# Application Service Ports Configuration
# ==============================================================================
APP_INTERNAL_PORT=3000
PROXY_PORT=3000
WEBPACK_DEV_SERVER_PORT=3001
# ==============================================================================
# API Configuration
# ==============================================================================
API_INTERNAL_URL=http://localhost:3000
NEXT_PUBLIC_API_URL=http://localhost:3000
# ==============================================================================
# Logging Configuration
# ==============================================================================
LOG_LEVEL=info
TIMEZONE=UTC
UTC=true
# ==============================================================================
# External API Configuration (Optional - for Node.js backend)
# ==============================================================================
# Both internal and external APIs can be used simultaneously:
# - Internal APIs: Used by default for client-side and server-side
# - External APIs: Used server-side when USE_EXTERNAL_API=true
# - You can use createInternalApiService() or createExternalApiService() directly
USE_EXTERNAL_API=true
EXTERNAL_API_URL=http://localhost:9080
EXTERNAL_API_MODE=api/dev/v1
# ==============================================================================
# Security & Authentication
# ==============================================================================
JWT_SECRET=f03b9d1cb7b54a2f99d7adcc1c8b27d318e94e9ba3f1c7d8b8e4f672c18ab4fd
JWT_SECRET_KEY=f03b9d1cb7b54a2f99d7adcc1c8b27d318e94e9ba3f1c7d8b8e4f672c18ab4fd
JWT_ALGORITHM=HS256
JWT_EXPIRES_IN=7d
ACCESS_TOKEN_EXPIRY_MINUTES=60
SESSION_TOKEN_EXPIRY_MINUTES=10080
REFRESH_TOKEN_EXPIRY_MINUTES=43200
BCRYPT_SALT_ROUNDS=10
# ==============================================================================
# Database Configuration
# ==============================================================================
DATABASE_HOST=nextjs-frontend-postgres
DATABASE_NAME=postgres
DATABASE_USER=nextjs_db
DATABASE_PASSWORD=postgres123
DATABASE_PORT=5432
DATABASE_URL=postgresql://nextjs_db:postgres123@nextjs-frontend-postgres:5432/postgres
# ==============================================================================
# Prisma Configuration
# ==============================================================================
PRISMA_STUDIO_PORT=5556
ENABLE_PRISMA_STUDIO=true
PRISMA_STUDIO_ALLOWED_IPS="*"
# ==============================================================================
# Database pool settings
# ==============================================================================
DB_POOL_IDLE_TIMEOUT=30000
DB_POOL_CONNECTION_TIMEOUT=10000
# DATABASE_HOST=aws-1-ap-southeast-1.pooler.supabase.com
# DATABASE_NAME=postgres
# DATABASE_USER=postgres.vrzuirlsdggxpgkyllod
# DATABASE_PASSWORD=Rf8yx5Vml80ooR7K
# DATABASE_PORT=6543
# DATABASE_URL=postgresql://postgres.vrzuirlsdggxpgkyllod:Rf8yx5Vml80ooR7K@aws-1-ap-southeast-1.pooler.supabase.com:6543/postgres
# DB_POOL_IDLE_TIMEOUT=30000
# DB_POOL_CONNECTION_TIMEOUT=10000
# ==============================================================================
# Redis Configuration
# ==============================================================================
REDIS_HOST=nextjs-frontend-redis
REDIS_PORT=6379
REDIS_PASSWORD=
REDIS_URL=redis://nextjs-frontend-redis:6379
# Default fallback TTL (10 minutes)
REDIS_DEFAULT_TTL=600
# Short TTL (5 minutes)
REDIS_SHORT_TTL=300
# Medium TTL (15 minutes)
REDIS_MEDIUM_TTL=900
# Long TTL (1 hour)
REDIS_LONG_TTL=3600
# Very long TTL (1 day)
REDIS_VERY_LONG_TTL=86400
# Cache enable flag - set to 'false' to disable caching layer
REDIS_CACHE_ENABLED=true
# ==============================================================================
# If using Redis password: Configuration
# ==============================================================================
# REDIS_PASSWORD=your_redis_password
# REDIS_URL=redis://:your_redis_password@localhost:6379
# ==============================================================================
# CORS Configuration
# ==============================================================================
CORS_ORIGINS=http://localhost:8500,http://localhost:8001,http://127.0.0.1:8500,http://127.0.0.1:8001
# ==============================================================================
# Sentry Configuration
# ==============================================================================
SENTRY_DSN=https://xxxxxxxxxxxxxxxxxxxxxxxx@xxxxxxxxxxxxxxxxxxxxxxxx.ingest.us.sentry.io/4510423237066752
SENTRY_TRACES_SAMPLE_RATE=1.0
SENTRY_PROFILES_SAMPLE_RATE=1.0
SENTRY_ENABLE_DEV=true
# ==============================================================================
# Storage Configuration
# ==============================================================================
GOOGLE_STORAGE_BUCKET_NAME=s3-bucket
STORAGE_BUCKET=s3-bucket
STORAGE_BUCKET_ACCESS_KEY=xxxxxxxxxxxxxxxxxxxxxxxx
STORAGE_BUCKET_SECRET_KEY=xxxxxxxxxxxxxxxxxxxxxxxx
STORAGE_BUCKET_SERVER=https://kliky.sgp1.digitaloceanspaces.com
# ==============================================================================
# Media Manager Configuration
# ==============================================================================
MEDIA_ENABLE_ACCESS_KEY=true
MEDIA_ACCESS_KEY_LENGTH=32
MEDIA_REQUIRE_ACCESS_KEY_FOR_PUBLIC=false
MEDIA_ALLOW_ADMIN_ACCESS_WITHOUT_KEY=false
# ==============================================================================
# API Keys
# ==============================================================================
OPEN_AI_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxx
OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxx
# ==============================================================================
# Authentication - Master OTP
# ==============================================================================
MASTER_ADMIN_OTP=654321
FAST_OTP_ENABLED=true
FAST_OTP=123456
# ==============================================================================
# Email Configuration
# ==============================================================================
EMAIL_HOST=smtp.gmail.com
EMAIL_HOST_USER=noreply.example@gmail.com
EMAIL_HOST_PASSWORD=example
EMAIL_PORT=587
EMAIL_USE_TLS=True
# ==============================================================================
# Twilio Configuration
# ==============================================================================
TWILIO_ACCOUNT_SID=your_account_sid
TWILIO_AUTH_TOKEN=your_auth_token
TWILIO_PHONE_NUMBER=+1234567890
TWILIO_WHATSAPP_NUMBER=+1234567890
TWILIO_CALLER_ID=+1234567890
# ==============================================================================
# PM2 Configuration
# ==============================================================================
PM2_INSTANCES=max
PM2_EXEC_MODE=fork
# ==============================================================================
# PGAdmin Configuration
# ==============================================================================
PGADMIN_EMAIL=admin@example.com
PGADMIN_PASSWORD=admin@123
PGADMIN_PORT=5050