revert mTLS location excluding acme-challenge since each location will match ultimately resulting in 404 for all request paths
This commit is contained in:
parent
6680b5059b
commit
8f59f6fcc5
1 changed files with 2 additions and 4 deletions
|
@ -985,10 +985,8 @@ stream {
|
|||
|
||||
{{ if not ( empty $server.CertificateAuth.MatchCN ) }}
|
||||
{{ if gt (len $server.CertificateAuth.MatchCN) 0 }}
|
||||
location ~ ^/(?!(\.well-known/acme-challenge)) {
|
||||
if ( $ssl_client_s_dn !~ {{ $server.CertificateAuth.MatchCN }} ) {
|
||||
return 403 "client certificate unauthorized";
|
||||
}
|
||||
if ( $ssl_client_s_dn !~ {{ $server.CertificateAuth.MatchCN }} ) {
|
||||
return 403 "client certificate unauthorized";
|
||||
}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue