//! Environment variable keys used by Omry.

/// Key for SQLite DB URL.
pub const DATABASE_URL: &str = "OMRY_DATABASE_URL";

/// Key for maximum channels per client IP.
pub const MAX_CHANNELS_PER_IP: &str = "OMRY_MAX_CHANNELS_PER_IP";

/// Key corresponding to [`tracing::Level`].
pub const TRACING_LEVEL: &str = "OMRY_TRACING_LEVEL";

/// TCP port for the Omry server to listen on, for tarpc.
pub const SERVER_PORT_RPC: &str = "OMRY_RPC_PORT";

/// TCP port for the Omry listen to for requests over web.
pub const SERVER_PORT_WEB: &str = "OMRY_WEB_PORT";

/// UDS path, if tarpc is listening over UDS instead of TCP.
pub const UDS_PATH: &str = "OMRY_UDS_PATH";

/// Typesense server URL.
pub const TYPESENSE_URL: &str = "OMRY_TYPESENSE_URL";

/// Typesense API key.
pub const TYPESENSE_API_KEY: &str = "OMRY_TYPESENSE_API_KEY";

/// The environment variable name for
/// the message the Omry server should print to stdout
/// when it's ready to receive requests.
pub const READY_MESSAGE_KEY: &str = "OMRY_READY_MESSAGE";

/// RPC/web access token env var key.
pub const AUTH_TOKEN: &str = "OMRY_AUTH_TOKEN";
