by nelsonenzo · 4y ago · 0 comments
For this particular feature I like my own home rolled solution where I automated the process of spinning up a tiny ec2 server with an nginx proxy to a reverse ssh tunnel that goes back to my local machine. It gets a letsencrypt cert and modifies the route53 dns. All managed with a cli command and config file.
The other benefit is that it is completely unthrottled, which is particularly useful if your debugging some stupidly large react/vue website.
Im working on a feature that will enable basic-auth in front of it also, so at least a password would be required to send traffic to your local machine, if you wanted. Good for the "share your work" sort of scenarios.
tl;dr if you want any-subdomain.your-domain.com -> localhost:port, and you use AWS, try https://github.com/nelsonenzo/tolocal
Unfortunately none of those solutions are self hosted AND automated. They all seem to either use their own ifra, which will be slow & throttled, or require setting up a server and manually editing DNS.
I may try to get my own project added to that list though, so thanks for sharing!
inletsctl - automates a VM with the inlets tunnel server preinstalled, including with HTTPS termination with Let's Encrypt, or pure TCP pass-through
inlets-operator - the same for Kubernetes Load Balancer services
Feel free to take a look at https://inlets.dev/
We talk a lot about the community adoption here in the first half -https://inlets.dev/blog/2022/11/16/service-provider-uplinks....
(I'm the original founder of inlets)
mine is free and as easy as 1,2,3:
npm i -g tolocal
tolocal config -> answer the 3-4 questions about domain, vpc, etc.
tolocal apply. -> tunnel will come up to my own custom domain.