simple url shortener
|
||
---|---|---|
.forgejo/workflows | ||
Dockerfile | ||
go.mod | ||
go.sum | ||
index.html | ||
LICENSE.md | ||
main.go | ||
README.md |
shorten
simple url shortener
Setup
Environmental variables:
SHORTEN_HOST
- hostnameSHORTEN_BIND
- bind address (default:127.0.0.1:4488
)SHORTEN_MAIL
- optional email for support/abuse reportsPOSTGRES_URI
- lib/pq connection string (see here)
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.