// Stub for configuration logic (loading from env, file)
pub struct RelayConfig {
    pub api_key: Option<String>,
    pub port: u16,
    /// Maximum allowed payload size per PLP packet (bytes).
    /// Default: 1 MiB. Packets exceeding this limit are dropped
    /// and the stream is reset to prevent resource exhaustion.
    pub max_payload_bytes: usize,
}

impl Default for RelayConfig {
    fn default() -> Self {
        Self {
            api_key: None,
            port: 4001,
            max_payload_bytes: 1024 * 1024, // 1 MiB
        }
    }
}
