summaryrefslogtreecommitdiff
path: root/nginx
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2023-03-06 10:56:54 -0500
committerDaniel Micay <danielmicay@gmail.com>2023-03-06 10:58:56 -0500
commit31e0ab3807bbaaf234a474e39c5f0dc494fbe759 (patch)
tree3635ceeb86bf7b2e55cb6ace8194a080601bf2b4 /nginx
parentfc3890cc91d332c9a53537c3d578524671dfa7d1 (diff)
work around unreliable ssl_reject_handshake
Diffstat (limited to 'nginx')
-rw-r--r--nginx/nginx.conf6
1 files changed, 6 insertions, 0 deletions
diff --git a/nginx/nginx.conf b/nginx/nginx.conf
index 85b3a31c..65e874f6 100644
--- a/nginx/nginx.conf
+++ b/nginx/nginx.conf
@@ -148,6 +148,12 @@ http {
listen 443 default_server ssl backlog=4096;
listen [::]:443 default_server ssl backlog=4096;
ssl_reject_handshake on;
+
+ # work around unreliable ssl_reject_handshake
+ keepalive_timeout 0;
+ location / {
+ return 404;
+ }
}
server {