automa/minecraft/.env.example
m1ngsama 3e1d752bfd refactor: extract shared utilities into common library
- Create bin/lib/common.sh with shared logging and utility functions
- Add minecraft/.env.example for environment configuration template
- Update bin scripts to source shared library (DRY principle)
- Consolidate duplicated logging functions across scripts
2025-12-13 10:00:00 +08:00

19 lines
653 B
Text

# Minecraft Server Environment Configuration
# Copy this file to .env and modify the values
# Usage: cp .env.example .env && chmod 600 .env
# User permissions (avoid container file permission issues)
# Replace with your host user UID/GID, use 'id' command to check
UID=1000
GID=1000
# RCON password (remote control, must be complex and secure)
# Generate a strong password: openssl rand -base64 32
RCON_PASSWORD=your_secure_rcon_password_here
# Timezone (adjust based on server location)
# Examples: America/New_York, Europe/London, Asia/Shanghai
TZ=Asia/Shanghai
# Container name (used by scripts for health checks)
CONTAINER_NAME=mc-fabric-1.21.1