From 91a8b3c458ae4e8fb10986fa8fd8b0b5d74068ea Mon Sep 17 00:00:00 2001 From: Philipp Dallig Date: Fri, 12 Aug 2016 12:20:17 +0200 Subject: [PATCH] chat01 - use multiple backends --- customer/pixelpark/chat01.pixelpark.com.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/customer/pixelpark/chat01.pixelpark.com.yaml b/customer/pixelpark/chat01.pixelpark.com.yaml index 63d0137a..3c7774b7 100644 --- a/customer/pixelpark/chat01.pixelpark.com.yaml +++ b/customer/pixelpark/chat01.pixelpark.com.yaml @@ -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' -- 2.39.5