Skip to content

Commit

Permalink
fix ws and regex (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
qw1mb0 authored and Dmitry Stolyarov committed Aug 20, 2019
1 parent 383803c commit 36fdc17
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions run-proxy
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 36fdc17

Please sign in to comment.