diff options
author | metamuffin <metamuffin@disroot.org> | 2024-08-25 01:13:23 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-08-25 01:13:23 +0200 |
commit | 1063e44e625d72a78ef57eaadfcf5ce8c1678e27 (patch) | |
tree | 6b8f65942f4b58f206177768e5ec62fb17b4a2a2 /src/modules/mod.rs | |
parent | ecb3378d29a4f53604a9287ef7027a299f3d45d5 (diff) | |
download | gnix-1063e44e625d72a78ef57eaadfcf5ce8c1678e27.tar gnix-1063e44e625d72a78ef57eaadfcf5ce8c1678e27.tar.bz2 gnix-1063e44e625d72a78ef57eaadfcf5ce8c1678e27.tar.zst |
very bad basic caching
Diffstat (limited to 'src/modules/mod.rs')
-rw-r--r-- | src/modules/mod.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/mod.rs b/src/modules/mod.rs index 2494771..fc4d603 100644 --- a/src/modules/mod.rs +++ b/src/modules/mod.rs @@ -9,6 +9,7 @@ use std::{net::SocketAddr, pin::Pin, sync::Arc}; pub mod accesslog; pub mod auth; +pub mod cache; pub mod cgi; pub mod debug; pub mod error; @@ -16,12 +17,11 @@ pub mod file; pub mod files; pub mod headers; pub mod hosts; +pub mod loadbalance; pub mod paths; pub mod proxy; pub mod redirect; pub mod switch; -pub mod loadbalance; -pub mod cache; pub type NodeRequest = Request<Incoming>; pub type NodeResponse = Response<BoxBody<Bytes, ServiceError>>; @@ -42,6 +42,8 @@ pub static MODULES: &[&dyn NodeKind] = &[ &redirect::RedirectKind, &cgi::CgiKind, &debug::DebugKind, + &cache::CacheKind, + &loadbalance::LoadBalanceKind, ]; pub struct NodeContext { |