16 lines
340 B
Rust
16 lines
340 B
Rust
use std::env;
|
|
|
|
pub struct Config {
|
|
pub config_path: String,
|
|
pub docker_image: String,
|
|
}
|
|
|
|
impl Config {
|
|
pub fn load() -> Self {
|
|
Self {
|
|
config_path: env::var("DMM_CONFIG_PATH").unwrap_or_else(|_| "/raid/mc_servers".to_string()),
|
|
docker_image: "itzg/minecraft-server".to_string(),
|
|
}
|
|
}
|
|
}
|