GithubHelp home page GithubHelp logo

bonaysoft / rslocal Goto Github PK

View Code? Open in Web Editor NEW
236.0 4.0 15.0 119 KB

An easy-to-use tunnel to localhost built in Rust. An alternative to ngrok and frp.

Home Page: https://localtest.rs/

License: Apache License 2.0

Rust 97.24% Dockerfile 0.75% Shell 2.01%
frp ngrok nps rust network proxy tunnel grpc

rslocal's Introduction

rslocal

English | δΈ­ζ–‡

What is rslocal?

Rslocal is like ngrok built in Rust, it builds a tunnel to localhost.

Project status

  • support http
  • support tcp
  • support udp
  • support token login
  • support oidc login
  • disconnection reconnect
  • access log for client

Rslocal

A client program that runs locally to receive server requests and forward them to local services

Installation

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

Usage

rslocal config
rslocal http 8000
rslocal http 8000 --subdomain test
rslocal tcp 8000

Rslocald

Server program that receives external requests and forwards them to rslocal

Cloud-service

Visit localtest.rs

Self-hosted

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

Configfile

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 = ""

Contributing

  1. write code for the todo and fixme tag
  2. implement the unchecked item of the Project status

Special thanks

License

rslocal is under the Apache-2.0 license. See the LICENSE file for details.

Stargazers over time

rslocal's People

Contributors

saltbo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

rslocal's Issues

brew install fail

Error: Invalid formula: /Users/xer/homebrew/Library/Taps/saltbo/homebrew-bin/Formula/uptoc.rb
uptoc: Calling bottle :unneeded is disabled! There is no replacement.
Please report this issue to the saltbo/bin tap (not Homebrew/brew or Homebrew/core):
/Users/xer/homebrew/Library/Taps/saltbo/homebrew-bin/Formula/uptoc.rb:6

Error: Cannot tap saltbo/bin: invalid syntax in tap!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.