initial echo project website (rust + axum + askama)
This commit is contained in:
commit
899040a319
11 changed files with 1480 additions and 0 deletions
22
README.md
Normal file
22
README.md
Normal 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).
|
||||
Loading…
Add table
Add a link
Reference in a new issue