Create aliases for long boring links with ease to use.
[GET] /
: Main landpage for users to interact.
[GET] /<alias>
: Redirect to link with alias provided
[GET] /describe/<alias>
: Get full details of specific alias
[POST] /add
: add new alias with the following provided details in the payload:-
alias: name of the alias
link: link to be redirected at
owner: owner of the alias <optional>
category: category of the alias <optional>
site: site of the alias <optional>
[POST] /replace
: add or overwrite existing alias with the following provided details in the payload:-
alias: name of the alias
link: link to be redirected at
owner: owner of the alias <optional>
category: category of the alias <optional>
site: site of the alias <optional>
[POST] /edit
: edit existing alias with the following provided details in the payload:-
old_alias: name of the old alias to be replaced
new_alias: name of the new alias
link: link to be redirected at
owner: owner of the alias <optional>
site: site of the alias <optional>
[DELETE] /delete/<alias>
: Deletes provided alias
HOST
: host of aliaser (default is'0.0.0.0'
)PORT
: port of aliaser (default is5000
)DEBUG
: run aliaser in debug mode or not (Expected values areTrue
orFalse
defaults toTrue
and ifTrue
, it runs under waitress)BACKUP_SCHEDULE
: how often backup thread should run inseconds
(default is3600
)REDIS_HOST
: host of redis (default islocalhost
)REDIS_PORT
:port of redis (default is6379
)GIT_MODE
: Whether thread is going to backup on github or gitlab (expected values areGITHUB
orGITLAB
defaults toGITLAB
)GITHUB_RAW_FILE_LOCATION
: locations.json file location in github to download it as a restore point (*mandatory field in case ofGIT_MODE
isGITHUB
)GITHUB_REPO
: Repo of aliaser (eg.example/aliaser
) (*mandatory field in case ofGIT_MODE
isGITHUB
)GITHUB_BRANCH
: Branch of the project to push at (eg.main
) (*mandatory field in case ofGIT_MODE
isGITHUB
)GITHUB_USER
: user to be used to push with (eg.aliaser
) (*mandatory field in case ofGIT_MODE
isGITHUB
)GITHUB_TOKEN
: personal token to be used to push with (*mandatory field in case ofGIT_MODE
isGITHUB
)GITLAB_HOST
: host of gitlab (defaults tohttp://localhost:80
)GITLAB_PROJECT_TOKEN
: project token of aliaser in gitlab (*mandatory field in case ofGIT_MODE
isGITLAB
)GITLAB_PROJECT_ID
: project id of aliaser in gitlab (eg.80
) (*mandatory field in case ofGIT_MODE
isGITLAB
)GITLAB_PROJECT_BRANCH
: Branch of the project to push at (eg.main
) (*mandatory field in case ofGIT_MODE
isGITLAB
)
Redis is used as caching
Flask for API
Backup to Github or Gitlab with filename locations.json