[NPM] -LAN- [frpc] -WAN- [frps] -LO- [Nginx]
frp
create TCP tunnel from npm
's 443 to VPS, nginx
reverse proxy the tunnel
502 Bad gateway: SSL: error:14094458:SSL routines:ssl3_read_bytes:tlsv1 unrecognized name:SSL alert number 112
SNI related, add the following to nginx
reverse proxy config:
proxy_ssl_name $host;
proxy_ssl_server_name on;