-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
66 lines (57 loc) · 2.69 KB
/
.env.example
File metadata and controls
66 lines (57 loc) · 2.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
# =============================================================================
# Dash Server Configuration
# Copy this file to .env and customize for your environment
# =============================================================================
# Server port
PORT=3001
# Database URL (SQLite)
# For development: file:./dev.db
# For production: file:/path/to/data/dash.db
DATABASE_URL=file:./dev.db
# JWT Secret for authentication
# Generate with: openssl rand -base64 32
JWT_SECRET=change-this-to-a-random-secret-key
# Node environment (development | production)
NODE_ENV=development
# =============================================================================
# Optional: Email notifications (nodemailer)
# =============================================================================
# SMTP_HOST=smtp.gmail.com
# SMTP_PORT=587
# SMTP_SECURE=false
# SMTP_USER=your-email@gmail.com
# SMTP_PASS=your-app-password
# SMTP_FROM=Dash <your-email@gmail.com>
# =============================================================================
# Optional: Slack notifications
# =============================================================================
# SLACK_WEBHOOK_URL=https://hooks.slack.com/services/xxx/xxx/xxx
# =============================================================================
# Optional: Data directory (for backups, uploads)
# Defaults to ./data in project root
# =============================================================================
# DASH_DATA_DIR=/opt/dash/data
# =============================================================================
# Reverse Proxy Configuration (nginx)
# =============================================================================
# When running behind nginx or another reverse proxy:
# - Keep PORT=3001 (nginx proxies to this port)
# - The server automatically trusts X-Forwarded-* headers from localhost
# - No server code changes needed; nginx handles port 80/443 traffic
#
# For HTTPS deployments with nginx + Let's Encrypt:
# - Run: sudo certbot --nginx -d yourdomain.com
# - Certbot will configure nginx automatically
# - The Node.js server continues running on HTTP (port 3001)
# - nginx terminates SSL and proxies to the backend
# =============================================================================
# Optional: BamBuddy Integration (Bambu Lab 3D printer management)
# =============================================================================
# URL where BamBuddy API is accessible from the server (internal)
# BAMBUDDY_URL=http://localhost:8000
#
# BamBuddy API key (generate in BamBuddy → Settings → API Keys)
# BAMBUDDY_API_KEY=bb_your-api-key-here
#
# Public URL for BamBuddy (used for external links in the browser)
# BAMBUDDY_PUBLIC_URL=http://dash.lab:8000