In this tutorial I’m going to show you how you can tunnel any kind of application, including web application to a subdomain. BONUS you will get automatic SSL You don’t need NGORK or other expensive proprietary systems to just tunnel an app.
We’ll be using exclusively open source applications.
VPS Setup
First you need to [buy a VPS ][https://www.linode.com/lp/refer/?r=a3ea2f19df221945611a86993fa4c74e6790099a]. I mainly use linode and if you use my link you can get a $100 credit for 60 days. However you can use ANY cloud provider you want. I sometimes host projects on a raspberry pi .
TODO Link to how to setup a VPS and get started with development, devops and just hosting your own things
Basic Setup on VPS
Security SETUP VPS
Do you need a VPS control panel ?
VPS Control Panels Explained
Get a Debian Linux Server
I’ve got a video talking about VPS Security you might want to check that Change SSH Port
Once you’ve got hold of your VPS sign via ssh.
Domain
You’ll also need a domain because we’ll be using subdomains for this. If you already have a domain you can use that. There are plenty of domain registrars out there. Namecheap offers
Install Caddy
Caddy is a lightweight, fast efficient web server written in golang. It features autoconfiguration. It has an easy configuration format.You can even configure it via a HTTP API.
sudo apt install caddy
vim /etc/caddy
P.S In case you find this complicated, I’ve built a system which allows you to do this much simpler. FlexiTunnel -> Sign Up to the newsletter
Why do I give a great business idea out in the open? This is what opensourc eis meant to be, if this was helpfull, please cosider donating !
Please leave comments on my own website, link in description as they are surely not shadowbanned as it’s happening on most social media platforms. PLus, I may see them and respond. Subscribe, Like and Share.