-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.env.example
80 lines (62 loc) · 2.52 KB
/
.env.example
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
# PowerPulse Environment Variables
# Copy this file to .env and update the values as needed
# =============================================
# REQUIRED VARIABLES
# =============================================
# JWT Secret for Authentication (REQUIRED)
# IMPORTANT: Change this to a secure random string in production
# You can generate a secure random string with: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
JWT_SECRET=change_this_to_a_secure_random_string
# Server Port (REQUIRED)
PORT=5000
# =============================================
# GENERAL CONFIGURATION
# =============================================
# Timezone (Optional)
# Set your local timezone (default: UTC)
# Examples: America/New_York, Europe/London, Asia/Tokyo
# See full list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
# TZ=UTC
# =============================================
# NUT SERVER CONFIGURATION
# =============================================
# Default NUT Server Host (REQUIRED)
# If your NUT server is running on the host machine, use host.docker.internal instead of localhost when using Docker
DEFAULT_NUT_HOST=host.docker.internal
# Default NUT Server Port (REQUIRED)
DEFAULT_NUT_PORT=3493
# Optional: NUT Server Authentication
# Uncomment and set these if your NUT server requires authentication
# DEFAULT_NUT_USERNAME=
# DEFAULT_NUT_PASSWORD=
# =============================================
# SECURITY CONFIGURATION
# =============================================
# HTTPS Configuration (Recommended for production)
# Set to true to enable HTTPS
# ENABLE_HTTPS=true
# Paths to SSL certificate and key files (Required if HTTPS is enabled)
# SSL_CERT_PATH=/path/to/certificate.pem
# SSL_KEY_PATH=/path/to/key.pem
# =============================================
# DATABASE CONFIGURATION
# =============================================
# Database Path (Optional)
# By default, the database is stored in server/data/database.sqlite
# DB_PATH=/custom/path/to/database.sqlite
# =============================================
# NOTIFICATION CONFIGURATION
# =============================================
# Email Notifications (Optional)
# Uncomment and set these if you want to enable email notifications
# SMTP_HOST=smtp.example.com
# SMTP_PORT=587
# SMTP_PASS=password
# =============================================
# LOGGING CONFIGURATION
# =============================================
# Log Level (Optional)
# Valid values: error, warn, info, debug
# LOG_LEVEL=info