mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-05 17:03:33 +00:00
Add drop_unauthorized parameter to proxy hosts
drop_unauthorized returns 444 when a client is not authorized as opposed to 403. It can be used with Client Certificate authorization.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
{% if access_list.clientcas.size > 0 %}
|
||||
# TLS Client Certificate Authorization
|
||||
if ($ssl_client_verify != "SUCCESS") {
|
||||
return 403;
|
||||
return {% if drop_unauthorized == 1 %}444{% else %}403{% endif %};
|
||||
}
|
||||
{% endif %}
|
||||
{% if access_list.items.length > 0 %}
|
||||
|
Reference in New Issue
Block a user