Presenting upstream feature for nginx
With this feature you will be able to set up nginx load balancer
Change-Id: Ib6628828a7c197b9fff4409e109f45324ccc9e34
diff --git a/tests/pillar/proxy.sls b/tests/pillar/proxy.sls
index 934c4e6..959c9c9 100644
--- a/tests/pillar/proxy.sls
+++ b/tests/pillar/proxy.sls
@@ -25,6 +25,14 @@
bind:
address: 127.0.0.1
protocol: tcp
+ upstream:
+ horizon-upstream:
+ backend1:
+ address: 10.10.10.113
+ port: 8078
+ opts: weight=3
+ backend2:
+ address: 10.10.10.114
site:
nginx_proxy_site01:
enabled: true
@@ -37,4 +45,12 @@
host:
name: cloudlab.domain.com
port: 80
-
+ nginx_proxy_site02:
+ enabled: true
+ type: nginx_proxy
+ name: site02
+ proxy:
+ upstream_proxy_pass: http://horizon-upstream
+ host:
+ name: cloudlab.domain.com
+ port: 31337