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; } <% } %>