Repository navigation
Expand file tree
/
Copy path.env.dev.example
More file actions
61 lines (51 loc) · 1.8 KB
/
Copy path.env.dev.example
File metadata and controls
61 lines (51 loc) · 1.8 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
# ZakApp Development Environment Configuration
# Copy this file to .env.dev and customize as needed
# =========================================
# =====================================================
# PORT CONFIGURATION (Dev defaults - different from prod)
# =====================================================
FRONTEND_PORT=3002
FRONTEND_PORT_SSL=3444
# =====================================================
# ACCESS CONFIGURATION
# =====================================================
# Client URL (used for CORS)
CLIENT_URL=http://localhost:3002
# Backend CORS allowed origins
ALLOWED_ORIGINS=http://localhost:3002
# Backend allowed hosts
ALLOWED_HOSTS=localhost
# App URL
APP_URL=http://localhost:3002
# =====================================================
# SECURITY SECRETS (REQUIRED)
# =====================================================
# Generate these with: openssl rand -hex 32
JWT_SECRET=REPLACE_WITH_SECURE_SECRET
JWT_REFRESH_SECRET=REPLACE_WITH_SECURE_SECRET
ENCRYPTION_KEY=REPLACE_WITH_SECURE_SECRET
# =====================================================
# OPTIONAL CONFIGURATION
# =====================================================
# CouchDB credentials
COUCHDB_USER=admin
COUCHDB_PASSWORD=REPLACE_WITH_SECURE_SECRET
COUCHDB_JWT_SECRET=REPLACE_WITH_SECURE_SECRET
# Admin emails (comma-separated)
ADMIN_EMAILS=admin@example.com
# Gold API Key (optional)
# GOLD_API_KEY=your_api_key_here
# =====================================================
# QUICK START
# =====================================================
# 1. Run the deployment script:
# ./deploy-dev-build.sh
#
# 2. Access the application:
# - Frontend: http://localhost:3002
# - Backend API: http://localhost:3002/api
#
# 3. For network access:
# - HTTPS: https://YOUR_IP:3444
#
# =====================================================