Crates.io | rslocal |
lib.rs | rslocal |
version | 0.1.0 |
source | src |
created_at | 2022-05-09 16:46:50.712601 |
updated_at | 2022-05-11 14:33:12.404398 |
description | A tunnel to localhost built in Rust |
homepage | |
repository | https://github.com/saltbo/rslocal |
max_upload_size | |
id | 583416 |
size | 119,313 |
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
brew install saltbo/bin/rslocal
OtherOS (Does not support Windows for the time being. You need to download it manually.)
curl -sSf https://raw.githubusercontent.com/saltbo/rslocal/master/install.sh | sh
rslocal config
rslocal http 8000
rslocal tcp 18000
Server program that receives external requests and forwards them to rslocal
Visit localtest.rs
mkdir /etc/rslocal
touch /etc/rslocal/rslocald.toml
#edit your config like example configfile
docker run -it -p 8422:8422 -p 8423:8423 -v /etc/rslocal:/etc/rslocal saltbo/rslocald
The rslocald.toml
file is required for rslocald
.
[core]
debug = false
bind_addr = "0.0.0.0:8422"
auth_method = "token" # token, oidc
allow_ports = "18000-19000"
[http]
bind_addr = "0.0.0.0:8423"
default_domain = "example.com"
# default_static = "/etc/rslocal/webroot" # support later
[tokens]
bob = "rslocald_abc11"
alice = "rslocald_abc32"
#[oidc]
#issuer = ""
#audience = ""
rslocal is under the Apache-2.0 license. See the LICENSE file for details.