Generate production-ready Nginx configurations with (Upcoming) AI-powered performance profiles and framework presets
|
|
npm install -g nginxconf-wizardgit clone https://github.com/trfhgx/nginxconf-wizard.git
cd nginxconf-wizard
npm install
npm linknginxconf-wizard --versionnginxconf-wizardFollow the prompts to generate your first configuration!
# Next.js Application
nginxconf-wizard generate --preset nextjs --profile api-gateway
# React SPA with API
nginxconf-wizard generate --preset react-spa
# WordPress Site
nginxconf-wizard generate --preset wordpress --profile high-trafficnginxconf-wizard validate nginx.confnginxconf-wizard generate [options]| Option | Description | Example |
|---|---|---|
--preset <name> |
Framework preset | --preset nextjs |
--profile <name> |
Performance profile | --profile high-traffic |
--output <file> |
Output file | --output my-nginx.conf |
nextjs- Next.js applicationsreact-spa- React Single Page Appswordpress- WordPress siteslaravel- Laravel applicationsstatic-html- Static websitesfastapi- FastAPI backends
balanced- Default settingshigh-traffic- 2048+ connectionslow-resource- Constrained environmentscdn-origin- Behind Cloudflareapi-gateway- High upstream connections
# Update existing configuration
nginxconf-wizard update --auto-apply
# Analyze logs for insights
nginxconf-wizard analyze-logs /var/log/nginx/access.log
# Benchmark analysis
nginxconf-wizard analyze-benchmark results.txt --apply
# Test configuration
nginxconf-wizard test nginx.confWe welcome contributions! Please see our Contributing Guide.
- Fork the repository
- Create feature branch:
git checkout -b feature/amazing-feature - Commit changes:
git commit -m 'feat: add amazing feature' - Push:
git push origin feature/amazing-feature - Open Pull Request
- ESLint configuration
- Jest test coverage
- Prettier formatting
- Conventional commits
- Node.js: 18.0.0 or higher
- Nginx: 1.18.0 or higher (optional, for testing)
- Documentation
- Issue Tracker ALso checkout
- Troubleshoot
- Roadmap
This project is licensed under the MIT License - see the LICENSE file.
Made with love for the Nginx community