pub struct Config {Show 15 fields
pub authorization: HashMap<String, String>,
pub media_source: PathBuf,
pub debug: bool,
pub utc_logging: bool,
pub media_host: String,
pub media_port: u16,
pub session_duration: i64,
pub file_formats: Vec<String>,
pub workers: usize,
pub max_connections: usize,
pub max_payload_size: usize,
pub websites: Vec<String>,
pub secure_session: bool,
pub key_file: PathBuf,
pub cert_file: PathBuf,
}
Expand description
Represents the configuration parameters for RuStream.
Fields§
Dictionary of key-value pairs for authorization (username and password).
media_source: PathBuf
Source path for media files.
debug: bool
Debug flag to enable debug level logging.
utc_logging: bool
Boolean flag to enable UTC timezone in logging. Defaults to local timezone.
media_host: String
Host IP address for media streaming.
media_port: u16
Port number for hosting the application.
session_duration: i64
Duration of a session in seconds.
file_formats: Vec<String>
List of supported file formats.
workers: usize
Number of worker threads to spin up the server.
max_connections: usize
Maximum number of concurrent connections.
max_payload_size: usize
Max payload allowed by the server in request body.
websites: Vec<String>
List of websites (supports regex) to add to CORS configuration.
secure_session: bool
Boolean flag to restrict session_token to be sent only via HTTPS
key_file: PathBuf
Path to the private key file for SSL certificate
cert_file: PathBuf
Path to the full certificate chain file for SSL certificate