https://github.com/singulared/shortland
URL shortner service
https://github.com/singulared/shortland
Last synced: 6 days ago
JSON representation
URL shortner service
- Host: GitHub
- URL: https://github.com/singulared/shortland
- Owner: singulared
- License: mit
- Created: 2022-09-13T13:55:33.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2026-02-28T23:03:14.000Z (4 months ago)
- Last Synced: 2026-03-01T01:59:25.312Z (4 months ago)
- Language: Rust
- Size: 288 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# shortland
URL shortner service
## Installation
### Rust installation
You may follow [official instruction](https://www.rust-lang.org/tools/install)
## Dependencies
By default shortland use inmemory backend.
Optionally you may use Redis >= 7.0. For enablle redis add this to config file:
```yaml
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:
```bash
SL__HTTP__HOST=127.0.0.2 cargo run
```
```bash
SL__BACKEND__TYPE=Redis SL__BACKEND__CONNECTION=redis://localhost:6379/3 cargo run
```