From 36fdc17a10808b061c610a61c98b1a2aa19757f2 Mon Sep 17 00:00:00 2001 From: Andrey Sidorov Date: Tue, 20 Aug 2019 11:08:00 +0300 Subject: [PATCH] fix ws and regex (#6) --- run-proxy | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/run-proxy b/run-proxy index de70f32..7d77838 100755 --- a/run-proxy +++ b/run-proxy @@ -190,10 +190,15 @@ http { ssl_verify_client on; location ${LOCATION} { - if (\$ssl_client_s_dn_cn != "${USER}") { + if (\$ssl_client_s_dn_cn !~ "${USER}") { return 403; } - + proxy_http_version 1.1; + proxy_set_header Upgrade \$http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_set_header Host \$host; + proxy_read_timeout 3600; + proxy_send_timeout 3600; proxy_pass ${PROXY_PASS}; ${PROXY_SSL_CONFIG} ${PROXY_SSL_VERIFY}