[core] Schema: reject wildcard header names, cap file size and upstreams, require <hostname>.toml
This commit is contained in:
@@ -221,6 +221,10 @@ impl Model {
|
||||
pub const LETSENCRYPT_PRODUCTION: &str = "https://acme-v02.api.letsencrypt.org/directory";
|
||||
/// Let's Encrypt staging directory.
|
||||
pub const LETSENCRYPT_STAGING: &str = "https://acme-staging-v02.api.letsencrypt.org/directory";
|
||||
/// Largest route file accepted (site or host).
|
||||
pub const MAX_FILE_BYTES: usize = 1 << 20;
|
||||
/// Most upstreams one host may list.
|
||||
pub const MAX_UPSTREAMS: usize = 64;
|
||||
/// Identity headers Authelia returns on success (Authelia's Caddy integration guide).
|
||||
pub const AUTHELIA_COPY_HEADERS: [&str; 4] = [
|
||||
"Remote-User",
|
||||
|
||||
Reference in New Issue
Block a user