Source of the web page secrets.cafe which is a platform for people to share their stories anonymously.
Currently, this is not a finished product, it lacks many features and is filled with bugs. I am not a frontend developer, so the website lacks proper support for mobile devices and the JS scripts might have a lot of issues.
If you want to run secrets.cafe locally I would recommend building it in a release mode without any features.
cargo run --release
Running in the debug mode might cause a crash when doing some database operations. It can be fixed by increasing the stack size with tokio runtime builder, but I did not implement it yet.
tls
- This is an internal feature used as a "dependency" of other features for serving data over HTTPS.cloudflare
- Implementation of the TLS to work with Cloudflare certificates.rate-limits
- Enables rate limits on some API calls.
This is a list of things to do before 1.0 release
- Test HTML sanitizer.
- Improve security.
- Rework frontend.
- Rework resource loading. (?)
- Add rate limits.
- Add proper API documentation.
- Add post page browser.
Check out the API.md file for details.
The backend accepts input commands that can be executed at runtime:
-
debug
- Responds with Ok status -
reload frontend
- Reloads all resources from "frontend" directory. -
mod add <name> <pass> <tier>
- Adds a new moderator account. -
mod authorise <input> <tier>
- Changes mod's permissions tier.
Tier numbers can be found at src/database/types/tier.rs
secrets.cafe © 2024 by FssAy is licensed under CC BY-NC 4.0