|
@ -2,10 +2,17 @@ |
|
|
// Mac OS X: /Users/user/Library/Application Support/Lnd/tls.cert
|
|
|
// Mac OS X: /Users/user/Library/Application Support/Lnd/tls.cert
|
|
|
// Linux: ~/.lnd/tls.cert
|
|
|
// Linux: ~/.lnd/tls.cert
|
|
|
// Windows: TODO find out where cert is located for windows machine
|
|
|
// Windows: TODO find out where cert is located for windows machine
|
|
|
import { userInfo } from 'os' |
|
|
import { userInfo, platform } from 'os' |
|
|
|
|
|
|
|
|
|
|
|
var loc; |
|
|
|
|
|
if (platform() == 'linux') { |
|
|
|
|
|
loc = `/home/${userInfo().username}/.lnd/tls.cert` |
|
|
|
|
|
} else if (platform() == 'darwin') { |
|
|
|
|
|
loc = `/Users/${userInfo().username}/Library/Application Support/lnd/tls.cert` |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
lightningRpc: `${__dirname}/rpc.proto`, |
|
|
lightningRpc: `${__dirname}/rpc.proto`, |
|
|
lightningHost: 'localhost:10009', |
|
|
lightningHost: 'localhost:10009', |
|
|
cert: `/Users/${userInfo().username}/Library/Application Support/Lnd/tls.cert` |
|
|
cert: loc |
|
|
} |
|
|
} |
|
|