initial echo project website (rust + axum + askama)

This commit is contained in:
Jean Chevronnet 2026-08-30 18:21:49 +00:00
commit 899040a319
No known key found for this signature in database
GPG key ID: 439666D63A9477E4
11 changed files with 1480 additions and 0 deletions

22
README.md Normal file
View file

@ -0,0 +1,22 @@
# echo website
The [echoIRCd](https://git.devtronic.pro/echo/echoIRCd) project website — Rust + [Axum](https://github.com/tokio-rs/axum), with compile-time [Askama](https://github.com/rinja-rs/askama) templates. Templates and static assets are baked into the binary, so the deployed artifact is self-contained.
Serves <https://echoircd.org>.
## Run
```sh
cargo run # http://127.0.0.1:8099
ECHO_WEB_ADDR=127.0.0.1:9000 cargo run
```
## Layout
- `src/main.rs` — Axum router (`/`, `/features`, `/connect`, `/static/style.css`, `/favicon.svg`, `/health`).
- `templates/` — Askama templates (`base.html` + one per page).
- `static/` — CSS and favicon, embedded via `include_str!`.
## Deploy
Built as a release binary and run under `echo-website.service`, reverse-proxied by nginx (TLS terminates at nginx).