This is an alternative to ngrok.
It's like localhost.run, or srv.us.
This is not yet a complete project since it was created in 2022. But I'm publishing it now in case it's useful.
- No propietary client, just use the
ssh
command to create a reverse tunnel - It's possible to choose your own subdomain
- addr gives you a nearly permanent port!
addr consists of only two components: service_ssh_server
which handles SSH connections,
and service_nginx_proxy
which acts as an HTTP router. It routes dynamically using a tiny njs script in nginx/njs/router.js.
No worries, you can get up and running right away and touch up the configuration later!
docker-compose build --no-cache
Note: addr will run on ports 22 and 80 (and 443). If you already have an sshd
running, ensure you have moved it to another port number.
docker-compose up
If all goes well, you can run in the background with -d
:
docker-compose up -d
Open up the homepage at http://DOMAIN
, e.g. http://localhost. You should see how to use the service.
Once successfully installed and running, you can always change the configuration and then run this accordingly:
docker-compose restart
- You can set your
DOMAIN
, etc. at ssh_server/config/.env
- Set up your homepage by creating an
index.html
under nginx/www/DOMAIN
/ directory. E.g. nginx/www/you.com/index.html. - You can set
ssl_certificate
, andlisten
443 in nginx/nginx.conf
MIT License