You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
2.1 KiB

5 years ago
# Silent Dragon Wormhole
3 years ago
Wormhole Service for SilentDragon mobile app at wormhole.hush.is
5 years ago
5 years ago
# Compiling From Source
5 years ago
Install dependencies:
5 years ago
sudo apt-get install android-sdk gradle
5 years ago
Your system may have a version of gradle that is too old. Gradle 5.6.1 is known
to work well:
wget https://services.gradle.org/distributions/gradle-5.6.1-bin.zip
unzip gradle-5.6.1-bin.zip
export PATH=$PWD/gradle-5.6.1/bin:$PATH
You will also need a `java` binary installed:
sudo apt install default-jre # or something equivalent
5 years ago
Clone and compile:
4 years ago
git clone https://git.hush.is/hush/SilentDragonWormhole
5 years ago
cd SilentDragonWormhole
gradle build
5 years ago
# Running the Wormhole
If the build was successful, you can execute the binary and start the server:
./run.sh
It will run in the background. You can see the process via:
ps auxw|grep wormhole
5 years ago
Note: The default port of the Wormhole is 7070. This can be changed in source and recompiled if needed.
# Nginx Proxying
You will want something to proxy SSL connections in front of the wormhole, it doesn't handle that itself.
For example, the production `wormhole.hush.is` uses CloudFlare to proxy SSL connections, which then talks
to nginx, which then proxies to the actual wormhole server. Like so:
```
[SDA] <=> [CloudFlare] <=> [nginx] <=> [wormhole]
```
Here is an example nginx config that you can use, just change your `server_name` :
```
server {
root /var/www/wormhole.hush.is;
index index.html index.htm;
server_name wormhole.hush.is;
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://localhost:7070;
}
}
```
3 years ago
# It's Not Working?
The wormhole does not print anything to STDOUT, all logging is in application.log
Getting "Peer is not connected" ? Restart SilentDragon/SilentDragonLite and pair SDA again.
5 years ago
# License
4 years ago
GPLv3
5 years ago
# Authors
4 years ago
The Hush developers
5 years ago
Zecwallet developers