https://github.com/idigitalflame/linker
Efficient HTTP Redirection Written in Go!
https://github.com/idigitalflame/linker
go golang golang-application golang-library golang-package http
Last synced: 8 months ago
JSON representation
Efficient HTTP Redirection Written in Go!
- Host: GitHub
- URL: https://github.com/idigitalflame/linker
- Owner: iDigitalFlame
- License: agpl-3.0
- Created: 2020-01-27T20:30:19.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-08-19T02:44:58.000Z (over 1 year ago)
- Last Synced: 2024-08-19T03:47:42.353Z (over 1 year ago)
- Topics: go, golang, golang-application, golang-library, golang-package, http
- Language: Go
- Homepage: https://pkg.go.dev/github.com/iDigitalFlame/linker
- Size: 95.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Linker: HTTP URL Shortener
Linker is a Golang based URL shortening service. This self-hosted binary provides fast and efficient HTTP redirection.
Linker is backed by a MySQL database to store name and URL mappings.
## Config
Linker is configured using the following file in "/etc/linker.conf". This file path can be changed using the "-c" flag or by setting the "LINKER_CONFIG" environment variable.
Default Config
```[json]
{
"key": "",
"cert": "",
"listen": "0.0.0.0:80",
"timeout": 5,
"default": "https://duckduckgo.com",
"db": {
"name": "linker",
"server": "tcp(localhost:3306)",
"username": "linker_user",
"password": "password"
}
}
```
## Command Line Options
```[text]
Linker - HTTP Web URL Shortener v3
iDigitalFlame & PurpleSec 2020 - 2023 (idigitalflame.com)
Usage:
-h Print this help menu.
-l List the URL mapping and exit.
-d Dump the default configuration and exit.
-a Add the specified to mapping.
-r Delete the specified to URL mapping.
-c Configuration file path. The environment
variable "LINKER_CONFIG" can be used to
specify the file path instead.
```
[](https://ko-fi.com/Z8Z4121TDS)