[core] Schema: reject wildcard header names, cap file size and upstreams, require <hostname>.toml
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
//! Model → [`EdgeConfig`] for the Pingora data plane.
|
||||
|
||||
use super::{CompileOptions, join};
|
||||
use super::{CompileOptions, join, strip_headers};
|
||||
use crate::edge_config::{
|
||||
EDGE_CONFIG_VERSION, EdgeAcme, EdgeConfig, EdgeForwardAuth, EdgeHeaderOp, EdgeHealthCheck,
|
||||
EdgeHost, EdgeTls, EdgeUpstream, EdgeValue,
|
||||
@@ -30,6 +30,7 @@ pub(super) fn compile(model: &Model, o: &CompileOptions) -> EdgeConfig {
|
||||
upstream: upstream(&fa.upstream),
|
||||
path_and_query: fa.path_and_query.clone(),
|
||||
copy_headers: fa.copy_headers.clone(),
|
||||
strip_headers: strip_headers(fa),
|
||||
}),
|
||||
hosts: model
|
||||
.hosts()
|
||||
|
||||
Reference in New Issue
Block a user