Files
minecraft/.env.example
T
Aryan SinghandClaude Fable 5 b2ff88b255 Fix gamerule toggles for 26.x renames; add map/skins/pregen + admin favors
Minecraft 26.x renamed every gamerule to snake_case (keepInventory →
keep_inventory, doDaylightCycle → advance_time, ...), so the panel's
queries hit unknown rules: reads returned nothing, toggles always
started from 'off', and sets silently failed. Rules are now defined by
candidate names resolved against the live server (works on old and new
versions), sets are verified by re-query, and failures surface the
server's actual reply. Toggles render only for rules the server reports.

Creative additions:
- Featured mods on the Mods page: BlueMap (3D web map), SkinRestorer
  (real skins in offline mode), Chunky (pregen) — verified for 26.2
- BlueMap plumbing: MAP_PORT mapping in compose, in-network detection,
  'Open the live world map' link on the Overview
- Player modal favors: heal, teleport-to-player, give item
- Broadcast box gained a full-screen title mode

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-11 12:05:23 -05:00

58 lines
3.1 KiB
Bash

# ──────────────────────────────────────────────────────────────────────────
# Minecraft server + dashboard configuration
# Copy to .env (scripts/setup.sh does this and generates the secrets).
# After changing values, apply with: docker compose up -d
# ──────────────────────────────────────────────────────────────────────────
# ── Minecraft ────────────────────────────────────────────────────────────
# Game version. Change and re-run `docker compose up -d mc` to upgrade.
MC_VERSION=26.2
# Loader: FABRIC (default), NEOFORGE, FORGE, VANILLA, PAPER, ...
SERVER_TYPE=FABRIC
# JVM heap for the server. Host has 10 GB → 6G heap / 7g container limit.
MC_MEMORY=6G
MC_CONTAINER_MEM_LIMIT=7g
MC_PORT=25565
# BlueMap web map port (used when the bluemap mod is installed)
MAP_PORT=8100
MC_MOTD=A cozy server for friends
MC_DIFFICULTY=normal
MC_MAX_PLAYERS=10
MC_VIEW_DISTANCE=10
MC_SIMULATION_DISTANCE=8
# Leave empty for a random world seed
MC_SEED=
# Server-side mods (Modrinth project slugs, comma-separated).
# Auto-resolved to the newest compatible release on every container start.
# Append ":beta" to allow beta-typed builds for a project (EasyAuth ships
# its 26.x builds as beta on Modrinth).
MODRINTH_PROJECTS=fabric-api,easyauth:beta,spark,lithium,ferrite-core
# To run a full modpack instead, set its Modrinth slug (e.g. adrenaline)
# and see docs/mods-and-modpacks.md before enabling.
MODRINTH_MODPACK=
# ── Secrets (generated by scripts/setup.sh — never commit .env) ──────────
RCON_PASSWORD=CHANGE_ME
PANEL_SESSION_SECRET=CHANGE_ME
# Initial dashboard admin password. Used only to seed the first login;
# you are forced to change it in the UI afterwards.
PANEL_ADMIN_PASSWORD=CHANGE_ME
# ── Dashboard ────────────────────────────────────────────────────────────
DASHBOARD_PORT=8080
# Minutes an approved player has to /register before approval expires
REGISTRATION_WINDOW_MINUTES=2
# Optional: Discord webhook for alerts (joins, downtime, backups, lag)
DISCORD_WEBHOOK_URL=
# ── Backups ──────────────────────────────────────────────────────────────
# Interval between automatic backups (e.g. 6h, 24h)
BACKUP_INTERVAL=24h
# Delete backups older than this many days
BACKUP_RETENTION_DAYS=7
# ── Misc ─────────────────────────────────────────────────────────────────
TZ=UTC