-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.gci.conf
38 lines (33 loc) · 1.05 KB
/
nginx.gci.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
user www-data;
worker_processes auto;
pid /run/nginx.pid;
events {
worker_connections 768;
}
http {
upstream backends {
##
# Comments below shows how known servers are configured at load balancer.
# To add a personal server, uncommented some line and update the ip and port.
##
#server 1.1.1.1:3000 max_fails=0 fail_timeout=15s;
#server 1.1.1.2:3000 max_fails=0 fail_timeout=15s;
#server 1.1.1.3:3000 max_fails=0 fail_timeout=15s;
#server 1.1.1.4:3000 max_fails=0 fail_timeout=15s;
}
server {
listen 80;
location / {
proxy_pass http://backends;
proxy_next_upstream timeout error http_503;
proxy_next_upstream_tries 0;
proxy_read_timeout 5m;
}
}
##
# Logging Settings
##
log_format exp '$msec;$status;$request_time;$upstream_response_time';
access_log /var/log/nginx/access.log exp;
error_log /var/log/nginx/error.log;
}