-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
53 lines (36 loc) · 1.08 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
events {
worker_connections 1024;
}
daemon off;
worker_processes 1;
error_log stderr;
pid /tmp/nginx.pid;
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
log_format compression '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent" "$gzip_ratio"';
error_log /dev/stdout warn;
access_log /dev/stdout compression;
server {
listen 8080;
error_log /dev/stdout warn;
access_log /dev/stdout compression;
root /var/www/html;
index index.html;
client_body_temp_path /tmp/www;
proxy_temp_path /tmp/proxy;
fastcgi_temp_path /tmp/fastcgi;
uwsgi_temp_path /tmp/uwsgi;
scgi_temp_path /tmp/scgi;
location / {
try_files $uri $uri/ =404;
}
location /nginx-health {
return 200 "healthy\n";
}
}
}