2019-08-10 19:25:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
http {
|
|
|
|
|
|
|
|
|
|
|
|
root @{nginx}/store;
|
|
|
|
|
|
|
|
index index.html index.txt;
|
|
|
|
autoindex off;
|
|
|
|
include /dev/null;
|
|
|
|
default_type application/octet-stream;
|
|
|
|
|
|
|
|
gzip off;
|
|
|
|
gzip_buffers 128 16k;
|
|
|
|
gzip_comp_level 9;
|
|
|
|
gzip_min_length 0;
|
|
|
|
gzip_proxied any;
|
|
|
|
gzip_types *;
|
|
|
|
|
|
|
|
server {
|
|
|
|
|
|
|
|
|
2019-08-13 15:42:09 +00:00
|
|
|
listen 127.0.0.1:8080 default_server bind backlog=65536;
|
2019-08-10 19:25:19 +00:00
|
|
|
|
|
|
|
server_name nginx;
|
|
|
|
server_name_in_redirect off;
|
|
|
|
port_in_redirect off;
|
|
|
|
|
|
|
|
keepalive_requests 262144;
|
|
|
|
keepalive_timeout 60s;
|
|
|
|
|
|
|
|
tcp_nodelay off;
|
|
|
|
tcp_nopush off;
|
|
|
|
|
|
|
|
sendfile off;
|
|
|
|
directio off;
|
|
|
|
aio off;
|
|
|
|
|
|
|
|
open_file_cache max=2048 inactive=60s;
|
|
|
|
open_file_cache_valid 60s;
|
|
|
|
open_file_cache_min_uses 1;
|
|
|
|
open_file_cache_errors on;
|
|
|
|
output_buffers 4 128k;
|
|
|
|
postpone_output 16k;
|
|
|
|
read_ahead 1;
|
|
|
|
|
|
|
|
|
|
|
|
location / {
|
|
|
|
|
|
|
|
limit_except GET HEAD {
|
|
|
|
deny all;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
error_log /dev/stderr notice;
|
|
|
|
access_log off;
|
|
|
|
log_not_found on;
|
|
|
|
|
|
|
|
client_body_temp_path @{nginx}/empty;
|
|
|
|
proxy_temp_path @{nginx}/empty;
|
|
|
|
fastcgi_temp_path @{nginx}/empty;
|
|
|
|
uwsgi_temp_path @{nginx}/empty;
|
|
|
|
scgi_temp_path @{nginx}/empty;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
worker_processes 2;
|
2019-08-13 15:42:09 +00:00
|
|
|
worker_rlimit_nofile 131072;
|
2019-08-10 19:25:19 +00:00
|
|
|
working_directory @{nginx}/empty;
|
|
|
|
|
|
|
|
error_log /dev/stderr notice;
|
|
|
|
pid @{nginx}/pid;
|
|
|
|
daemon off;
|
|
|
|
|
|
|
|
|
|
|
|
events {
|
|
|
|
use epoll;
|
2019-08-13 15:42:09 +00:00
|
|
|
worker_connections 16640;
|
2019-08-10 19:25:19 +00:00
|
|
|
accept_mutex off;
|
|
|
|
multi_accept off;
|
|
|
|
}
|
|
|
|
|