Skip to content

Commit

Permalink
t
Browse files Browse the repository at this point in the history
  • Loading branch information
StarlightIbuki committed Oct 15, 2024
1 parent 3ffcd7e commit bc6e92f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions t/001-tls.t
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ ok
lua_package_path "../lua-resty-core/lib/?.lua;lualib/?.lua;;";
lua_ssl_protocols SSLV3 TLSv1 TLSv1.1 TLSv1.2;
server {
listen $TEST_NGINX_RAND_PORT_1 ssl;
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock ssl;
server_name example.com;
ssl_certificate ../../cert/example.com.crt;
ssl_certificate_key ../../cert/example.com.key;
Expand All @@ -525,14 +525,14 @@ ok
}
--- config
server_tokens off;
location / {
proxy_pass https://localhost:$TEST_NGINX_RAND_PORT_1/$upstream_uri;
location /t {
proxy_pass https://unix:$TEST_NGINX_HTML_DIR/nginx.sock;
proxy_http_version 1.1;
proxy_set_header Connection "";
}
--- request
GET /
GET /t
--- response_body
ok
--- no_error_log
Expand Down
4 changes: 2 additions & 2 deletions t/stream/003-tls.t
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ ok
lua_package_path "../lua-resty-core/lib/?.lua;lualib/?.lua;;";

server {
listen $TEST_NGINX_RAND_PORT_1 ssl;
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock ssl;
ssl_certificate ../../cert/example.com.crt;
ssl_certificate_key ../../cert/example.com.key;
ssl_session_cache off;
Expand All @@ -466,7 +466,7 @@ ok
}

--- stream_server_config
proxy_pass https://localhost:$TEST_NGINX_RAND_PORT_1/$upstream_uri;
proxy_pass https://unix:$TEST_NGINX_HTML_DIR/nginx.sock/$upstream_uri;
proxy_http_version 1.1;
proxy_set_header Connection "";
--- response_body
Expand Down

0 comments on commit bc6e92f

Please sign in to comment.