From cfb11186b135ccb59e1a9b9efdc9a9689d022c05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20T=C3=B6rnqvist?= Date: Thu, 9 Apr 2015 21:47:06 +0300 Subject: [PATCH] Updated Using your own server (markdown) --- Using-your-own-server.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Using-your-own-server.md b/Using-your-own-server.md index 167e850..82e2dcc 100644 --- a/Using-your-own-server.md +++ b/Using-your-own-server.md @@ -11,12 +11,25 @@ To setup your own server a few things are required on your machine: Furthermore Accounts with Gcm, Amazon S3 and Twilio are required, but can be made optional with few changes in the code. +You will also need the push server at https://github.com/WhisperSystems/PushServer + +In case you're not going to use APN and/or GCM, refer to `src/main/java/org/whispersystems/pushserver/PushServer.java` +and comment out the `lifecycle().manage()` lines. + +Build it with `mvn package`. + +At the time of writing this, there is no configuration sample in the repository. If this is true, +https://github.com/janimo/textsecure-docker/blob/master/config/pushconfig.yml.sample should be +available for you to use. + +Run it with `java -jar target/Push-Server-VERSION-capsule-fat.jar server pushconfig.yml.sample` + Once the requirements are installed, continue with the following: 1. git clone https://github.com/WhisperSystems/TextSecure-Server.git 2. cd into the TextSecure-Server directory 3. cp config/sample.yml local.yml -4. edit the local.yml with your details +4. edit the local.yml with your details, be sure to include the push server settings 5. compile server with `mvn package` 6. initialize account database with `java -jar PATH-TO-JAR accountdb migrate local.yml` 7. initialize message store with `java -jar PATH-TO-JAR messagedb migrate local.yml`