mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-01-19 05:33:31 +01:00
0f8da123b8
* UI: Move section navigation to sidebar * Scroll active nav link into view * Move CTAs to top right * Server Settings: Make Policies first page * Responsive table fixes * Spacing fixes * Add breadcrumb samples * store settings fixes * payment request fixes * updates pull payment title * adds invoice detail fix * updates server settings breadcrumbs + copy fix * Don't open Server Settings on Plugins page * Add breadcrumbs to pull payment views * adds breadcrumbs to account * server and store breadcrumb fixes * fixes access tokens * Fix payment processor breadcrumbs * fixes webhook 404 * Final touches * Fix test * Add breadcrumb for email rules page * Design system updates --------- Co-authored-by: dstrukt <gfxdsign@gmail.com>
93 lines
4.1 KiB
Plaintext
93 lines
4.1 KiB
Plaintext
@using BTCPayServer.Abstractions.Models
|
|
@model BTCPayServer.Models.ServerViewModels.DynamicDnsViewModel[]
|
|
@{
|
|
ViewData.SetActivePage(ServerNavPages.Services, "Dynamic DNS Settings");
|
|
}
|
|
<div class="sticky-header">
|
|
<nav aria-label="breadcrumb">
|
|
<ol class="breadcrumb">
|
|
<li class="breadcrumb-item">
|
|
<a asp-action="Services">Services</a>
|
|
</li>
|
|
<li class="breadcrumb-item active" aria-current="page">@ViewData["Title"]</li>
|
|
</ol>
|
|
<h2>
|
|
<span>@ViewData["Title"]</span>
|
|
<small>
|
|
<a href="https://docs.btcpayserver.org/Apps/" target="_blank" rel="noreferrer noopener" title="More information...">
|
|
<vc:icon symbol="info" />
|
|
</a>
|
|
</small>
|
|
</h2>
|
|
</nav>
|
|
<div>
|
|
<form method="post" asp-action="DynamicDnsService">
|
|
<button id="AddDynamicDNS" class="btn btn-primary mt-2" type="submit">Add Service</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<partial name="_StatusMessage" />
|
|
<div class="row">
|
|
<div class="col-md-8">
|
|
<div class="form-group">
|
|
<p>
|
|
Dynamic DNS allows you to have a stable DNS name pointing to your server, even if your IP address changes regulary.
|
|
This is recommended if you are hosting BTCPay Server at home and wish to have a clearnet domain to access your server.
|
|
</p>
|
|
<p>
|
|
Note that you need to properly configure your NAT and BTCPay Server installation to get the HTTPS certificate.
|
|
See the documentation for <a href="https://docs.btcpayserver.org/Deployment/DynamicDNS/" target="_blank" rel="noreferrer noopener">more information</a>.
|
|
</p>
|
|
</div>
|
|
|
|
@if (Model.Any())
|
|
{
|
|
<div class="table-responsive-md">
|
|
<table class="table table-sm">
|
|
<thead>
|
|
<tr>
|
|
<th>Hostname</th>
|
|
<th>Last updated</th>
|
|
<th class="text-center">Enabled</th>
|
|
<th class="text-end">Actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var service in Model)
|
|
{
|
|
<tr>
|
|
<td>@service.Settings.Hostname</td>
|
|
<td>@service.LastUpdated</td>
|
|
<td class="text-center">
|
|
@if (service.Settings.Enabled)
|
|
{
|
|
<vc:icon symbol="checkmark" css-class="text-success" />
|
|
}
|
|
else
|
|
{
|
|
<vc:icon symbol="cross" css-class="text-danger" />
|
|
}
|
|
</td>
|
|
<td class="text-end">
|
|
<a asp-action="DynamicDnsService" asp-route-hostname="@service.Settings.Hostname">Edit</a>
|
|
<span> - </span>
|
|
<a asp-action="DeleteDynamicDnsService" asp-route-hostname="@service.Settings.Hostname" data-bs-toggle="modal" data-bs-target="#ConfirmModal" data-description="Deleting the dynamic DNS service for <strong>@Html.Encode(service.Settings.Hostname)</strong> means your BTCPay Server will stop updating the associated DNS record periodically." data-confirm-input="DELETE">Delete</a>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<p class="text-secondary mt-3">
|
|
There are no dynamic DNS services yet.
|
|
</p>
|
|
}
|
|
</div>
|
|
</div>
|
|
|
|
<partial name="_Confirm" model="@(new ConfirmModel("Delete dynamic DNS service", "Deleting the dynamic DNS service means your BTCPay Server will stop updating the associated DNS record periodically.", "Delete"))" />
|
|
|