From 4b98241cbb6c700c3f3c18def1711ec00ac87a7f Mon Sep 17 00:00:00 2001 From: kexkey Date: Mon, 1 Apr 2019 16:40:37 -0400 Subject: [PATCH] nginx now starts even if sparkwallet host not found --- .../app/templates/lightning/c-lightning/nginx-spark-conf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/install/generator-cyphernode/generators/app/templates/lightning/c-lightning/nginx-spark-conf b/install/generator-cyphernode/generators/app/templates/lightning/c-lightning/nginx-spark-conf index dd0c824..4223633 100644 --- a/install/generator-cyphernode/generators/app/templates/lightning/c-lightning/nginx-spark-conf +++ b/install/generator-cyphernode/generators/app/templates/lightning/c-lightning/nginx-spark-conf @@ -13,7 +13,9 @@ location /sparkwallet/ { # Hardcoding sparkwallet password, it's only accessible from here anyway using htpasswd above proxy_set_header Authorization "Basic Y3lwaGVybm9kZTpzcGFya3dhbGxldA=="; - set $proxyurl http://sparkwallet:9737/; - proxy_pass $proxyurl; + # https://cyphernode:2009/sparkwallet/hello -> http://sparkwallet:9737/hello + rewrite ^/sparkwallet(/.*) $1 break; + resolver 127.0.0.11; + proxy_pass http://sparkwallet:9737$uri; } <% } %>