-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
45 lines (34 loc) · 977 Bytes
/
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
user nginx;
worker_processes 3;
events {
worker_connections 4096;
}
error_log /dev/stdout info;
http {
proxy_next_upstream error timeout non_idempotent;
upstream api_lb {
server bacapibara_api_1:8000 max_fails=1 fail_timeout=1;
server bacapibara_api_2:8000 max_fails=1 fail_timeout=1;
server bacapibara_api_3:8000 backup;
}
server {
access_log /dev/stdout;
error_log /dev/stdout info;
listen 443 ssl http2;
server_name www.irusla.nd;
ssl_certificate cert.pem;
ssl_certificate_key key.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
listen 8080;
location /nginx_status {
stub_status;
access_log off;
}
location / {
fastcgi_param HTTPS on;
proxy_read_timeout 1s;
proxy_pass http://api_lb;
}
}
}