mmatczuk / go-http-tunnel

Fast and secure tunnels over HTTP/2
GNU Affero General Public License v3.0
3.24k stars 307 forks source link

Just needing to understand something #89

Open bmcgonag opened 5 years ago

bmcgonag commented 5 years ago

for host entry, if i use mytestroute.routetome.org does the whole thing have to be setup with DNS to point to my server? Or should I just be able to point routetome.org to my server, and then when I use the address https://mytestroute.routetome.org it will know where to send that particular subdomain request based on the host entry in my client .yml file?

This looks like a cool project, but having issues getting it to route right now. I have routetome.org setup with DNS pointing to my DO server, but not the sub-domain.

Was hoping this was a bit more like ngrok as far as subdomains on the fly. If any of you folks know how to get that setup using this project it would be totally great. More than happy to donate to an open source project like this as well.

bmcgonag commented 5 years ago

I'm a knot-head and I apologize. I had to setup the * DNS A record to point to my server IP, and now it works just as I wanted. Thank you. Getting ready to donate. This is great!

fusion44 commented 5 years ago

@bmcgonag Have you got this working for a subdomain? In my example I would like to use tunnel.mydomain.com for the server, so my subdomains would look like webui.tunnel.mydomain.com?

bmcgonag commented 5 years ago

@fusion44 I did. I think you would just register mydomain.com, then setup your A record for either .tunnel.mydomain.com or .mydomain.com . If the latter, then in the client yml file you will set the sub domain info as myplace.tunnel.mydomain.com and it will be registered with the server. Then you can change the subdomain to anything you want for each client.

fusion44 commented 5 years ago

@bmcgonag Awesome, thanks!