|neil 730be29377 Updating instructions and contributing guide||il y a 2 jours|
|assets||il y a 3 semaines|
|db||il y a 2 jours|
|migrations||il y a 3 semaines|
|src||il y a 2 jours|
|templates||il y a 3 semaines|
|.gitignore||il y a 2 jours|
|Cargo.toml||il y a 2 jours|
|LICENSE||il y a 3 semaines|
|README.md||il y a 2 jours|
|lang.json||il y a 2 jours|
Link shortener in Rust.
Developed to be as minimalist and lightweight as possible.
Powered by the Rocket framework using (server-side) Handlebars templates.
Official instance: https://s.42l.fr/
git clone https://git.42l.fr/42l/rs-short.git
Edit what you need. You might want to change the following elements:
main.rs: replace with your instance hostname
main.rs: replace with the hostname of the organization hosting the project
assets/hoster-logo.png: replace with the logo of your organization
assets/logo.svg: the software logo
assets/background.jpg: the default background
Create a file named
Rocket.toml at the project root, containing the following:
<ADDRESS>by the address to listen on
<SECRET KEY>by the result of the command
openssl rand -base64 32
banned_url_to.list file and enter keywords that causes IPs submitting links to get a
403 Forbidden if their links contain those keywords. Example:
cargo run --release
The initial version of the software has been developed in one week ; there’s still a lot to do.
Here are many ways to contribute:
templates.rsand add your language in the ValidLanguages structure.
main.rsto something more readable