How to get local SSL and use your public domain for local internal subdomains? - eviltoast

For instance how can I use my *.domain.com SSL certs and NPM to route containers to a subdomain without exposing them? The main domain is exposed.