Browse Source
Come back to Samourai's base code + add env var for tor port
umbrel
Lounès Ksouri
4 years ago
No known key found for this signature in database
GPG Key ID: F8DC83D24F68572D
1 changed files with
1 additions and
9 deletions
-
docker/my-dojo/node/keys.index.js
|
|
@ -22,14 +22,6 @@ if (process.env.EXPLORER_INSTALL == 'on') { |
|
|
|
} catch(e) {} |
|
|
|
} |
|
|
|
|
|
|
|
// Retrieve Tor proxy from environment variables or set to defaults
|
|
|
|
let torIP = (process.env.TOR_PROXY_IP) |
|
|
|
? process.env.TOR_PROXY_IP |
|
|
|
: '172.28.1.4' |
|
|
|
|
|
|
|
let torPort = (process.env.TOR_PROXY_PORT) |
|
|
|
? process.env.TOR_PROXY_PORT |
|
|
|
: '9050' |
|
|
|
|
|
|
|
/** |
|
|
|
* Desired structure of /keys/index.js, which is ignored in the repository. |
|
|
@ -198,7 +190,7 @@ module.exports = { |
|
|
|
}, |
|
|
|
// Use a SOCKS5 proxy for all communications with external services
|
|
|
|
// Values: null if no socks5 proxy used, otherwise the url of the socks5 proxy
|
|
|
|
socks5Proxy: `socks5h://${process.env.NET_DOJO_TOR_IPV4}:9050`, |
|
|
|
socks5Proxy: `socks5h://${process.env.NET_DOJO_TOR_IPV4}:${process.env.NET_DOJO_TOR_PORT}`, |
|
|
|
// OXT (mainnet)
|
|
|
|
oxt: process.env.NODE_URL_OXT_API, |
|
|
|
// Esplora (testnet)
|
|
|
|