mirror of
https://github.com/hhftechnology/vps-monitor.git
synced 2026-04-26 10:41:00 +00:00
Introduce a full Settings feature: frontend settings pages, components, hooks, API clients and types to manage Docker hosts, Coolify hosts, authentication, and read-only mode. Backend support added (settings handlers, config manager, Coolify client, registry service and related updates) and get-containers now returns hostErrors and coolifyConfigured so the UI can surface unavailable hosts. UI improvements include a Radix Switch component, a Settings button in the containers toolbar, and a host error banner on the dashboard. Environment, compose and packaging updates add DOCKER_HOSTS, COOLIFY_CONFIGS, READONLY_MODE docs and docker-compose volume; also remove an old auth handler file.
62 lines
2.6 KiB
Text
62 lines
2.6 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 Salt - Use a strong, random string
|
|
# Generate one with: openssl rand -hex 32
|
|
ADMIN_PASSWORD_SALT=your-random-salt-change-this
|
|
|
|
# Admin Password Hash - SHA256 hash of (password + salt)
|
|
# Generate one with: echo -n "yourPassword$(echo -n 'your-salt' | cat)" | shasum -a 256 | awk '{print $1}'
|
|
# Or in one command (replace YOUR_PASSWORD and YOUR_SALT):
|
|
# echo -n "YOUR_PASSWORDYOUR_SALT" | shasum -a 256 | awk '{print $1}'
|
|
# Example: If password is "admin123" and salt is "mysalt", run:
|
|
# echo -n "admin123mysalt" | shasum -a 256 | awk '{print $1}'
|
|
ADMIN_PASSWORD=change-this-to-your-sha256-hash
|
|
|
|
# =============================================================================
|
|
# 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
|
|
|
|
# Multiple Docker hosts (comma-separated, format: name|host)
|
|
# Can also be configured via the Settings page at runtime.
|
|
# DOCKER_HOSTS=local|unix:///var/run/docker.sock,remote|ssh://root@10.0.0.1
|
|
|
|
# =============================================================================
|
|
# Coolify Integration (Optional)
|
|
# =============================================================================
|
|
|
|
# Persist environment variable changes across Coolify redeployments.
|
|
# Format: hostName|apiURL|apiToken (comma-separated for multiple hosts)
|
|
# Can also be configured via the Settings page at runtime.
|
|
# COOLIFY_CONFIGS=prod|https://coolify.example.com|your-api-token
|
|
|
|
# =============================================================================
|
|
# Read-Only Mode (Optional)
|
|
# =============================================================================
|
|
|
|
# When true, disables all container actions (start/stop/restart/remove).
|
|
# Can also be toggled via the Settings page at runtime.
|
|
READONLY_MODE=false
|