chore: backup before migration to new repo

This commit is contained in:
Warren
2026-04-23 16:46:02 +08:00
parent 13dd3b30f3
commit 59809dae1f
40 changed files with 5566 additions and 1783 deletions

View File

@@ -30,14 +30,20 @@ pub async fn api_key_validation(
tracing::info!("[MIDDLEWARE] Path: {:?}", request.uri().path());
let headers = request.headers();
tracing::info!(
"[MIDDLEWARE] Headers: {:?}",
headers.keys().collect::<Vec<_>>()
);
tracing::info!("[MIDDLEWARE] All headers: {:?}", headers);
let api_key = match extract_api_key(headers) {
Ok(key) => {
tracing::info!("[MIDDLEWARE] API key extracted, length: {}", key.len());
if key.len() > 8 {
tracing::info!(
"[MIDDLEWARE] Key value: {}...{}",
&key[..4],
&key[key.len() - 4..]
);
} else {
tracing::info!("[MIDDLEWARE] Key value: ****");
}
key
}
Err(status) => {
@@ -59,7 +65,10 @@ pub async fn api_key_validation(
r
}
Ok(None) => {
tracing::warn!("[MIDDLEWARE] API key not found in database");
tracing::warn!(
"[MIDDLEWARE] API key NOT FOUND in database for hash: {}",
&key_hash[..16]
);
return Response::builder()
.status(StatusCode::UNAUTHORIZED)
.body(axum::body::Body::empty())

View File

@@ -1,4 +1,13 @@
pub mod face_recognition;
pub mod identities;
pub mod identity_binding;
pub mod middleware;
pub mod n8n_search;
pub mod person_identity;
pub mod search;
pub mod server;
pub mod universal_search;
pub mod visual_chunk_search;
pub mod who;
pub use server::start_server;

File diff suppressed because it is too large Load Diff