An open API service indexing awesome lists of open source software.

https://github.com/larssonoliver/lnkshrt

Link shortener
https://github.com/larssonoliver/lnkshrt

go golang gui linkshortener nextjs

Last synced: about 2 months ago
JSON representation

Link shortener

Awesome Lists containing this project

README

        

# lnkshrt

A link shortener written in go.

[![Build](https://github.com/LarssonOliver/lnkshrt/actions/workflows/build.yaml/badge.svg)](https://github.com/LarssonOliver/lnkshrt/actions/workflows/build.yaml)

## Deployed
A deployed version can be accessed over at https://lnkshrt.larssonoliver.com.

## Container Image
The latest version is available as `larssonoliver/lnkshrt:latest` from DockerHub.

## Environment Variables
| Variable | Description | Default |
| - | - | - |
| `LNKSHRT_PORT` | Port to listen to for requests | `8080` |
| `LNKSHRT_IDSIZE` | Size of shortened URL ids in characters | `6` |
| `LNKSHRT_DBFILE` | Database file | `data/lnkshrt.json` |
| `LNKSHRT_PERSISTENT` | Store data in, and load data from, `LNKSHRT_DBFILE` | `undefined (false)` |
| `LNKSHRT_ORIGINS` | Comma separated list of CORS origins to allow | `undefined (none)` |
| `LNKSHRT_INDEX_REDIRECT` | A URL to redirect to from the `GET /` route | `undefined (none)` |

# lnkshrt gui

## Container Image
The latest version is available as `larssonoliver/lnkshrt-gui:latest` from DockerHub.

## Environment Variables
| Variable | Description | Default |
| - | - | - |
| `API_URL` | **REQUIRED:** The base url of the api to use (excluding trailing /) | `undefined (none)` |