Git Product home page Git Product logo

rabijump's Introduction

🐰RabiJump

简体中文 | API Doc

RabiJump is an open source redirection service aimed for efficiency and simplicity.

🎆 Features:

  • Built-in filesystem database.
  • Built-in web admin panel.
  • Seperate redirects for mobile phone and desktop.
  • Enable/disable parameter support (url?foo=bar).
  • Change redirection method (301, 302, 307, 308).
  • Different ports for redirect and admin.
  • Small binary size and RAM usage.
  • Visit count and log rotation.
  • API support, create your script!

Deploy

Docker is the easiest way to deploy RabiJump. Or you can clone the repository and simply run cargo run --release in server directory.

docker run -d -p 8080:8080 -p 8081:8081 -v db_path:/app/database -v log_path:/app/logs memorysafety/rabijump:0.1.0

This command will start RabiJump in Docker container with db_path and log_path mounted to the container. You can use docker logs to check the generated admin token if you didn't set it in the environment variable.

Port

  • 8080: Redirect port.
  • 8081: Admin port with web panel.

Environment variables

  • DATABASE_PATH: Path to the database. Default: database.
  • LOG_PATH: Path to the logs. Default to logs.
  • FALLBACK_TARGET: Target to redirect to if no match is found, also for index. Default is return 404.
  • ALLOW_ORIGIN: CORS Access-Control-Allow-Origin header.
  • TOKEN: Admin token, if not set, a random token will be generated and displayed in the stdout.

Performance

RabiJump is designed to be simple and fast. A new instance of RabiJump takes about 30MB RAM. A RabiJump with 10k redirects takes about 70MB RAM and 30MB disk space. Its QPS could reach 30k+.

License and Credits

RabiJump is licensed under the Apache-2.0 License. Thanks so much for the following open source projects:

rabijump's People

Contributors

chocolzs avatar kernelerr avatar

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.