I've got a two sites running over https in local network and uses letsencrypt certificates - lets call them git.foo.com and api.foo.com.
I want to see these sites from internet. I've got an OpenWRT router which is running on white ip address (and dns records for git.foo.com and api.foo.com aims to it's IP).
I've just redirect (using iptables) traffic from 80 and 443 dport to an another local machine which must be a proxy. The question is how to pass ssl traffic to specific site (which is already uses ssl) server by site hostname?