Skip to content

Instantly share code, notes, and snippets.

@fabiocruzcoelho
Created November 28, 2017 17:14
Show Gist options
  • Save fabiocruzcoelho/e553d2e9c6cd62df146c4156b3a641df to your computer and use it in GitHub Desktop.
Save fabiocruzcoelho/e553d2e9c6cd62df146c4156b3a641df to your computer and use it in GitHub Desktop.
Arquivo de configuração nginx proxy
user nginx;
worker_processes auto;
worker_rlimit_nofile 200000;
pid /var/run/nginx.pid;
events {
worker_connections 10000;
use epoll;
multi_accept on;
}
http {
log_format main '$remote_addr - $remote_user [$time_local] '
'"$request" $status $bytes_sent '
'"$http_referer" "$http_user_agent" '
'"$gzip_ratio"';
log_format download '$remote_addr - $remote_user [$time_local] '
'"$request" $status $bytes_sent '
'"$http_referer" "$http_user_agent" '
'"$http_range" "$sent_http_content_range"';
map $status $loggable {
~^[23] 0;
default 1;
}
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log /var/log/nginx/access.log combined;
error_log /var/log/nginx/error.log warn;
include /etc/nginx/conf.d/vhosts/*.conf;
include /etc/nginx/conf.d/extras/*.conf;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment