Show the gRPC cypher suites for gRPC consumption

This commit is contained in:
nicolas.dorier
2018-12-20 14:16:23 +09:00
parent 70d1d0d230
commit 73e280157d
3 changed files with 13 additions and 3 deletions

View File

@@ -520,6 +520,7 @@ namespace BTCPayServer.Controllers
model.Host = $"{external.BaseUri.DnsSafeHost}:{external.BaseUri.Port}"; model.Host = $"{external.BaseUri.DnsSafeHost}:{external.BaseUri.Port}";
model.SSL = external.BaseUri.Scheme == "https"; model.SSL = external.BaseUri.Scheme == "https";
model.ConnectionType = "GRPC"; model.ConnectionType = "GRPC";
model.GRPCSSLCipherSuites = "ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256";
} }
else if(external.ConnectionType == LightningConnectionType.LndREST) else if(external.ConnectionType == LightningConnectionType.LndREST)
{ {

View File

@@ -13,6 +13,8 @@ namespace BTCPayServer.Models.ServerViewModels
public string Macaroon { get; set; } public string Macaroon { get; set; }
public string RestrictedMacaroon { get; set; } public string RestrictedMacaroon { get; set; }
public string CertificateThumbprint { get; set; } public string CertificateThumbprint { get; set; }
[Display(Name = "GRPC SSL Cipher suite (GRPC_SSL_CIPHER_SUITES)")]
public string GRPCSSLCipherSuites { get; set; }
public string QRCode { get; set; } public string QRCode { get; set; }
public string QRCodeLink { get; set; } public string QRCodeLink { get; set; }
[Display(Name = "REST Uri")] [Display(Name = "REST Uri")]

View File

@@ -89,9 +89,16 @@
@if (Model.RestrictedMacaroon != null) @if (Model.RestrictedMacaroon != null)
{ {
@*<div class="form-group"> @*<div class="form-group">
<label asp-for="RestrictedMacaroon"></label> <label asp-for="RestrictedMacaroon"></label>
<input asp-for="RestrictedMacaroon" readonly class="form-control" /> <input asp-for="RestrictedMacaroon" readonly class="form-control" />
</div>*@ </div>*@
}
@if (Model.GRPCSSLCipherSuites != null)
{
<div class="form-group">
<label asp-for="GRPCSSLCipherSuites"></label>
<input asp-for="GRPCSSLCipherSuites" readonly class="form-control" />
</div>
} }
@if (Model.CertificateThumbprint != null) @if (Model.CertificateThumbprint != null)
{ {