1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2025-01-19 07:23:33 -05:00
poke/january/src/util/variables.rs

10 lines
359 B
Rust
Raw Normal View History

2023-12-10 05:29:22 -05:00
use std::env;
lazy_static! {
// Application Settings
pub static ref HOST: String =
env::var("JANUARY_HOST").expect("Missing JANUARY_HOST environment variable.");
pub static ref MAX_BYTES: usize =
env::var("JANUARY_MAX_BYTES").unwrap_or("104857600".to_string()).parse().expect("Invalid JANUARY_MAX_BYTES environment variable.");
}