-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathnginx.conf
46 lines (42 loc) · 1.07 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
worker_processes 8;
error_log /dev/stderr;
worker_rlimit_nofile 8192;
events {
worker_connections 4096;
}
http {
include mime.types;
index index.html;
default_type application/octet-stream;
log_format json escape=json '{"time": "$time_iso8601",'
'"host": "$remote_addr",'
'"vhost": "$host",'
'"user": "$remote_user",'
'"status": "$status",'
'"protocol": "$server_protocol",'
'"method": "$request_method",'
'"path": "$request_uri",'
'"req": "$request",'
'"size": "$body_bytes_sent",'
'"reqtime": "$request_time",'
'"apptime": "$upstream_response_time",'
'"ua": "$http_user_agent",'
'"forwardedfor": "$http_x_forwarded_for",'
'"forwardedproto": "$http_x_forwarded_proto",'
'"referrer": "$http_referer"}';
access_log /dev/stdout json;
sendfile on;
tcp_nopush on;
server_names_hash_bucket_size 128;
gzip on;
server {
listen 80;
server_name www.hpcs.cs.tsukuba.ac.jp;
access_log /dev/stdout json;
location / {
root /www;
index index.html;
try_files $uri $uri/index.html;
}
}
}