No description
goaccess-setup.sh | ||
README.md |
CloudPanel GoAccess Analytics Automation
Automated GoAccess analytics setup script for CloudPanel users. Generate privacy-focused website analytics without external dependencies.
Features
- 🚀 One-click GoAccess installation and configuration
- 📊 Automatic analytics report generation for all domains
- 🔄 Auto-updates reports every 5 minutes
- 📁 Intelligent log rotation management
- 🔒 Privacy-focused with no external tracking
- 👥 Multi-user and multi-domain support
- 🛡️ Secure permissions handling
- 🔧 Non-destructive configuration updates
Prerequisites
- CloudPanel installation
- Root/sudo access
- Nginx web server
- Bash shell
Quick Start
- Clone the repository:
git clone https://git.hhf.technology/hhf/CloudPanel-GoAccess-Analytics-Automation.git
- Make the script executable:
chmod +x goaccess-setup.sh
- Run the script:
sudo ./goaccess-setup.sh
Access Your Analytics
Find your analytics reports at:
/home/your-username/htdocs/your-domain/insights/goaccess.html
How It Works
The script:
- Installs and configures GoAccess
- Sets up log rotation rules
- Creates domain-specific insights directories
- Configures automatic report generation
- Sets up proper permissions
- Establishes periodic updates via cron
Configuration
The script automatically configures:
- Log rotation policies
- Report generation intervals
- File permissions
- User-specific settings
No manual configuration required!
Troubleshooting
Check the logs:
tail -f /var/log/goaccess_cron.log
Contributing
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
License
This project is licensed under the GNU GPL License - see the LICENSE file for details.
Acknowledgments
- GoAccess team for their excellent analytics tool
- CloudPanel community for inspiration and testing