Nginx Config Generator Tool - CodeSwordsman
CodeSwordsman Nginx Visual Config Generator is a powerful online visual tool supporting dual modes: global config (nginx.conf) and site config (vhost.conf). Compatible with Nginx 1.15/1.24/1.28/1.30/1.31 multiple versions. Provides complete configuration options including worker processes, events, HTTP, Gzip compression, SSL certificates, security headers. Supports advanced features like reverse proxy, load balancing, static caching, PHP-FPM, SPA deployment, WebSocket, hotlink protection, CORS. Real-time code preview, auto-save history, one-click copy and download, completely free with no installation required.
Nginx Config Visual Editor
Server Hardware Configuration
Basic Global
Set worker process count, recommend auto
Set max file descriptor limit
Set Nginx running user
Events Block
Set max connections per worker
Enable epoll event model (Linux recommended)
Enable accepting multiple connections at once
HTTP Global
Enable sendfile zero-copy transfer
Enable TCP_NOPUSH to optimize packets
Disable Nagle algorithm to reduce latency
Set keep-alive connection timeout (seconds)
Set max client request body size
Hide Nginx version information
Gzip Compression
Enable Gzip compression feature
Set compression level (1-9)
Set MIME types to compress
Log Settings
Set access log file path
Set error log file path
SSL/TLS Session Configuration
Set SSL session cache type and size, e.g., shared:SSL:10m
Time clients can reuse session parameters
Enable SSL session tickets for session resumption
Security Headers Configuration
Prevent clickjacking attacks, recommended values: DENY or SAMEORIGIN
Prevent MIME type sniffing attacks
Enable browser XSS filter
Control referrer header information sending policy
Content security policy to prevent XSS and data injection attacks
Control browser feature permissions
