From 2c14f22ef747bd9a0f320b1a3b587a225683a48f Mon Sep 17 00:00:00 2001 From: yalh76 Date: Mon, 20 Jan 2020 03:18:36 +0100 Subject: [PATCH] Fix nginx --- conf/nginx.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 54c092f..35c4a49 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -21,7 +21,7 @@ location ~ ^/([a-zA-Z0-9=\?]+)$ { # BOSH location __PATH__/http-bind { - proxy_pass http://localhost:5290/http-bind; + proxy_pass http://127.0.0.1:5290/http-bind; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Host $http_host; proxy_buffering off; @@ -30,8 +30,8 @@ location __PATH__/http-bind { } # xmpp websockets -location /xmpp-websocket { - proxy_pass http://localhost:5290/xmpp-websocket; +location __PATH__/xmpp-websocket { + proxy_pass http://127.0.0.1:5290/xmpp-websocket; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade";