Step 2 Setting Up Environment Variables 🌍
Before running Matchzy Overtime Manager (MOM), you need to configure your environment variables.
What are Environment Variables?
Environment variables store configuration settings outside the source code, making it easy to adjust settings without modifying the program.
Instructions
- Copy the example environment file:
cp .env.example .env
- Modify
.env
to match your server configuration: Open.env
in a text editor and update the following values:
# Server 1 configurationserver1_rcon_host="127.0.0.1"server1_rcon_port="27015"server1_rcon_password="your_rcon_password"
# Server 2 configurationserver2_rcon_host="127.0.0.1"server2_rcon_port="27016"server2_rcon_password="your_second_rcon_password"
# Maximum number of rounds allowed before calculating the winnermax_rounds=30 # Adjust as needed
The max_rounds
variable determines how many rounds are played before declaring a winner; for example, setting it to 24 means no overtime is allowed, 30 triggers one overtime period, 36 allows for two overtimes, and so on.
- Save the file and ensure it is correctly formatted.
Once the .env
file is configured, proceed to Step 3: Starting MOM.