Nginx Config Generator
Generate a secure Nginx config with reverse proxy, SSL, gzip, cache headers, rate limiting and CORS. 100% local.
Wizard
Options
Live preview
# Generated by WebFileTools Nginx Config Generator
# Disclaimer: Vérifiez et testez avant déploiement en production.
limit_req_zone $binary_remote_addr zone=webfiletools_api:10m rate=10r/s;
upstream webfiletools_upstream {
server 127.0.0.1:3000;
keepalive 32;
}
server {
listen 80;
server_name example.com;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl http2;
server_name example.com;
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
client_max_body_size 25m;
gzip on;
gzip_types text/plain text/css application/json application/javascript application/xml+rss application/xml image/svg+xml;
gzip_min_length 1024;
add_header X-Frame-Options "DENY" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
add_header Permissions-Policy "camera=(), microphone=(), geolocation=()" always;
add_header Content-Security-Policy "default-src 'self'; img-src 'self' data: blob:; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; connect-src 'self'; frame-ancestors 'none'" always;
limit_req zone=webfiletools_api burst=20 nodelay;
location / {
proxy_pass http://webfiletools_upstream;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 60s;
}
location ~* \.(?:css|js|mjs|png|jpg|jpeg|gif|webp|svg|ico|woff2?)$ {
expires 30d;
add_header Cache-Control "public, max-age=2592000, immutable" always;
}
}
server {
listen 80;
server_name example.com;
return 301 https://$host$request_uri;
}Proof of local processing
This tool is classified as local in the WebFileTools registry: processing is expected to stay inside your browser.
- •The page is declared as local in the public tool catalog.
- •No server-side storage is announced for this processing flow.
- •The easiest verification is to monitor the Network panel while it runs.
How to verify it yourself
- 1Open your browser developer tools and switch to the Network panel.
- 2Run the processing flow with a test file.
- 3Confirm that no upload request containing your file is sent to WebFileTools.
You use this tool often? Pro includes files up to 500 MB and priority processing.
What is Nginx Config Generator?
This tool generates an Nginx configuration ready to adapt with reverse proxy, SSL, gzip, cache headers and basic protections.
How to use this tool?
Enter your domain, upstream and security options, then copy or download the generated .conf file.
Benefits
- Complete wizard
- Best practices by default
- Export .conf
- 100% local
Frequently Asked Questions
- Is the configuration generated locally?
- Yes. The generator produces plain text in the browser, without external calls.
- Can I enable SSL and reverse proxying?
- Yes. The wizard covers server blocks, reverse proxy, SSL and HTTPS redirects.
- Does the config include best practices?
- Yes. HSTS, server_tokens off, security headers, cache headers, gzip and CORS are included.
- Can I export the file?
- Yes, the configuration can be copied or downloaded as a .conf file.
Similar Tools
docker-compose Linter
Lint docker-compose.yml: syntax, volume/network refs, healthchecks, mem_limit, 'latest' tags. Best practices with line numbers. 100% local.
Use →OpenAPI Validator
Validate OpenAPI 3.x or Swagger 2.0 specs: structure, paths, components, security. Stats and JSON export. 100% local.
Use →CIDR Calculator
Compute network, broadcast, hosts, subnet mask and subnet splits from a CIDR notation. IPv4 + IPv6, with membership checker.
Use →robots.txt Generator
Create a complete robots.txt file with presets for Google, Bing and more. Visual interface with multiple rules.
Use →