simple url shortener
Find a file
ptrcnull a4b8c8c33f
Some checks failed
/ test (push) Has been cancelled
feat: add manually managed domain blacklist
2024-09-06 11:56:58 +02:00
.forgejo/workflows feat: add forgejo workflow 2024-02-18 23:05:28 +01:00
Dockerfile feat: Initial commit 2022-01-22 21:30:58 +01:00
go.mod feat: Initial commit 2022-01-22 21:30:58 +01:00
go.sum feat: Initial commit 2022-01-22 21:30:58 +01:00
index.html feat: add SHORTEN_MAIL for support email 2023-12-21 22:39:26 +01:00
LICENSE.md docs: Add LICENSE.md 2022-04-07 15:56:44 +02:00
main.go feat: add manually managed domain blacklist 2024-09-06 11:56:58 +02:00
README.md feat: add manually managed domain blacklist 2024-09-06 11:56:58 +02:00

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)

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.