Skip to content

A fast velociraptor for url tracking and redirect written in Rust

Notifications You must be signed in to change notification settings

raphapy/velocireditracktor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

velocireditracktor

A fast velociraptor, written in Rust, for url tracking and redirect.

Requeriments

  • Postgres
  • Docker (Optional)
  • Rust and Cargo 1.43.*

Installation and config

  1. Run postgres instance with docker compose. (If you change connection parameters in docker-compose.yml file, you need to reflect the same changes in .env file). You can use a non-containered postgres instance for production.
docker-compose up -d

Configurations for db connection

PG.HOST=127.0.0.1
PG.PORT=5432
PG.DBNAME=velocireditracktor_db
  1. Execute db_ddl.sql script in the running postgres
  2. Run the application with:
cargo run
  1. Optionally, you can change host and port binding parameters in .env file.
SERVER.HOST=127.0.0.1
SERVER.PORT=8080
  1. Database connecion pool max size can be changed in .env file
PG.POOL.MAX_SIZE=30
  1. Data is stored in redirects table.
select * from redirects;

WIP

  1. Testing
  2. Store a more complete information about the request in jsob format.

About

A fast velociraptor for url tracking and redirect written in Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages