This commit is contained in:
Alex Emmet 2026-04-22 19:56:08 +02:00
commit b790c66877
2 changed files with 4 additions and 4 deletions

View file

@ -1,10 +1,10 @@
use axum::{
Router,
body::Body,
extract::{Path, State},
http::{header, StatusCode, Uri},
http::{StatusCode, Uri, header},
response::{IntoResponse, Response},
routing::get,
Router,
};
use axum_server::tls_rustls::RustlsConfig;
use std::net::SocketAddr;
@ -85,7 +85,7 @@ async fn main() {
// HTTP on port 80
let http_app = app.clone();
let http_handle = tokio::spawn(async move {
let addr = SocketAddr::from(([0, 0, 0, 0], 80));
let addr = SocketAddr::from(([0, 0, 0, 0], 1200));
info!("HTTP server listening on {}", addr);
let listener = tokio::net::TcpListener::bind(addr).await.unwrap();
axum::serve(listener, http_app).await.unwrap();