server blocks, made simple

nginx config generator

Reverse-proxy to a running app or serve static files straight from disk. Name your domain, choose your TLS posture, and flip on advanced for full control.

Include certbot command sudo certbot --nginx -d your-domain
Advanced options full config control

Proxy behaviour

WebSocket upgradeUpgrade + Connection headers for WS/SSE
Proxy timeoutsconnect / send / read timeout tuning
Disable proxy bufferingproxy_buffering off — good for streaming

Body & compression

client_max_body_sizemax upload size
gzip compressioncompress text, json, css, js responses

Security & limits

Security headersHSTS, X-Frame-Options, X-Content-Type, Referrer-Policy
Rate limitinglimit_req_zone + burst

Static & caching

Cache static assetslong cache for images, css, js, fonts
Deny dotfilesblock access to .git, .env, .htaccess

Logging

Access & error logsper-site log files under /var/log/nginx

Extra location blocks

Output
Fill in the fields and hit generate.