coreos / fedora-coreos-cincinnati

Backend for Fedora CoreOS auto-updates (Cincinnati server)
Other
12 stars 16 forks source link

config: add settings for status service #31

Open lucab opened 4 years ago

lucab commented 4 years ago

This applies to both graph-builder and policy-engine.

The status service needs to configurable via TOML config file. Initial proposal:

#[derive(Deserialize)]
struct FileConfig {
    /// Status service config.
    status: Option<StatusConfig>,
}

#[derive(Deserialize)]
struct StatusConfig {
    /// Address on which the status service will listen,
    pub address: Option<IpAddr>,

    /// Port to which the status service will bind.
    pub port: Option<u16>,
}