Skip to content

artifishvr/longener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sketchy link shortener

tiny, stateless, sketchy link "shortener" in rust, hosted on app.discord.qpon for peak sketchiness, yay!

links are stored as a JWT token inside the "shortened" url, with a secret to prevent open redirects. also fakes a discord embed so it looks even worse.

a discord embed of an example link, showing an embed with the title "Discord - Group Chat That's All Fun & Games". the embed continues with boilerplate from the discord website.

see, try this page! app.discord.qpon/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1cmwiOiJodHRwczovL2dpdGh1Yi5jb20vYXJ0aWZpc2h2ci9zaG9ydGVuX2lzX2Ffc3Ryb25nX3dvcmQiLCJleHAiOjE4NDQ2NzQ0MDczNzA5NTUxNjE1fQ.UfFleq1JiLF65IrBmCELs5r7ye16AszBEPpFGfiy99Y

keep in mind i'm so new to rust and this code might turn your cat green and start shredding cheese or whatever

run it yourself

use it on any domain you'd like, just set the enviroment variables as shown in .env.example

cargo run --release # listens on port 3000

also has a Dockerfile for easy deployment.

add it to sharex with shortener.sxcu, even! (remember to change ADMIN_KEY and example.com to your own values)

Releases

No releases published

Packages

 
 
 

Contributors