From bc6e92fd89319e5d8ef676270cd80d50e1769021 Mon Sep 17 00:00:00 2001 From: xumin Date: Tue, 15 Oct 2024 17:22:41 +0800 Subject: [PATCH] t --- t/001-tls.t | 8 ++++---- t/stream/003-tls.t | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/t/001-tls.t b/t/001-tls.t index 76344caf..520c617c 100644 --- a/t/001-tls.t +++ b/t/001-tls.t @@ -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; @@ -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 diff --git a/t/stream/003-tls.t b/t/stream/003-tls.t index f2f54029..24479304 100644 --- a/t/stream/003-tls.t +++ b/t/stream/003-tls.t @@ -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; @@ -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