2018-07-22 18:38:14 +09:00
|
|
|
@model BTCPayServer.Models.ServerViewModels.ServicesViewModel
|
|
|
|
@{
|
2021-04-08 15:32:42 +02:00
|
|
|
ViewData.SetActivePageAndTitle(ServerNavPages.Services, "Services");
|
2018-07-22 18:38:14 +09:00
|
|
|
}
|
|
|
|
|
2021-04-08 15:32:42 +02:00
|
|
|
<h2 class="mb-4">@ViewData["PageTitle"]</h2>
|
2018-07-22 18:38:14 +09:00
|
|
|
|
2021-06-06 04:41:14 -07:00
|
|
|
<div class="mb-5">
|
2021-04-08 15:32:42 +02:00
|
|
|
<h4 class="mb-3">Crypto services exposed by your server</h4>
|
2020-07-09 17:22:28 +02:00
|
|
|
<table class="table table-sm mt-2">
|
|
|
|
<thead>
|
2019-04-22 09:41:20 +02:00
|
|
|
<tr>
|
|
|
|
<th>Crypto</th>
|
|
|
|
<th>Access Type</th>
|
|
|
|
<th style="text-align: right">Actions</th>
|
|
|
|
</tr>
|
2020-07-09 17:22:28 +02:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach (var s in Model.ExternalServices.Where(service => !string.IsNullOrEmpty(service.CryptoCode)))
|
|
|
|
{
|
|
|
|
<tr>
|
|
|
|
<td>@s.CryptoCode</td>
|
|
|
|
<td>
|
|
|
|
<span>@s.DisplayName</span>
|
|
|
|
@if (s.ConnectionString.IsOnion() == true ||
|
|
|
|
(s.ConnectionString.IsOnion() == false && this.Context.Request.IsOnion()))
|
|
|
|
{
|
|
|
|
<span><img style="display:inline; margin-top:-8px;" src="~/img/icons/Onion_Color.svg" height="20" asp-append-version="true" /></span>
|
|
|
|
}
|
|
|
|
</td>
|
|
|
|
<td style="text-align: right">
|
|
|
|
<a asp-action="Service" asp-route-serviceName="@s.ServiceName" asp-route-cryptoCode="@s.CryptoCode">See information</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@if (Model.OtherExternalServices.Count != 0 || Model.ExternalServices.Any(service => string.IsNullOrEmpty(service.CryptoCode)))
|
|
|
|
{
|
2021-06-06 04:41:14 -07:00
|
|
|
<div class="mb-5">
|
|
|
|
<h4 class="mb-3">Other external services</h4>
|
2020-07-09 17:22:28 +02:00
|
|
|
|
2021-06-06 04:41:14 -07:00
|
|
|
<table class="table table-sm mt-2">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
<th style="text-align: right">Actions</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach (var s in Model.ExternalServices.Where(service => string.IsNullOrEmpty(service.CryptoCode)))
|
|
|
|
{
|
|
|
|
<tr>
|
|
|
|
<td>@s.DisplayName</td>
|
|
|
|
<td style="text-align: right">
|
|
|
|
<a asp-action="Service" asp-route-serviceName="@s.ServiceName">See information</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
}
|
|
|
|
@foreach (var s in Model.OtherExternalServices)
|
|
|
|
{
|
|
|
|
<tr>
|
|
|
|
<td>@s.Name</td>
|
|
|
|
<td style="text-align: right">
|
|
|
|
<a href="@s.Link" target="_blank">See information</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2018-12-07 18:42:39 +09:00
|
|
|
</div>
|
2019-03-17 12:57:18 +09:00
|
|
|
}
|
|
|
|
|
2019-03-18 16:45:46 +09:00
|
|
|
@if (Model.TorHttpServices.Count != 0)
|
2019-03-17 12:57:18 +09:00
|
|
|
{
|
2021-06-06 04:41:14 -07:00
|
|
|
<div class="mb-5">
|
|
|
|
<h4 class="mb-3">HTTP-based TOR hidden services</h4>
|
2020-07-09 17:22:28 +02:00
|
|
|
|
2021-06-06 04:41:14 -07:00
|
|
|
<table class="table table-sm mt-2">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
<th style="text-align: right">Actions</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach (var s in Model.TorHttpServices)
|
|
|
|
{
|
|
|
|
<tr>
|
|
|
|
<td>@s.Name</td>
|
|
|
|
<td style="text-align: right">
|
|
|
|
<a href="@s.Link" target="_blank">See information</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2018-08-13 15:10:59 +09:00
|
|
|
</div>
|
2018-12-07 18:42:39 +09:00
|
|
|
}
|
2018-07-22 18:38:14 +09:00
|
|
|
|
2019-03-18 16:45:46 +09:00
|
|
|
@if (Model.TorOtherServices.Count != 0)
|
|
|
|
{
|
2021-06-06 04:41:14 -07:00
|
|
|
<div class="mb-5">
|
|
|
|
<h4 class="mb-3">Other TOR hidden services</h4>
|
2020-07-09 17:22:28 +02:00
|
|
|
|
|
|
|
<table class="table table-sm mt-2">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
2021-06-06 04:41:14 -07:00
|
|
|
<th>URL</th>
|
2020-07-09 17:22:28 +02:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2021-06-06 04:41:14 -07:00
|
|
|
@foreach (var s in Model.TorOtherServices)
|
2020-07-09 17:22:28 +02:00
|
|
|
{
|
|
|
|
<tr>
|
|
|
|
<td>@s.Name</td>
|
2021-06-06 04:41:14 -07:00
|
|
|
<td style="word-wrap: anywhere;">
|
|
|
|
<code>@s.Link</code>
|
2020-07-09 17:22:28 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2021-06-06 04:41:14 -07:00
|
|
|
}
|
|
|
|
<div class="mb-5">
|
|
|
|
<h4 class="mb-3">External storage services</h4>
|
|
|
|
<p class="text-secondary mb-0">Integrated storage providers to store file uploads from BTCPay Server.</p>
|
|
|
|
|
|
|
|
<table class="table table-sm mt-2">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
<th style="text-align: right">Actions</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach (var s in Model.ExternalStorageServices)
|
|
|
|
{
|
|
|
|
<tr>
|
|
|
|
<td>@s.Name</td>
|
|
|
|
<td style="text-align: right">
|
|
|
|
<a href="@s.Link">Edit</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2019-04-22 09:41:20 +02:00
|
|
|
</div>
|
2019-03-18 16:45:46 +09:00
|
|
|
|
2021-05-19 04:39:27 +02:00
|
|
|
@section PageFootContent {
|
2021-04-08 15:32:42 +02:00
|
|
|
<partial name="_ValidationScriptsPartial" />
|
2018-07-22 18:38:14 +09:00
|
|
|
}
|