nginx now starts even if sparkwallet host not found

This commit is contained in:
kexkey
2019-04-01 16:40:37 -04:00
committed by kexkey
parent 769520343a
commit 4b98241cbb

View File

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