-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.env.production.example
More file actions
70 lines (55 loc) · 2.02 KB
/
.env.production.example
File metadata and controls
70 lines (55 loc) · 2.02 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
# CommandMate Production Environment Configuration
# Copy this file to .env for production deployment
# Or use: ./scripts/setup-env.sh for interactive setup
# ===================================
# Server Configuration
# ===================================
# Root directory for worktree scanning
# This is the base directory that contains your git worktrees
CM_ROOT_DIR=/path/to/your/worktrees
# Server port (default: 3000)
CM_PORT=3000
# Bind address
# - 127.0.0.1: Localhost only (development)
# - 0.0.0.0: All interfaces (production, reverse proxy auth recommended)
# IMPORTANT: Use 0.0.0.0 for production to allow external access
CM_BIND=0.0.0.0
# ===================================
# Security (REQUIRED FOR PRODUCTION)
# ===================================
# When CM_BIND=0.0.0.0, use a reverse proxy (e.g., Nginx) with authentication.
# Without authentication, files and commands are accessible to anyone on the network.
# See: docs/security-guide.md for setup instructions.
# ===================================
# Database
# ===================================
# SQLite database file path
# For production, use an absolute path
CM_DB_PATH=/path/to/production/data/cm.db
# ===================================
# Logging (Optional)
# ===================================
# Log level: debug, info, warn, error (default: info)
# CM_LOG_LEVEL=info
# Log format: text, json (default: text)
# CM_LOG_FORMAT=text
# Log directory (optional)
# CM_LOG_DIR=/path/to/logs
# ===================================
# Node Environment
# ===================================
# Set to production for optimized builds
NODE_ENV=production
# ===================================
# Legacy Support (Deprecated)
# ===================================
# The following MCBD_* variables are deprecated but still supported
# for backward compatibility via Issue #76 fallback mechanism.
# Please migrate to CM_* variables above.
#
# MCBD_ROOT_DIR -> CM_ROOT_DIR
# MCBD_PORT -> CM_PORT
# MCBD_BIND -> CM_BIND
# DATABASE_PATH -> CM_DB_PATH
#
# See: docs/migration-to-commandmate.md