// SPDX-License-Identifier: CPAL-1.0 // Copyright (c) 2026 Marek Novák. Part of Ianitor, under the Common Public Attribution // License 1.0: see LICENSE (its Exhibit A is this file's notice). //! 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};