-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
68 lines (50 loc) · 1.52 KB
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# user nginx;
# worker_processes 1;
# error_log /var/log/nginx/error.log warn;
# pid /var/run/nginx.pid;
pcre_jit on;
events {
worker_connections 1024;
}
env DYUPS_TOKEN;
env DYUPS_DB_HOST;
env DYUPS_DB_PORT;
env DYUPS_DB_DATABASE;
env DYUPS_DB_USER;
env DYUPS_DB_PASSWORD;
env DYUPS_DB_CHARSET;
http {
include mime.types;
default_type text/plain;
log_format main '$remote_addr - $remote_user [$time_local] '
'"$request_method $scheme://$host$request_uri $server_protocol" '
'$status $body_bytes_sent "$http_referer" "$http_user_agent" "$http_x_forwarded_for" '
'"$upstream_addr" $upstream_status $upstream_response_time $request_time';
# uninitialized_variable_warn off;
# access_log /var/log/nginx/access.log main;
sendfile on;
keepalive_timeout 15;
send_timeout 60;
proxy_read_timeout 75;
proxy_send_timeout 60;
proxy_connect_timeout 2s;
proxy_max_temp_file_size 1m;
client_header_buffer_size 4k;
large_client_header_buffers 8 16k;
client_max_body_size 1024m;
port_in_redirect off;
open_log_file_cache max=2048 inactive=60s min_uses=2 valid=15m;
lua_max_running_timers 512;
lua_max_pending_timers 1024;
lua_check_client_abort on;
lua_socket_log_errors off;
lua_http10_buffering off;
server {
listen 80 default_server;
server_name _;
return 403;
}
include /etc/nginx/inc/maps.conf;
include /etc/nginx/inc/dyups.conf;
include /etc/nginx/vhost/*.conf;
}