mirror of
https://codeberg.org/ashley/poke.git
synced 2025-06-21 04:57:01 -04:00
inital source for january :3
This commit is contained in:
parent
84ad874a2b
commit
365a6c1009
4 changed files with 200 additions and 0 deletions
9
january/src/util/variables.rs
Normal file
9
january/src/util/variables.rs
Normal file
|
@ -0,0 +1,9 @@
|
|||
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.");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue