Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

robertgzr/redirsrv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

redirsrv

A simple redirection server built on rocket.rs

Usage

Write a linkfile.json it should look something like this:

{
    [
        { "short": "gh", "to": "https://github.com/robertgzr" }
    ]
}

Deploy using Docker:

$ make docker
$ docker run -d --name redirsrv -v "$(pwd)/linkfile.json:/etc/redirsrv/linkfile.json" -p 8080:80 robertgzr/redirsrv

Find the API token in the log and you can get started...

$ http GET :8080/adm Authorization:Bearer:<api_token>

About

a simple redirection server

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published