From 6cc425512fc48de8f6ae467ddbd1973a725b85cb Mon Sep 17 00:00:00 2001 From: Viktor Smari Date: Tue, 16 Oct 2018 15:57:48 +0200 Subject: [PATCH] Docker: Websocket nginx config fix --- scripts/nginx-conf/api.smartcitizen.me.conf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/nginx-conf/api.smartcitizen.me.conf b/scripts/nginx-conf/api.smartcitizen.me.conf index b7b28d50..3e00b65d 100644 --- a/scripts/nginx-conf/api.smartcitizen.me.conf +++ b/scripts/nginx-conf/api.smartcitizen.me.conf @@ -1,9 +1,13 @@ +upstream docker-push { + server push:8000; +} + server { listen 80; server_name ws.smartcitizen.me; location / { - proxy_pass http://localhost:8000; + proxy_pass http://docker-push; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade";