Browse Source

add info on configuring nginx

jahway
jahway603 1 year ago
parent
commit
785243799a
  1. 14
      doc/examples/README.md

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.

Loading…
Cancel
Save