user nginx; worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; include /etc/nginx/naxsi_core.rules; access_log off; sendfile on; server_tokens off; keepalive_timeout 65; gzip on; # Caso queira habilitar o cache nginx, descomentar as linhas abaixo # proxy_cache_path /var/lib/nginx/cache levels=1:2 keys_zone=cache:30m max_size=1G; # proxy_temp_path /var/lib/nginx/proxy 1 2; # proxy_ignore_headers Expires Cache-Control; # proxy_cache_use_stale error timeout invalid_header http_502; # proxy_cache_bypass $cookie_session; # proxy_no_cache $cookie_session; server { listen 80; location / { return 405; access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; } error_page 404 /404.html; error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } } include /etc/nginx/conf.d/*.conf; }