49 lines
1.1 KiB
Nginx Configuration File
49 lines
1.1 KiB
Nginx Configuration File
|
|
user nginx;
|
|
worker_processes auto;
|
|
|
|
error_log /var/log/nginx/error.log notice;
|
|
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] $host "$request"'
|
|
' $status $body_bytes_sent "$http_referer" '
|
|
'"$http_x_forwarded_for" $request_time '
|
|
'$upstream_response_time $gzip_ratio $sent_http_x_cache';
|
|
access_log /var/log/nginx/access.log main;
|
|
|
|
sendfile on;
|
|
tcp_nopush on;
|
|
tcp_nodelay on;
|
|
|
|
keepalive_timeout 65;
|
|
|
|
server_tokens off;
|
|
autoindex off;
|
|
|
|
client_max_body_size 10G;
|
|
|
|
gzip on;
|
|
gzip_vary on;
|
|
gzip_proxied any;
|
|
gzip_comp_level 6;
|
|
gzip_min_length 256;
|
|
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
|
|
|
|
geo $local_ips {
|
|
default 0;
|
|
10.1.1.0/24 1;
|
|
}
|
|
|
|
include /etc/nginx/sites-enables/*.conf;
|
|
}
|