location ^~ /
{
proxy_pass https://www.binance.com/bapi/asset/v1/public/asset-service/product/currency;
proxy_set_header Host www.binance.com;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header REMOTE-HOST $remote_addr;
add_header X-Cache $upstream_cache_status;
proxy_ssl_server_name on;
}
关键的一行代码:
proxy_ssl_server_name on;