In case of TLS errors do not allow traffic (#2146)
This commit is contained in:
parent
216fe01a07
commit
3c67976969
5 changed files with 23 additions and 6 deletions
|
|
@ -622,6 +622,11 @@ stream {
|
|||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ if not (empty $server.AuthTLSError) }}
|
||||
# {{ $server.AuthTLSError }}
|
||||
return 403;
|
||||
{{ else }}
|
||||
|
||||
{{ if not (empty $server.CertificateAuth.CAFileName) }}
|
||||
# PEM sha: {{ $server.CertificateAuth.PemSHA }}
|
||||
ssl_client_certificate {{ $server.CertificateAuth.CAFileName }};
|
||||
|
|
@ -898,7 +903,7 @@ stream {
|
|||
return 503;
|
||||
{{ end }}
|
||||
}
|
||||
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ if eq $server.Hostname "_" }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue