-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx_lb_vars.yaml
44 lines (43 loc) · 1.08 KB
/
nginx_lb_vars.yaml
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
---
nginx_enable: true
nginx_start: true
nginx_type: opensource
nginx_install_from: nginx_repository
nginx_branch: mainline
nginx_http_template_enable: true
nginx_http_template:
default:
template_file: http/default.conf.j2
conf_file_name: default.conf
conf_file_location: /etc/nginx/conf.d/
server_name: localhost
listen:
listen_localhost:
ip: 0.0.0.0
port: 80
opts: []
error_page: /usr/share/nginx/html
autoindex: false
reverse_proxy:
locations:
backend:
location: /
proxy_pass: http://backend_servers
upstreams:
upstream_1:
name: backend_servers
lb_method: least_conn
zone_name: backend
zone_size: 64k
sticky_cookie: false
servers:
backend_server_1:
address: webserver1
port: 80
weight: 1
health_check: max_fails=3 fail_timeout=5s
backend_server_2:
address: webserver2
port: 80
weight: 1
health_check: max_fails=3 fail_timeout=5s