Structural changes, move auth to separate module .

This commit is contained in:
Ara Sadoyan
2026-09-20 18:57:45 +02:00
parent 5fdfa17265
commit 4ae92a264b
11 changed files with 254 additions and 27 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
use crate::utils::auth::authenticate;
use crate::auth::authenticate;
use crate::utils::lazylock::{CACHE_LOCK, CACHE_TTL, EVICTION, LOCALHOST, MEM_CACHE, RATE_LIMITER, REQUESTS_4XX, REVERSE_STORE};
use crate::utils::metrics::*;
use crate::utils::structs::{AppConfig, Extraparams, Headers, InnerMap, UpstreamsDashMap, UpstreamsIdMap};
+3 -3
View File
@@ -30,10 +30,10 @@ struct OutToken {
}
#[derive(Clone)]
pub(crate) struct AppState {
pub struct AppState {
master_key: Option<String>,
pub(crate) cert_creds: String,
pub(crate) certs_dir: String,
pub cert_creds: String,
pub certs_dir: String,
upstreams_file: String,
config_sender: mpsc::Sender<Configuration>,
config_api_enabled: bool,