Skip to content

singulared/shortland

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shortland

URL shortner service

Installation

Rust installation

You may follow official instruction

Dependencies

By default shortland use inmemory backend.
Optionally you may use Redis >= 7.0. For enablle redis add this to config file:

backend:
  connection: redis://127.0.0.1:6379/0
  type: Redis

Run

cargo run or cargo run --release if you want use release version of binary

Configuration

Config files

You may place configuration files in next places on your system:

/etc/shortland.yaml
/usr/local/etc/shortland.yaml

Supported file formats are:

  • YAML
  • TOML

Configuration with ENV variables

You may overload any configuration values with ENV like this:

SL__HTTP__HOST=127.0.0.2 cargo run
SL__BACKEND__TYPE=Redis SL__BACKEND__CONNECTION=redis://localhost:6379/3 cargo run

About

URL shortner service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages