Browse Source

Document nginx special sauce

master
Duke Leto 3 years ago
parent
commit
246d40e6f9
  1. 33
      README.md

33
README.md

@ -37,10 +37,43 @@ It will run in the background. You can see the process via:
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:
```
[browser] <=> [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;
}
}
```
# 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.
# License
GPLv3

Loading…
Cancel
Save