Browse Source

Merge pull request #4 from yapishu/umbrel-mod

Changed auth url to use RPC_AUTH var
umbrel-mod
reid 3 years ago
committed by GitHub
parent
commit
490dee040d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      rpc/server.js

3
rpc/server.js

@ -12,6 +12,7 @@ const electrsHost = process.env.ELECTRS_HOST;
const electrsPort = process.env.ELECTRS_PORT;
const btcRpcUser = process.env.BITCOIN_RPC_USER;
const btcRpcPass = process.env.BITCOIN_RPC_PASSWORD;
const btcRpcAuth = process.env.BITCOIN_RPC_AUTH;
// console.log(`INFO PROXY: btc rpc pass: ${btcCookiePass}`)
console.log(`INFO PROXY: Electrs host: ${electrsHost}:${electrsPort}`);
@ -77,7 +78,7 @@ const bRpc = (rpcCall) => {
"content-type": "text/plain;",
};
const options = {
url: `http://${btcRpcUser}:${btcRpcPass}@${btcRpcUrl}`,
url: `http://${btcRpcAuth}@${btcRpcUrl}`,
method: "POST",
headers: headers,
body: JSON.stringify(rpcCall),

Loading…
Cancel
Save