Add Nginx + Varnish Cache Manager with complete cPanel integration

New Features:
- Full Varnish 6.6+ installation and configuration for cPanel servers
- 99.5% stock compliance using settings.json approach (RPM-safe)
- Complete HTTPS caching via SSL termination and config-script automation
- Two-tier revert system (partial/full stack removal)
- Enhanced status display with mode detection and color-coded port status
- Self-healing diagnostics with 8 automatic fixes
- Host header preservation fix for multi-domain WordPress compatibility

Technical Details:
- Supports ea-nginx + Varnish + Apache stack on AlmaLinux 9+
- Caches 93 static file types with smart bypasses for cPanel services
- Config-script ensures HTTPS traffic uses HTTP backend to Varnish
- Adaptive detection handles partial states and manual interventions

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
cschantz
2026-01-21 18:53:04 -05:00
parent 5b7253c1ff
commit 849a112b5c
5 changed files with 2905 additions and 3 deletions
+5
View File
@@ -241,6 +241,10 @@ show_performance_menu() {
echo -e " ${MAGENTA}5)${NC} 📊 Loadwatch Health Analyzer - Historical system analysis"
echo -e " ${MAGENTA}6)${NC} 💿 Disk Space Analyzer - Find space issues & cleanup files"
echo ""
echo -e "${BOLD}Caching Solutions:${NC}"
echo ""
echo -e " ${MAGENTA}7)${NC} ⚡ Nginx + Varnish Manager - Setup/manage caching stack"
echo ""
echo -e " ${RED}0)${NC} Back to Main Menu"
echo ""
echo -e "${CYAN}──────────────────────────────────────────────────────────────${NC}"
@@ -259,6 +263,7 @@ handle_performance_menu() {
4) run_module "performance" "php-optimizer.sh" ;;
5) handle_loadwatch_analyzer ;;
6) run_module "maintenance" "disk-space-analyzer.sh" ;;
7) run_module "performance" "nginx-varnish-manager.sh" ;;
0) return ;;
*) echo -e "${RED}Invalid option${NC}"; sleep 1 ;;
esac