Files
homelab/cluster/applications/minecraft/configmap.yaml
2026-07-19 20:56:03 -05:00

57 lines
2.0 KiB
YAML

---
# server.properties overrides for Journey Into Imagination
# itzg/minecraft-server reads these as environment variables and
# writes them into server.properties on startup.
# Full list: https://docker-minecraft-server.readthedocs.io/en/latest/configuration/server-properties/
apiVersion: v1
kind: ConfigMap
metadata:
name: papermc-config
namespace: minecraft
labels:
app.kubernetes.io/name: minecraft
app.kubernetes.io/component: papermc
data:
# Server identity
MOTD: "Journey Into Imagination"
SERVER_NAME: "Journey Into Imagination"
# Game settings
GAMEMODE: "survival"
DIFFICULTY: "normal"
PVP: "true"
MAX_PLAYERS: "20"
ALLOW_FLIGHT: "true"
SPAWN_PROTECTION: "0"
SEED: "-2786778798491440147"
# Auth
ONLINE_MODE: "false"
# Mojang's sessionserver blocks some datacenter/homelab IPs via Cloudflare WAF.
# enforce-secure-profile=false allows players to join without mandatory profile key validation.
# ONLINE_MODE=true still enforces Mojang account auth — this only relaxes the key signing requirement.
ENFORCE_SECURE_PROFILE: "false"
# Whitelist — set to true when ready to lock down the server
WHITE_LIST: "true"
ENFORCE_WHITELIST: "false"
# Performance / tick safety
MAX_TICK_TIME: "180000"
# RCON (enabled so plugins/admin tools can connect)
ENABLE_RCON: "true"
RCON_PORT: "25575"
# Plugin auto-download — minecraft-prometheus-exporter for Grafana metrics
# v3.1.2: https://github.com/sladkoff/minecraft-prometheus-exporter
# Exposes /metrics on port 9225 (HTTP, Prometheus scrape target)
#
# SkinsRestorer v15.12.4 — restores player skins in offline-mode
# https://github.com/SkinsRestorer/SkinsRestorer
# Players set skins via /skin <username>; fetches from Mojang even in offline-mode
PLUGINS: |
https://github.com/sladkoff/minecraft-prometheus-exporter/releases/download/v3.1.2/minecraft-prometheus-exporter-3.1.2.jar
https://github.com/SkinsRestorer/SkinsRestorer/releases/download/15.12.4/SkinsRestorer.jar