open.mp icon indicating copy to clipboard operation
open.mp copied to clipboard

Add environment variable support in config.json

Open itsneufox opened this issue 1 week ago • 0 comments
trafficstars

Implements ${VAR_NAME} and ${VAR_NAME:-default} syntax for environment variable expansion. Supports $$ escape sequence for literal $ characters.

Examples:

  • Normal:
    "rcon": {
        "password": "${RCON_PASSWORD}"
    }
  • With fallback default:
    "rcon": {
        "password": "${RCON_PASSWORD:-changeme1}"
    }

edit: this closes #1015

itsneufox avatar Nov 14 '25 22:11 itsneufox