From 9d3e370e5f1f86326a49f8eca832c523f573ba33 Mon Sep 17 00:00:00 2001 From: Kapil Viren Ahuja Date: Thu, 6 Apr 2017 18:23:38 +0530 Subject: WS is now going via notif subdomain instead of localhost --- docker-compose.yml | 2 +- nginx/sites/notif.vainsocial.dev.conf | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 nginx/sites/notif.vainsocial.dev.conf diff --git a/docker-compose.yml b/docker-compose.yml index 07d85dd..d6e936f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -86,7 +86,7 @@ services: - php-fpm - vaindock_queue ports: - - "88:80" + - "80:80" - "443:443" vaindock_bridge: diff --git a/nginx/sites/notif.vainsocial.dev.conf b/nginx/sites/notif.vainsocial.dev.conf new file mode 100644 index 0000000..034decc --- /dev/null +++ b/nginx/sites/notif.vainsocial.dev.conf @@ -0,0 +1,13 @@ +server { + + listen 80; + listen [::]:80; + + server_name notif.vainsocial.dev; + + location / { + proxy_pass http://websocket; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $connection_upgrade; } +} -- cgit v1.3.1