diff options
| author | Kapil Viren Ahuja <k.v.ahuja@gmail.com> | 2017-04-10 12:26:30 +0530 |
|---|---|---|
| committer | Kapil Viren Ahuja <k.v.ahuja@gmail.com> | 2017-04-10 12:26:30 +0530 |
| commit | 90dfd65538d09a78bffe64b4424bfb7c91bbeab4 (patch) | |
| tree | f0d99a5ae36daa12a9291954f9237635b4a8ef4e /nginx/sites/vainsocial.dev.conf | |
| parent | 644ca97564da0a49cd21862492768623ebf21ed8 (diff) | |
| download | vaindock-90dfd65538d09a78bffe64b4424bfb7c91bbeab4.tar.gz vaindock-90dfd65538d09a78bffe64b4424bfb7c91bbeab4.zip | |
Setup nginx to support /bridge
Diffstat (limited to 'nginx/sites/vainsocial.dev.conf')
| -rw-r--r-- | nginx/sites/vainsocial.dev.conf | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/nginx/sites/vainsocial.dev.conf b/nginx/sites/vainsocial.dev.conf index f32b01c..7760861 100644 --- a/nginx/sites/vainsocial.dev.conf +++ b/nginx/sites/vainsocial.dev.conf @@ -8,7 +8,22 @@ server { index index.php index.html index.htm; location /bridge { - proxy_pass http://192.168.1.34:8880/api; + # proxy_pass http://192.168.1.34:8880/api; + proxy_pass http://bridge/api; + } + + location /ws { + proxy_pass http://websocket; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $connection_upgrade; + } + + location /stomp { + proxy_pass http://websocket; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $connection_upgrade; } location / { |
