Browse Source

minor update for hush lite server doc and sdl-raw

fullnodevm
jahway603 3 years ago
parent
commit
468005e2b9
  1. 61
      advanced/sdl-in-the-raw.md
  2. 2
      hush-lite-server.md

61
advanced/sdl-in-the-raw.md

@ -21,56 +21,10 @@ Once that is done downloading, we setup [Hush lightwalletd](https://git.hush.is/
1. Clone it ```git clone https://git.hush.is/hush/lightwalletd```
1. Then run
```shell script
cd lightwalletd
sudo go run cmd/server/main.go -bind-addr 127.0.0.1:9067 -conf-file ~/.komodo/HUSH3/HUSH3.conf -no-tls
```
### Setup nginx as reverse proxy
Here we use a very simple nginx.conf as this web server will not run anything else and will only be started when needed.
1. Install nginx. Look up how to do that as it differs per operating system.
1. Start up nginx and open your computer's web browser to http://127.0.0.1 to verify that the nginx test page is working. If not then determine nginx is running and then continue on when it is.
1. Backup the nginx.conf to a nginx.conf.original before you change it.
1. Then delete everything in the nginx.conf and replace with the following:
```
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80 http2;
server_name localhost;
location / {
grpc_pass grpc://localhost:9067;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
}
```
1. Restart nginx.
```shell script
sudo systemctl restart nginx.service
```
```shell script
cd lightwalletd
sudo go run cmd/server/main.go -bind-addr 127.0.0.1:9067 -conf-file ~/.komodo/HUSH3/HUSH3.conf -no-tls
```
### Download and install SDL
@ -86,9 +40,10 @@ Here we use a very simple nginx.conf as this web server will not run anything el
1. Locate your SDL config file. On Linux it's usually in ~/.config/Hush/SilentDragonLite.conf. I'm not sure where they reside on Windows or Mac.
1. In the [connection] section, make sure the following is there & we only want one server= line in that section:
```shell script
server=http://127.0.0.1:9067
```
```shell script
[connection]
server=http://127.0.0.1:9067
```
### Start SDL

2
hush-lite-server.md

@ -104,7 +104,7 @@ Install your preferred distro. In this example I am using a VPS running Ubuntu 2
1. Run the lightwalletd frontend with the following and your server's hostname:
```shell script
sudo go run cmd/server/main.go -bind-addr your_host.net:9067 -conf-file /home/YOUR_USERNAME_Running_Hushd/.komodo/HUSH3/HUSH3.conf -no-tls
go run cmd/server/main.go -bind-addr your_host.net:9067 -conf-file /home/YOUR_USERNAME_Running_Hushd/.komodo/HUSH3/HUSH3.conf -no-tls
```
Note: Above we use the "-no-tls" option as we are using NGINX as a reverse proxy and letting it handle the TLS authentication for us.

Loading…
Cancel
Save