mirror of
https://github.com/telemt/telemt.git
synced 2026-11-01 13:21:58 +03:00
WEB
Co-Authored-By: brekotis <93345790+brekotis@users.noreply.github.com> Co-Authored-By: John Preston <17900494+john-preston@users.noreply.github.com>
This commit is contained in:
@@ -22,6 +22,8 @@ mod includes;
|
||||
mod strict_keys;
|
||||
// Precomputed user authentication data for handshake hot paths.
|
||||
mod runtime_auth;
|
||||
// Validated immutable WEB configuration and static-site snapshots.
|
||||
mod runtime_web;
|
||||
// Post-deserialization validation helpers.
|
||||
mod decode;
|
||||
mod effective;
|
||||
@@ -30,6 +32,7 @@ mod validate_core;
|
||||
mod validate_me;
|
||||
mod validate_runtime;
|
||||
mod validate_server;
|
||||
mod validate_web;
|
||||
mod validation;
|
||||
|
||||
use self::includes::{hash_rendered_snapshot, normalize_config_path, preprocess_includes};
|
||||
@@ -96,6 +99,10 @@ pub struct ProxyConfig {
|
||||
#[serde(default)]
|
||||
pub server: ServerConfig,
|
||||
|
||||
/// WEB carrier ingress and public-site fallback configuration.
|
||||
#[serde(default)]
|
||||
pub web: WebConfig,
|
||||
|
||||
/// Timeout values used by client, fallback, and upstream operations.
|
||||
#[serde(default)]
|
||||
pub timeouts: TimeoutsConfig,
|
||||
@@ -204,6 +211,11 @@ impl ProxyConfig {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// Rebuilds validated WEB capabilities and immutable decoy snapshots.
|
||||
pub(crate) fn rebuild_runtime_web(&mut self) -> Result<()> {
|
||||
runtime_web::rebuild(self)
|
||||
}
|
||||
|
||||
pub(crate) fn runtime_user_auth(&self) -> Option<&UserAuthSnapshot> {
|
||||
self.runtime_user_auth.as_deref()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user