Rslocal is like ngrok built in Rust, it builds a tunnel to localhost.
A client program that runs locally to receive server requests and forward them to local services
MacOS
shell
brew install saltbo/bin/rslocal
OtherOS (Does not support Windows for the time being. You need to download it manually.)
shell
curl -sSf https://raw.githubusercontent.com/saltbo/rslocal/master/install.sh | sh
shell
rslocal config
rslocal http 8000
rslocal tcp 18000
Server program that receives external requests and forwards them to rslocal
Visit localtest.rs
```shell mkdir /etc/rslocal touch /etc/rslocal/rslocald.toml
docker run -it -p 8422:8422 -p 8423:8423 -v /etc/rslocal:/etc/rslocal saltbo/rslocald ```
The rslocald.toml
file is required for rslocald
.
```toml [core] debug = false bindaddr = "0.0.0.0:8422" authmethod = "token" # token, oidc allow_ports = "18000-19000"
[http] bindaddr = "0.0.0.0:8423" defaultdomain = "example.com"
[tokens] bob = "rslocaldabc11" alice = "rslocaldabc32"
```
rslocal is under the Apache-2.0 license. See the LICENSE file for details.