diff options
| author | salmonik <salmonik@tuta.io> | 2026-07-29 12:21:32 +0200 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-07-29 12:21:32 +0200 |
| commit | bc0d3d2f324ee613424ee31103207222b4b19640 (patch) | |
| tree | 483f699f303c44af6ec27b8f357e220b4d683e0c /src/docker.rs | |
| parent | Enable/disable mods, batch toggle & delete (diff) | |
| download | minecraft-ui-bc0d3d2f324ee613424ee31103207222b4b19640.tar.gz minecraft-ui-bc0d3d2f324ee613424ee31103207222b4b19640.zip | |
Config editor, host networking, whitelist RCON
- Config file editor at /instances/{id}/config (browse & edit config/ files)
- Host networking for Docker container (fixes WireGuard MTU DNS issues)
- Whitelist changes applied live via RCON instead of stopping the server
- Config edit handler detects which fields changed: whitelist → RCON,
other settings → restart container
- walk_dir simplified (removed unused root param)
- import_world uses if-let instead of never-looping while-let
- docker-compose.yml updated as reference template
Diffstat (limited to 'src/docker.rs')
| -rw-r--r-- | src/docker.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/docker.rs b/src/docker.rs index d66767e..f171d43 100644 --- a/src/docker.rs +++ b/src/docker.rs | |||
| @@ -164,6 +164,7 @@ impl DockerManager { | |||
| 164 | let host_config = HostConfig { | 164 | let host_config = HostConfig { |
| 165 | binds: Some(vec![format!("{instance_data}:/data")]), | 165 | binds: Some(vec![format!("{instance_data}:/data")]), |
| 166 | port_bindings: Some(port_bindings), | 166 | port_bindings: Some(port_bindings), |
| 167 | network_mode: Some("host".into()), | ||
| 167 | ..Default::default() | 168 | ..Default::default() |
| 168 | }; | 169 | }; |
| 169 | 170 | ||
