An url shortener backend server built with Golang and Fiber v3 framework. With Cloudflare and Cloudflare Turnstile supported.
All the environmental variables are optional.
CLOUDFLARE_TURNSTILE_SECRET_KEY
Secret Key of/for Cloudflare Turnstile captcha verification.CORS_DOMAINS
Domain/s to be included in CORS list. Example:https://example.com, https://www.exmaple.com, https://sub.example.com, https://*.example.com
.TLS_CERT
TLS/SSL Certificate.TLS_KEY
TLS/SSL Certificate Private/Secret Key.
Example:
CLOUDFLARE_TURNSTILE_SECRET_KEY=
CORS_DOMAINS=
TLS_CERT=
TLS_KEY=
/{hash}
To get the original URL.
/
To submit/save URL to the server and return a hash.
Requireurl
in query.
Andcaptcha_token
if Cloudflare Turnstile is enabled.