add info on configuring nginx #40

Merged
duke merged 3 commits from jahway into dev 2 years ago
  1. 4
      cmd/server/main.go
  2. 14
      doc/examples/README.md
  3. 6
      doc/man/lightwalletd.1

4
cmd/server/main.go

@ -90,7 +90,7 @@ type Options struct {
}
func main() {
var version = "0.1.1" // set version number
var version = "0.1.2" // set version number
opts := &Options{}
flag.StringVar(&opts.bindAddr, "bind-addr", "127.0.0.1:9067", "the address to listen on")
@ -104,7 +104,7 @@ func main() {
// creating --version as a requirement of help2man
if len(os.Args) > 1 && (os.Args[1] == "--version" || os.Args[1] == "-v") {
fmt.Printf("Hush lightwalletd version " + version + "\n")
fmt.Printf("Hush lightwalletd version %s\n", version)
os.Exit(0)
}

14
doc/examples/README.md

@ -12,7 +12,19 @@ The [Hush Lightwalletd](https://git.hush.is/hush/lightwalletd/) can be configure
## With Nginx
For Nginx specifics, refer to the [lightwalletd README](https://git.hush.is/hush/lightwalletd/src/branch/master/README.md) to setup your SSL cert config.
Then you can use this [example shell script](run_lightwalletd_nginx.sh) to run lightwalletd with an nginx reverse proxy frontend. In the script you have to change the hostname and username before running it.
1. Then you configure nginx for for a regular website & then run certbot to generate certs.
1. Then use a block like this in your nginx config under the port 443 section:
```
location / {
# Replace localhost:9067 with the address and port of your gRPC server if using a custom port
grpc_pass grpc://127.0.0.1:9067;
}
```
1. Then you can use this [example shell script](run_lightwalletd_nginx.sh) to run lightwalletd with an nginx reverse proxy frontend. In the script you have to change the hostname and username before running it.
## No Web
Here we run lightwalletd without any web servers (no nginx) and as a stand-alone service managing the SSL cert config internally. Use this [example shell script](run_lightwalletd_no-web.sh) to run lightwalletd stand-alone.

6
doc/man/lightwalletd.1

@ -1,6 +1,6 @@
.TH LIGHTWALLET "1" "October 2021" "lightwalletd v0.1.1" "User Commands"
.TH LIGHTWALLET "1" "October 2022" "lightwalletd v0.1.2" "User Commands"
.SH NAME
lightwalletd \- manual page for hush lightwalletd v0.1.1
lightwalletd \- manual page for hush lightwalletd v0.1.2
.SH DESCRIPTION
.B lightwalletd
runs a lightwallet daemon for a Hush Silent Dragon Lite node.
@ -59,7 +59,7 @@ the path to a TLS key file (optional)
In order to ensure you are adequately protecting your privacy when using Hush,
please see <https://hush.is/security/>.
Copyright (C) 2021 Jahway603 and The Hush Developers
Copyright (C) 2016-2022 Jahway603 and The Hush Developers
This is experimental Free Software! Fuck Yeah!!!!!

Loading…
Cancel
Save