move the squid host options to deploy.hive-controller.squid
This commit is contained in:
parent
c9b5705ad8
commit
da16487800
1 changed files with 168 additions and 57 deletions
|
|
@ -15,7 +15,7 @@
|
|||
//! Squid reads both when it parses its configuration, so the path unit in
|
||||
//! `nix/host-modules/hive-squid.nix` reloads it when either changes.
|
||||
//!
|
||||
//! The names `services.hyperhive.squid.allowedDomains` lists ([`ENV_SEED_FILE`])
|
||||
//! The names `services.hyperhive.deploy.hive-controller.squid.allowedDomains` lists ([`ENV_SEED_FILE`])
|
||||
//! are always allowed: the swarm-wide names written are those plus the swarm's,
|
||||
//! with the per-agent rules on top. Until the swarm has a list the files hold
|
||||
//! just those names. A file from the swarm's list starts with [`SWARM_MARKER`];
|
||||
|
|
@ -46,14 +46,14 @@ pub const INTERVAL: Duration = Duration::from_secs(30);
|
|||
const FAILURES_BEFORE_WARNING: u32 = 3;
|
||||
|
||||
/// The swarm-wide names file. Set by `nix/host-modules/hive-c0re` from
|
||||
/// `services.hyperhive.squid.allowedFile`.
|
||||
/// `services.hyperhive.deploy.hive-controller.squid.allowedFile`.
|
||||
pub const ENV_ALLOWED_FILE: &str = "HIVE_SQUID_ALLOWED_FILE";
|
||||
|
||||
/// The per-agent squid configuration file. Set from
|
||||
/// `services.hyperhive.squid.agentAllowFile`.
|
||||
/// `services.hyperhive.deploy.hive-controller.squid.agentAllowFile`.
|
||||
pub const ENV_AGENT_ALLOW_FILE: &str = "HIVE_SQUID_AGENT_ALLOW_FILE";
|
||||
|
||||
/// The file of names `services.hyperhive.squid.allowedDomains` lists, one per
|
||||
/// The file of names `services.hyperhive.deploy.hive-controller.squid.allowedDomains` lists, one per
|
||||
/// line, which every rendering of the swarm-wide names includes.
|
||||
pub const ENV_SEED_FILE: &str = "HIVE_SQUID_ALLOWED_SEED_FILE";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue