|
4 weeks ago | |
---|---|---|
assets | 1 month ago | |
db | 2 years ago | |
migrations | 1 year ago | |
screenshots | 1 year ago | |
src | 4 weeks ago | |
templates | 4 weeks ago | |
.gitignore | 1 year ago | |
Cargo.toml | 3 months ago | |
LICENSE | 2 years ago | |
README.md | 3 months ago | |
config.toml.sample | 3 months ago | |
lang.json | 3 months ago | |
url_from_blacklist.txt | 1 year ago | |
url_to_blacklist.txt | 3 months ago | |
url_to_softblacklist.txt | 3 months ago |
Warning: A few steps are necessary to migrate the database from rs-short 1.x.x. Please check the release notes for details.
Link shortener in Rust.
Developed to be as minimalist and lightweight as possible.
Powered by the Actix framework using (server-side) Askama templates.
unsafe
blockFeatures:
Official instance: https://s.42l.fr/
Main page:
Admin page for users when they create a link:
Page displayed when a link is marked as phishing by the server administrator:
First, you must install Cargo and the latest stable version of Rust by following the instructions on this website. Alternatively, you can use the liuchong/rustup Docker image.
git clone https://git.42l.fr/42l/rs-short.git
Edit what you need. You might want to change the following files:
assets/hoster-logo.svg
: replace with the logo of your organizationassets/logo.svg
: the software logoassets/themes/light/background.jpg
: the default background for the light themeCopy config.toml.sample
to config.toml
and edit its values to suit your needs:
cookie_key
and phishing_password
.Edit blacklists at your convenience.
url_from_blacklist.list
: Any client that submits a link name fully matching one of the elements in this list will get a 403 Forbidden HTTP status code.url_to_softblacklist.list
: Any client that submits an URL containing one of the elements in this list will get denied with a friendly warning.url_to_blacklist.list
: Any client that submits an URL containing one of the elements in this list will get a 403 Forbidden HTTP status code.You can configure a fail2ban
instance and watch your favourite reverse-proxy logs to see which IPs are getting a 403 and ban accordingly for the duration of your choice.
cargo run --release
Here are many ways to contribute:
lang.json
file.init.rs
and add your language in the ValidLanguages structure.This software is mainly developed and maintained by Neil for the Association 42l.
If you like the work done on this project, please consider to donate or join the association. Thank you!