Browse Source

Explain a bit about --no-tls and localhost + nginx

deb-pkg-changes
Jonathan "Duke" Leto 1 year ago
parent
commit
2b2ac501bd
  1. 9
      README.md
  2. 6
      start.sh

9
README.md

@ -78,9 +78,10 @@ server {
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
location / { location / {
# Replace localhost:9067 with the address and port of your gRPC server if using a custom port # Replace 9067 with the port of your gRPC server if using a custom port
# Hush Smart Chains should use a different port than 9067 so it doesn't conflict with HUSH lightwalletd # Hush Smart Chains should use a different port than 9067 so it doesn't conflict with HUSH lightwalletd
grpc_pass grpc://your_host.net:9067; # NOTE: it's only safe to use --no-tls on lightwalletd if this is on localhost
grpc_pass grpc://localhost:9067;
} }
} }
``` ```
@ -88,7 +89,7 @@ server {
Then run the lightwalletd frontend with the following (Note: we use the "-no-tls" option as we are using NGINX as a reverse proxy and letting it handle the TLS authentication for us instead): Then run the lightwalletd frontend with the following (Note: we use the "-no-tls" option as we are using NGINX as a reverse proxy and letting it handle the TLS authentication for us instead):
``` ```
./lightwalletd -bind-addr your_host.net:9067 -conf-file ~/.hush/HUSH3/HUSH3.conf -no-tls ./lightwalletd -bind-addr localhost:9067 -conf-file ~/.hush/HUSH3/HUSH3.conf -no-tls
``` ```
##### Option B: "Let's Encrypt" certificate just using lightwalletd without NGINX ##### Option B: "Let's Encrypt" certificate just using lightwalletd without NGINX

6
start.sh

@ -1,12 +1,12 @@
#!/bin/bash #!/bin/bash
# Copyright 2020-2021 The Hush Developers # Copyright 2020-2022 The Hush Developers
# Released under GPLv3 # Released under GPLv3
# Description: This script would be used with a NGINX reverse proxy # Description: This script would be used with a NGINX reverse proxy
# you can choose either IPv4 or IPv6 # you can choose either IPv4 or IPv6
# using ipv4 localhost # using ipv4 localhost
#./lightwalletd -bind-addr localhost:9067 -conf-file ~/.komodo/HUSH3/HUSH3.conf -no-tls #./lightwalletd -bind-addr localhost:9067 -conf-file ~/.hush/HUSH3/HUSH3.conf -no-tls
# using ipv6 localhost # using ipv6 localhost
./lightwalletd -bind-addr ip6-localhost:9067 -conf-file ~/.komodo/HUSH3/HUSH3.conf -no-tls ./lightwalletd -bind-addr ip6-localhost:9067 -conf-file ~/.hush/HUSH3/HUSH3.conf -no-tls

Loading…
Cancel
Save