agrinman / tunnelto

Expose your local web server to the internet with a public URL.
https://tunnelto.dev
MIT License
2.11k stars 114 forks source link

Support nested subdomains #77

Open joepio opened 1 year ago

joepio commented 1 year ago

Thanks for this awesome tool :)

I'd like to be able to test subdomains: subsub.mysub.tunnelto.dev, but that doesn't work right now.

I'd expect it to route all traffic to the same machine that mysub is hosted on. That application should then deal with any type of nested subdomains.

tunnelto --port 9883 --subdomain mysub --key mykey

So my app would receive requests on:

subsub.localhost:9883

Note that you need a wildcard certificate for TLS, but I assume you already have that!