nix disable check phase, fix incomplete/failed write in proxy mode, add FML support, rename executable to dmm, image tag specific to servers, config folder from env,

This commit is contained in:
2026-06-11 15:22:29 +02:00
parent 3f840ea284
commit 887a228cf2
11 changed files with 114 additions and 36 deletions

View File

@ -1,3 +1,5 @@
use std::env;
pub struct Config {
pub config_path: String,
pub docker_image: String,
@ -6,8 +8,8 @@ pub struct Config {
impl Config {
pub fn load() -> Self {
Self {
config_path: "/home/tom/desktop/rust/yo_mama/servers".to_string(), // that's my program I do what I want
docker_image: "itzg/minecraft-server".to_string()
config_path: env::var("DMM_CONFIG_PATH").unwrap_or_else(|_| "/raid/mc_servers".to_string()),
docker_image: "itzg/minecraft-server".to_string(),
}
}
}