Files
2026-09-02 14:47:08 -06:00

62 lines
1.4 KiB
Django/Jinja

# Minecraft Server Environment Variables
# Deployed by Ansible - Managed file, do not edit manually
# Version and Server Type
TYPE={{ minecraft.server_type | upper }}
VERSION={{ minecraft.version }}
# Memory
MEMORY={{ minecraft.java_memory }}
{% if minecraft.java_args is defined %}
JVM_OPTS="{{ minecraft.java_args }}"
{% endif %}
# Network
PORT={{ minecraft.port }}
{% if minecraft.rcon_enabled %}
ENABLE_RCON=true
RCON_PORT={{ minecraft.rcon_port }}
RCON_PASSWORD={{ minecraft.rcon_password }}
{% else %}
ENABLE_RCON=false
{% endif %}
# Server Settings
MOTD={{ minecraft.motd }}
MAX_PLAYERS={{ minecraft.max_players }}
GAMEMODE={{ minecraft.game_mode }}
DIFFICULTY={{ minecraft.difficulty }}
{% if minecraft.online_mode %}
ONLINE_MODE=true
{% else %}
ONLINE_MODE=false
{% endif %}
VIEW_DISTANCE={{ minecraft.view_distance | default(10) }}
SIMULATION_DISTANCE={{ minecraft.simulation_distance | default(6) }}
{% if minecraft.whitelist_enabled %}
ENABLE_WHITELIST=true
{% else %}
ENABLE_WHITELIST=false
{% endif %}
{% if minecraft.enable_command_block %}
ENABLE_COMMAND_BLOCK=true
{% else %}
ENABLE_COMMAND_BLOCK=false
{% endif %}
{% if minecraft.max_world_size %}
MAX_WORLD_SIZE={{ minecraft.max_world_size }}
{% endif %}
{% if minecraft.spawn_protection %}
SPAWN_PROTECTION={{ minecraft.spawn_protection }}
{% endif %}
# Server name broadcast
SERVER_NAME={{ minecraft.server_name }}
# Make the container non-interactive
EULA=TRUE