Initial commit: визитка mikhailkilin.ru

Rust/Axum HTTP-сервер, Dockerfile, Woodpecker CI pipeline,
Kubernetes-манифесты для деплоя на k3s.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Mikhail Kilin
2026-02-14 17:58:47 +03:00
commit 3be3f55be4
8 changed files with 832 additions and 0 deletions

19
src/main.rs Normal file
View File

@@ -0,0 +1,19 @@
use axum::{response::Html, routing::get, Router};
use std::net::SocketAddr;
#[tokio::main]
async fn main() {
// Создаем роутер, который на "/" отдает HTML
let app = Router::new().route("/", get(handler));
// Слушаем порт 3000
let addr = SocketAddr::from(([0, 0, 0, 0], 3000));
println!("listening on {}", addr);
let listener = tokio::net::TcpListener::bind(addr).await.unwrap();
axum::serve(listener, app).await.unwrap();
}
async fn handler() -> Html<&'static str> {
Html("<h1>Hello on mikhailkilin.ru! 🚀</h1>")
}