Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ptrcnull/shorten
simple url shortener
https://github.com/ptrcnull/shorten
Last synced: 25 days ago
JSON representation
simple url shortener
- Host: GitHub
- URL: https://github.com/ptrcnull/shorten
- Owner: ptrcnull
- License: bsd-2-clause
- Created: 2022-01-22T20:31:22.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-09-17T21:30:10.000Z (about 2 months ago)
- Last Synced: 2024-09-18T02:05:31.108Z (about 2 months ago)
- Language: Go
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# shorten
> simple url shortener
### Setup
Environmental variables:
- `SHORTEN_HOST` - hostname
- `SHORTEN_BIND` - bind address (default: `127.0.0.1:4488`)
- `SHORTEN_MAIL` - optional email for support/abuse reports
- `POSTGRES_URI` - lib/pq connection string (see [here](https://pkg.go.dev/github.com/lib/pq#section-documentation))### Maintenance
shorten supports a domain blacklist to ban certain domains (e.g. spam, malware, etc.);
you can use it by connecting to the database and inserting rows into the `blacklist` table.