Files
Pulse/mock.env
rcourtman e07336dd9f refactor: remove legacy DISABLE_AUTH flag and enhance authentication UX
Major authentication system improvements:

- Remove deprecated DISABLE_AUTH environment variable support
- Update all documentation to remove DISABLE_AUTH references
- Add auth recovery instructions to docs (create .auth_recovery file)
- Improve first-run setup and Quick Security wizard flows
- Enhance login page with better error messaging and validation
- Refactor Docker hosts view with new unified table and tree components
- Add useDebouncedValue hook for better search performance
- Improve Settings page with better security configuration UX
- Update mock mode and development scripts for consistency
- Add ScrollableTable persistence and improved responsive design

Backend changes:
- Remove DISABLE_AUTH flag detection and handling
- Improve auth configuration validation and error messages
- Enhance security status endpoint responses
- Update router integration tests

Frontend changes:
- New Docker components: DockerUnifiedTable, DockerTree, DockerSummaryStats
- Better connection status indicator positioning
- Improved authentication state management
- Enhanced CSRF and session handling
- Better loading states and error recovery

This completes the migration away from the insecure DISABLE_AUTH pattern
toward proper authentication with recovery mechanisms.
2025-10-27 19:46:51 +00:00

53 lines
1.9 KiB
Bash

# Mock Mode Configuration
# This file is part of the repository and provides default mock mode settings.
# Mock mode generates realistic test data for development without requiring real Proxmox infrastructure.
#
# Quick Start:
# npm run mock:on # Enable mock mode
# npm run mock:off # Disable mock mode
# npm run mock:edit # Edit this configuration
#
# The backend automatically reloads when this file changes (no manual restart needed).
#
# Documentation: docs/development/MOCK_MODE.md
# Enable/disable mock mode (false = use real Proxmox infrastructure)
PULSE_MOCK_MODE=false
# Number of mock nodes to generate (mix of clustered and standalone)
# First 5 nodes form a cluster, remaining nodes are standalone
PULSE_MOCK_NODES=7
# Average number of VMs per node
# Actual count varies based on node role (vm-heavy, container-heavy, light, mixed)
PULSE_MOCK_VMS_PER_NODE=5
# Average number of LXC containers per node
# Containers have lighter resource usage than VMs
PULSE_MOCK_LXCS_PER_NODE=8
# Number of standalone hosts (Pulse host agents) to simulate
PULSE_MOCK_GENERIC_HOSTS=6
# Number of Docker hosts to simulate
PULSE_MOCK_DOCKER_HOSTS=3
# Average number of containers per Docker host
PULSE_MOCK_DOCKER_CONTAINERS=12
# Enable realistic metric fluctuations (CPU, memory, disk, network)
# When true, metrics change every 2 seconds to simulate real workloads
PULSE_MOCK_RANDOM_METRICS=true
# Percentage of guests (VMs + containers) that should be in stopped state
# Set to 0 for all running, 100 for all stopped, 20 for realistic mix
PULSE_MOCK_STOPPED_PERCENT=20
# NOTE: PULSE_DATA_DIR is set dynamically by the toggle script:
# - Mock mode ON: /opt/pulse/tmp/mock-data
# - Mock mode OFF: /etc/pulse
# Do not set it here as it would override the toggle script's logic
# Local overrides (not tracked in git):
# Create mock.env.local for your personal settings - it will override these defaults