29 lines
1.0 KiB
Rust
29 lines
1.0 KiB
Rust
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
|
|
//! Ianitor core: host-file model, validation and compilers. Pure: no I/O, no network.
|
|
//!
|
|
//! The routes repo holds `ianitor.toml` (site settings) and one TOML file per host.
|
|
//! [`load`] turns them into a validated [`Model`]; [`compile::edge`] and [`compile::caddy`]
|
|
//! turn the model into the configs of the two engines.
|
|
|
|
pub mod compile;
|
|
pub mod edge_config;
|
|
mod error;
|
|
mod model;
|
|
pub mod pki;
|
|
pub mod routes;
|
|
pub mod share;
|
|
pub mod time;
|
|
mod validate;
|
|
|
|
pub use error::{ValidationError, ValidationErrors};
|
|
pub use model::{
|
|
AUTHELIA_COPY_HEADERS, AccessLog, Acme, AuthMode, ForwardAuth, HeaderRule, HeaderValue,
|
|
HealthCheck, Host, Hostname, LETSENCRYPT_PRODUCTION, LETSENCRYPT_STAGING, MAX_FILE_BYTES,
|
|
MAX_UPSTREAMS, Model, Scheme, SecretName, Site, TlsMode, UI_PROOF_SECRET, Upstream,
|
|
UpstreamHost,
|
|
};
|
|
pub use validate::{SourceFile, load};
|