BAL Backend written in rust
- Rust 100%
|
|
||
|---|---|---|
| .forgejo/workflows | ||
| alexandria | ||
| alexandria-auth | ||
| alexandria-entities | ||
| alexandria-utils | ||
| scripts | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| CHANGELOG.md | ||
| cliff.toml | ||
| LICENSE.md | ||
| README.md | ||
Alexandria
Alexandria is the backend for Seshat, written in Rust using axum and sea-orm.
Usage
Build:
cargo build --profile <dev/release/prod>
Run:
JWT_SECRET="this_is_a_32_bytes_secret_____" /path/to/alexandria -d /path/to/alexandria.db -p <port>
This serves both the api at the root and its documentation at /docs
Create/modify/delete accounts:
/path/to/alexandria --user -d /path/to/alexandria.db
Selfhosting:
Alexandria does not provide https by itself, you should run it behind a proxy that serves https and redirect the traffic. Example caddy config:
bal.ueauvergne.fr {
reverse_proxy :3000
}
In Seshat, users can go to settings and modify the backend's URL to whichever backend they want.