nqdev/nginx
ViHAT's customized version of NGINX includes additional useful modules for usage.
Đây là container NGINX tùy chỉnh với các module mở rộng và tích hợp Redis, được phát triển bởi NQDEV team. Container này cung cấp web server hiệu năng cao với advanced features cho production environments.
🚀 Khởi động nhanh
# START: docker-compose up -d --build --force-recreate --remove-orphans
# STOP: docker-compose down -v
docker-compose up -d --build --force-recreate --remove-orphans🧱 Thành phần & Tính năng
Core Components
NGINX 1.27.2: High-performance web server và reverse proxy
LuaJIT 2.0: High-performance Lua scripting engine
Alpine Linux: Base image tối ưu về kích thước
Redis Integration: Session management và caching
Custom Modules
✅ headers-more-nginx-module: Advanced HTTP header manipulation
✅ rate-limit-nginx-module: Request rate limiting
✅ ngx_http_geoip_module: Geographic IP location
✅ ngx_http_image_filter_module: On-the-fly image processing
✅ ngx_http_xslt_filter_module: XML transformation
✅ ngx_http_js_module: JavaScript scripting support
Advanced Features
✅ Automated Configuration Backup với cron jobs
✅ Real IP Detection từ multiple proxy layers
✅ SSL/TLS Optimization với modern ciphers
✅ Caching Strategy với multiple cache zones
✅ GeoIP Location Services cho geographic routing
✅ Status Monitoring endpoint trên port 8080
✅ Custom Error Handling với detailed logging
✅ Multi-port Support cho different services
📦 Build & Deployment
Build với custom modules
Docker Compose (Khuyến nghị)
Standalone Docker
🗂️ Cấu trúc Container
Thư mục chính
⚙️ Configuration Features
Custom Modules Loading
Real IP Detection
Proxy Cache Configuration
GeoIP Integration
Security Headers
🔧 Advanced Usage Examples
Rate Limiting với Custom Module
Image Processing với Image Filter
Header Manipulation
Geographic Routing
📊 Monitoring & Status
Status Endpoint
Features: Active connections, requests per second, server metrics
Access: Restricted to localhost và local networks
Status Response Example
Backup Monitoring
🔍 Management Scripts
Configuration Validation
Health Checks
📋 Environment Variables
TZ
Asia/Ho_Chi_Minh
Container timezone
NGINX_HTTP_PORT_NUMBER
80
HTTP port number
NGINX_HTTPS_PORT_NUMBER
443
HTTPS port number
NGINX_STATUS_PORT_NUMBER
8080
Status monitoring port
CRONTAB_ENABLE
false
Enable automated backups
🔒 Security Features
SSL/TLS Configuration
Access Control
Request Filtering
🚀 Production Deployment
High Availability Setup
Performance Optimization
Caching Strategy
📜 License
Distributed under the MIT License. See LICENSE for more information.
👨💻 Maintainer
NQDEV Team
📧 Email: [email protected]
🌐 Website: nhquydev.net
📦 Container Registry: GitHub Packages
📖 NGINX Documentation: NGINX Documentation
Last updated