fix: resolve WebSocket metric updates and improve polling efficiency

- Fix alternating zero I/O metrics by implementing rate caching for stale data from Proxmox
- Hardcode polling interval to 10 seconds (matching Proxmox cluster/resources update cycle)
- Remove polling interval settings from UI (no longer user-configurable)
- Implement efficient VM/container polling using single cluster/resources API call
- Remove 'Remove Password' feature (auth is now mandatory)
- Fix CSRF validation for Basic Auth (exempt from CSRF checks)
- Fix Generate API Token modal and authentication
- Remove redundant 'Active' status from Authentication section
- Remove Connection Timeout setting from frontend (backend-only)
- Clean up frontend console logging (reduce verbosity)
- Remove PBS polling interval setting (fixed at 10s)
- Add frontend rebuild detection to backend-watch script
- Improve first-run setup flow and error handling
This commit is contained in:
Pulse Monitor 2025-08-16 12:12:10 +00:00
parent f524166f9d
commit b316510a2b
45 changed files with 2847 additions and 947 deletions

View file

@ -1,28 +0,0 @@
#!/bin/bash
# Script to remove authentication from Pulse systemd configuration
# This needs to be run with sudo
OVERRIDE_FILE="/etc/systemd/system/pulse-backend.service.d/override.conf"
if [ ! -f "$OVERRIDE_FILE" ]; then
echo "No override file found, authentication already removed"
exit 0
fi
# Remove all authentication-related environment variables from the override file
if grep -q "PULSE_AUTH_USER\|PULSE_AUTH_PASS\|PULSE_PASSWORD\|API_TOKEN" "$OVERRIDE_FILE"; then
# Create a backup
cp "$OVERRIDE_FILE" "$OVERRIDE_FILE.bak"
# Remove the authentication lines but keep other settings
grep -v "PULSE_AUTH_USER\|PULSE_AUTH_PASS\|PULSE_PASSWORD\|API_TOKEN" "$OVERRIDE_FILE" > "$OVERRIDE_FILE.tmp"
mv "$OVERRIDE_FILE.tmp" "$OVERRIDE_FILE"
# Reload systemd and restart the service
systemctl daemon-reload
systemctl restart pulse-backend
echo "Authentication removed successfully"
else
echo "No authentication configuration found in override file"
fi