Skip to content

Commit d9d206d

Browse files
committed
Updated README
1 parent 1f72f0b commit d9d206d

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,36 @@ Set up a [punjab](https://github.com/twonds/punjab) server and simply configure
2323
npm install --save --production @osjs/strophejs-application
2424
npm run package:discover
2525
```
26+
27+
### Custom BOSCH Server using Prosody
28+
29+
If you use Docker, you can simply add [Prosody](https://prosody.im/) to your docker-compose file:
30+
31+
> **NOTE: You have to copy the default prosody configuration into `src/etc/prosody` first. Then enable the BOSCH http server module.**
32+
33+
> NOTE: A domain name or hostname resolved via DNS is recommended (`my-domain.com` in this example)
34+
35+
```
36+
services:
37+
prosody:
38+
image: prosody/prosody
39+
ports:
40+
- "5280:5280"
41+
volumes:
42+
- "./logs/prosody:/var/log/prosody"
43+
- "./src/prosody/etc:/etc/prosody"
44+
```
45+
46+
You can now add users via the docker container with:
47+
48+
```
49+
docker-compose exec prosody prosodyctl adduser username@my-domain.com
50+
```
51+
52+
Then in the OS.js application:
53+
54+
```
55+
Host: http://my-domain.com/http-bind
56+
Username: username@my-domain.com
57+
Password: abc123
58+
```

0 commit comments

Comments
 (0)