Destroyed Using your own server (markdown)

Moxie Marlinspike 2015-07-01 09:51:18 -07:00
parent 0f55afb7e5
commit 7608babab7
1 changed files with 0 additions and 42 deletions

@ -1,42 +0,0 @@
* see also https://github.com/WhisperSystems/TextSecure-Server/issues/5
* The server code repository is [here](https://github.com/WhisperSystems/TextSecure-Server).
To setup your own server a few things are required on your machine:
1. Java JDK
2. Redis
3. Memcached
4. PostgreSQL (or possibly any other SQL Server)
5. Maven
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
Maven also needs the Capsule Plugin to generate the .jar of the PushServer. https://github.com/chrischristo/capsule-maven-plugin. Follow the instruction in their repo.
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.
The lines should look like:
`environment.lifecycle().manage(apnSender);`
`environment.lifecycle().manage(gcmSender);`
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.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, be sure to include the push server settings
3. install test suite surefire https://github.com/apache/maven-surefire.git
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`
8. start server with `java -jar PATH-TO-JAR server local.yml`