]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
chat01 - use multiple backends
authorPhilipp Dallig <philipp.dallig@pixelpark.com>
Fri, 12 Aug 2016 10:20:17 +0000 (12:20 +0200)
committerPhilipp Dallig <philipp.dallig@pixelpark.com>
Fri, 12 Aug 2016 10:20:17 +0000 (12:20 +0200)
customer/pixelpark/chat01.pixelpark.com.yaml

index 63d0137a92c910f72e3d40b66d4b61592a8bf84c..3c7774b729f37832530365e9f31e456731372b9a 100644 (file)
@@ -15,7 +15,7 @@ nginx::nginx_vhosts:
     ssl_cert: /etc/pki/tls/certs/wildcard.pixelpark.com-cert.pem
     ssl_key: /etc/pki/tls/private/wildcard.pixelpark.com-key.pem
     rewrite_to_https: true
-    proxy: http://127.0.0.1:3000
+    proxy: http://rocket_chat
     proxy_set_header:
       - 'Upgrade $http_upgrade'
       - 'Connection "upgrade"'
@@ -28,6 +28,13 @@ nginx::nginx_vhosts:
       - 'X-Forwarded-Ssl on'
     client_max_body_size: '50m'
 
+nginx::nginx_upstreams:
+  rocket_chat:
+    members:
+      - 127.0.0.1:3000
+      - 127.0.0.1:3001
+      - 127.0.0.1:3002
+
 site::profile::apache::pp_vhosts:
   rocket:
     docroot: '/opt/Rocket.Chat/bundle/public'