// 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; 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, Model, Scheme, SecretName, Site, TlsMode, Upstream, UpstreamHost, }; pub use validate::{SourceFile, load};