-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
112 lines (85 loc) · 3.69 KB
/
Copy path.env.example
File metadata and controls
112 lines (85 loc) · 3.69 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
# Environment Variables for Rediscover Application
# Copy this file to .env and update values for your environment
# =============================================================================
# APPLICATION SECURITY (REQUIRED)
# =============================================================================
# Secret key for JWT tokens and session encryption
# IMPORTANT: Generate a secure random string for production (64+ characters)
# You can use: openssl rand -base64 64
APP_SECRET=your-secret-key-here-change-in-production
# JWT token expiration time
# Examples: 24h, 7d, 30d
JWT_EXPIRES_IN=24h
# =============================================================================
# FRONTEND CONFIGURATION
# =============================================================================
# Frontend URL for CORS configuration
# Set this to match where your frontend is accessible
# Examples:
# Development: http://localhost:6378
# Production with domain: https://your-domain.com
# Production with nginx reverse proxy: http://localhost (same origin)
FRONTEND_URL=http://localhost:6378
# Frontend API URL (for build-time configuration)
# Leave empty for relative URLs (recommended for reverse proxy deployment)
# Set to full URL for direct backend access in development
# Examples:
# Reverse proxy (recommended): "" (empty)
# Direct access: "http://localhost:6377"
# Production: "https://api.your-domain.com"
VITE_API_URL=http://localhost:6377
# =============================================================================
# DATABASE CONFIGURATION
# =============================================================================
# Path to SQLite database file
# Use absolute path in Docker containers: /app/data/rediscover.db
# Use relative path for local development: ./data/rediscover.db
DATABASE_PATH=./data/rediscover.db
# Data directory for application files
# Optional - defaults to ../data relative to backend
DATA_DIR=./data
# =============================================================================
# SERVER CONFIGURATION
# =============================================================================
# Port for the backend server
# Default: 6377 (should match Docker Compose configuration)
PORT=6377
# Node.js environment
# Values: development, production, test
NODE_ENV=development
# =============================================================================
# SECURITY CONFIGURATION
# =============================================================================
# Number of bcrypt rounds for password hashing
# Higher values are more secure but slower (10-12 recommended)
BCRYPT_ROUNDS=10
# JWT expiration time (alternative to JWT_EXPIRES_IN)
# Examples: 7d, 24h, 30d
JWT_EXPIRATION=7d
# =============================================================================
# BUILD CONFIGURATION (Optional)
# =============================================================================
# Application version (injected at build time)
VITE_APP_VERSION=0.0.0
# Build timestamp (set by CI/CD)
BUILD_DATE=
# Git commit hash (set by CI/CD)
GIT_COMMIT=
# =============================================================================
# DOCKER CONFIGURATION (Optional)
# =============================================================================
# Nginx port configuration
# HTTP port for nginx reverse proxy
NGINX_HTTP_PORT=80
# HTTPS port for nginx reverse proxy (when SSL is enabled)
NGINX_HTTPS_PORT=443
# Development nginx port (to avoid conflicts with production)
NGINX_DEV_PORT=8080
# Frontend development server port
FRONTEND_DEV_PORT=6378
# Backend development server port
BACKEND_DEV_PORT=6377
# Indicates running in Docker container
DOCKER_CONTAINER=
# Kubernetes service host (auto-set in K8s)
KUBERNETES_SERVICE_HOST=