Skip to content

Instantly share code, notes, and snippets.

@jacksonpires
Last active August 16, 2021 00:27
Show Gist options
  • Save jacksonpires/dfb8c772a263710bff44ba21dd660b95 to your computer and use it in GitHub Desktop.
Save jacksonpires/dfb8c772a263710bff44ba21dd660b95 to your computer and use it in GitHub Desktop.
Arquivo de configuração do NGINX (/etc/nginx/nginx.conf)
user www-data www-data;
worker_processes 4;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
sendfile on;
keepalive_requests 10;
keepalive_timeout 60;
tcp_nodelay off;
tcp_nopush on;
add_header X-Content-Type-Options nosniff;
add_header X-Frame-Options DENY;
server_tokens off;
client_header_timeout 60;
client_body_timeout 60;
ignore_invalid_headers on;
send_timeout 60;
server_name_in_redirect off;
gzip on;
gzip_http_version 1.0;
gzip_comp_level 6;
gzip_proxied any;
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;
gzip_disable "MSIE [1-6] \.";
include /etc/nginx/sites-enabled/*;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment