map $ssl_preread_server_name $name {
xxxx.com tcpstream;
default https_default_backend;
}
upstream tcpstream{
server 127.0.0.1:8082;
}
upstream https_default_backend {
server 127.0.0.1:8082;
}
server {
listen 8080;
proxy_connect_timeout 1000s;
proxy_timeout 1000s;
# 使用域名,或者使用ip:proxy_pass tcpstream
proxy_pass $name;
ssl_preread on;
}
nginx tcp
于 2023-04-03 14:08:13 首次发布