Port and related changes for secure connections with nginx as reverse proxy

This commit is contained in:
fekt
2022-12-01 01:14:09 -05:00
parent 557d23c6c6
commit 6b3cc20054
2 changed files with 5 additions and 5 deletions

View File

@@ -163,7 +163,7 @@ class LightWalletGrpcService private constructor(
.context(appContext)
.enableFullStreamDecompression()
.apply {
usePlaintext()
useTransportSecurity()
/*
if (lightWalletEndpoint.isSecure) {
useTransportSecurity()

View File

@@ -20,25 +20,25 @@ fun LightWalletEndpoint.Companion.defaultForNetwork(zcashNetwork: ZcashNetwork):
*/
private const val COMPUTER_LOCALHOST = "10.0.2.2"
private const val DEFAULT_PORT = 9067
private const val DEFAULT_PORT = 443
val LightWalletEndpoint.Companion.Mainnet
get() = LightWalletEndpoint(
"lite2.hushpool.is",
DEFAULT_PORT,
isSecure = false
isSecure = true
)
val LightWalletEndpoint.Companion.Testnet
get() = LightWalletEndpoint(
"lite2.hushpool.is",
DEFAULT_PORT,
isSecure = false
isSecure = true
)
val LightWalletEndpoint.Companion.Darkside
get() = LightWalletEndpoint(
COMPUTER_LOCALHOST,
DEFAULT_PORT,
isSecure = false
isSecure = true
)