mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-07-19 07:54:34 +00:00
Add support for adding Client Certificates to access-lists
Client certificate support is added as a new separate type of option for access-lists. This commit is the support code to enable access-lists to contain Client Certificate references.
This commit is contained in:
18
frontend/js/app/nginx/access/form/clientca.ejs
Normal file
18
frontend/js/app/nginx/access/form/clientca.ejs
Normal file
@ -0,0 +1,18 @@
|
||||
<input id="cacert-<%=certificate.id%>" class="form-selectgroup-input" name="certificate_id[]" value="<%= certificate.id %>" type="checkbox" checked hidden/>
|
||||
<div class="col-auto">
|
||||
<i class="fe fe-shield text-green"></i>
|
||||
</div>
|
||||
<div class="col flex-fill">
|
||||
<div class="text-truncate">
|
||||
<strong><%= certificate.nice_name %></strong>
|
||||
<div class="text-muted">Expires: <%- formatDbDate(certificate.expires_on, 'Do MMMM YYYY, h:mm a') %></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-auto align-self-center <% if (certificate.is_deleted == 1) { %>text-danger<% } %>">
|
||||
<% if (certificate.is_deleted == 1) { %><i>Deleted</i><% } %>
|
||||
</div>
|
||||
<div class="col-auto align-self-center">
|
||||
<button class="btn btn-sm btn-outline-danger btn-icon clientca_del" data-value="<%=certificate.id%>">
|
||||
<i class="fe fe-trash-2"></i>
|
||||
</button>
|
||||
</div>
|
7
frontend/js/app/nginx/access/form/clientca.js
Normal file
7
frontend/js/app/nginx/access/form/clientca.js
Normal file
@ -0,0 +1,7 @@
|
||||
const Mn = require('backbone.marionette');
|
||||
const template = require('./clientca.ejs');
|
||||
|
||||
module.exports = Mn.View.extend({
|
||||
template: template,
|
||||
className: 'row'
|
||||
});
|
Reference in New Issue
Block a user