-
Notifications
You must be signed in to change notification settings - Fork 12
/
buddycloud-vm
47 lines (40 loc) · 848 Bytes
/
buddycloud-vm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
angular-xmpp
============
The angular-xmpp client has no server component.
It's possible to use nginx to serve these files
Install in buddycloud-xm
----------------------------
```
cd /opt
bower install angular-xmpp
```
nginx configuration
-------------
```
server {
server_name buddycloud.dev;
listen 80;
location /api/ {
proxy_pass http://127.0.0.1:9123/;
}
location / {
proxy_pass http://127.0.0.1:3000/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location /bin/ {
root /opt/bower_components/angular-xmpp/;
}
}
```
restart nginx
------------------
```
/etc/init.d/nginx restart
```
open the client
-----------------
```
http://localhost:3000/bin
```