Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 2.03 KB

README.md

File metadata and controls

54 lines (40 loc) · 2.03 KB

addr

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.

addr

Features

  • 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!

Installing

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!

1. Build images

docker-compose build --no-cache

2. Create and run the containers

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.

Configuring

Once successfully installed and running, you can always change the configuration and then run this accordingly:

docker-compose restart

Configure service_ssh_server

  1. You can set your DOMAIN, etc. at ssh_server/config/.env

Configure service_nginx_proxy

  1. Set up your homepage by creating an index.html under nginx/www/DOMAIN/ directory. E.g. nginx/www/you.com/index.html.
  2. You can set ssl_certificate, and listen 443 in nginx/nginx.conf

License

MIT License