-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
53 lines (35 loc) · 1.61 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
user nginx;
#worker_processes 1;
# Enables the use of JIT for regular expressions to speed-up their processing.
pcre_jit on;
#error_log /usr/local/openresty/var/log/error.log;
#error_log /usr/local/openresty/var/log/error.log notice;
#error_log /usr/local/openresty/var/log/error.log info;
#pid /usr/local/openresty/var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
# Enables or disables the use of underscores in client request header fields.
# When the use of underscores is disabled, request header fields whose names contain underscores are marked as invalid and become subject to the ignore_invalid_headers directive.
# underscores_in_headers off;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
#access_log /usr/local/openresty/var/log/access.log main;
client_body_temp_path /usr/local/openresty/var/lib/tmp/client_body;
proxy_temp_path /usr/local/openresty/var/lib/tmp/proxy;
fastcgi_temp_path /usr/local/openresty/var/lib/tmp/fastcgi;
uwsgi_temp_path /usr/local/openresty/var/lib/tmp/uwsgi;
scgi_temp_path /usr/local/openresty/var/lib/tmp/scgi;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
include /usr/local/openresty/etc/conf.d/*.conf;
# Don't reveal OpenResty version to clients.
# server_tokens off;
}