We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9faac2 commit 6aac006Copy full SHA for 6aac006
rootfs/etc/nginx/template/nginx.tmpl
@@ -957,7 +957,7 @@ stream {
957
set $proxy_upstream_name "-";
958
959
{{ if not ( empty $server.CertificateAuth.MatchCN ) }}
960
- {{ if gt (len $server.CertificateAuth.MatchCN) 0 }}
+ {{ if gt (len $server.CertificateAuth.MatchCN) 0 }}
961
if ( $ssl_client_s_dn !~ {{ $server.CertificateAuth.MatchCN }} ) {
962
return 403 "client certificate unauthorized";
963
}
@@ -1288,7 +1288,7 @@ stream {
1288
{{- end }}
1289
return
1290
end
1291
- if res.status == ngx.HTTP_FORBIDDEN then
+ if res.status == ngx.HTTP_UNAUTHORIZED or res.status == ngx.HTTP_FORBIDDEN then
1292
ngx.exit(res.status)
1293
1294
ngx.exit(ngx.HTTP_INTERNAL_SERVER_ERROR)
0 commit comments