mirror of
https://github.com/telemt/telemt.git
synced 2026-11-26 00:58:30 +03:00
WEB: bounded opt-in wildcard host routing added
This commit is contained in:
@@ -261,6 +261,7 @@ const LISTENER_CONFIG_KEYS: &[&str] = &[
|
||||
];
|
||||
|
||||
const WEB_CONFIG_KEYS: &[&str] = &[
|
||||
"allow_wildcard_hosts",
|
||||
"enabled",
|
||||
"carrier",
|
||||
"carrier_method",
|
||||
@@ -277,6 +278,7 @@ const WEB_CONFIG_KEYS: &[&str] = &[
|
||||
];
|
||||
|
||||
const WEB_LIMITS_CONFIG_KEYS: &[&str] = &[
|
||||
"wildcard",
|
||||
"max_header_bytes",
|
||||
"max_body_bytes",
|
||||
"max_frame_payload_bytes",
|
||||
@@ -535,3 +537,12 @@ pub(super) fn handle_unknown_config_keys(parsed_toml: &toml::Value) -> Result<()
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
const WEB_WILDCARD_LIMITS_CONFIG_KEYS: &[&str] = &[
|
||||
"max_rules",
|
||||
"max_profiles_per_request",
|
||||
"cache_hosts",
|
||||
"cache_bytes",
|
||||
"cold_hmac_per_minute",
|
||||
"cold_hmac_burst",
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user