# Prosody server with a OTRv4 prekey server included
A docker composed infrastructure containing a prosody xmpp server and a OTRv4 prekey server added to it. It also has some dummy accounts.
A docker composed infrastructure containing a [prosody](https://prosody.im/) xmpp server and a [OTRv4](https://github.com/otrv4/libotr-ng) prekey server added to it.
NOTE: This server is intended to be used only for local testing.
It also has some [dummy accounts](#available-accounts).
__IMPORTANT__: This server is intended to be used only for **local testing**.
## Content
-[Running the xmpp server on Docker](#running-the-xmpp-server-on-docker)
-[Restarting the prosody server](#restarting-the-prosody-server)
-[Available accounts](#available-accounts)
-[Troubleshoots](#troubleshoots)
## Running the xmpp server on Docker
...
...
@@ -17,11 +26,10 @@ NOTE: This server is intended to be used only for local testing.
2. Run:
```
docker-compose up
$ docker-compose up
```
3. Copy the shown fingerprint (without spaces/brackets) into the `.env` file.
Something like this will be shown:
3. Copy the shown fingerprint (without spaces/brackets) into the `.env` file. Something like this will be shown:
```
prekeys-raw_1 | Starting server on 0.0.0.0:30123...
prekeys-xmpp_1 | fingerprint provided is not valid
```
This is line shows you the appropriate fingerprint `prekeys-raw_1 | [F91453A3D80BB48F FD683C98FBB2ED30 33F52861F6549F64 A45216627D43BA80 CCD9B08156CBAB97 E9B00314B313AF87 6FD6FBAFE97C00CC]`.
This is line shows you the appropriate fingerprint
RUN chown root:prosody /etc/prosody/certs/localhost.key
RUN chmod 660 /etc/prosody/certs/localhost.key
+-------------------------------------+
| ACCOUNT | PASSWORD |
+-------------------------------------+
| alice@localhost | alice |
+-------------------------------------+
| bob@localhost | bob |
+-------------------------------------+
```
- Rebuild the image
## Troubleshoots
If you need to fix [ownership]([https://prosody.im/doc/certificates](https://prosody.im/doc/certificates)) issues using `prosody`, you can do the following: