mirror of
https://github.com/hhftechnology/vps-monitor.git
synced 2026-04-26 10:41:00 +00:00
35 lines
1.3 KiB
Text
35 lines
1.3 KiB
Text
# VPS-MONITOR Environment Configuration
|
|
|
|
# =============================================================================
|
|
# Authentication Settings (Required)
|
|
# =============================================================================
|
|
|
|
# JWT Secret Key - Use a strong, random string (minimum 32 characters)
|
|
# Generate one with: openssl rand -base64 32
|
|
JWT_SECRET=your-super-secret-key-change-this-to-something-random-min-32-chars
|
|
|
|
# Admin User Credentials
|
|
ADMIN_USERNAME=admin
|
|
|
|
# Admin Password - MUST be a bcrypt hash (plain text is not supported)
|
|
# Generate hash with: cd server/scripts && go run hash-password.go yourPassword
|
|
# Example output: $2a$10$N9qo8uLOickgx2ZMRZoMyeIjZAgcfl7p92ldGxad68LJZdL17lhWy
|
|
ADMIN_PASSWORD=$2a$10$YourBcryptHashHere
|
|
|
|
# =============================================================================
|
|
# Server Configuration (Optional)
|
|
# =============================================================================
|
|
|
|
# Backend port (default 6789)
|
|
BACKEND_PORT=6789
|
|
|
|
# Frontend port (default: 2345)
|
|
FRONTEND_PORT=2345
|
|
|
|
# =============================================================================
|
|
# Docker Configuration (Optional)
|
|
# =============================================================================
|
|
|
|
# Docker host (uncomment to override default)
|
|
# DOCKER_HOST=unix:///var/run/docker.sock
|
|
|