mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-04 16:33:32 +00:00
Add template support for all host types to do client CA authorization
When an access list contains client CAs, the combined CA auth file is added to all location blocks via an `if` statement. This allows LetsEncrypt and other support paths to work, while correctly denying access to the protected resources.
This commit is contained in:
@@ -264,7 +264,6 @@ const internalAccessList = {
|
||||
}, true /* <- skip masking */);
|
||||
})
|
||||
.then((row) => {
|
||||
console.log(row);
|
||||
return internalAccessList.build(row)
|
||||
.then(() => {
|
||||
if (row.proxy_host_count) {
|
||||
@@ -603,7 +602,6 @@ const internalAccessList = {
|
||||
});
|
||||
|
||||
const caCertificateBuild = new Promise((resolve, reject) => {
|
||||
// TODO: we need to ensure this rebuild is run if any certificates change
|
||||
logger.info('Building Client CA file #' + list.id + ' for: ' + list.name);
|
||||
let clientca_file = internalAccessList.getClientCAFilename(list);
|
||||
|
||||
|
Reference in New Issue
Block a user