Environment variables

Graftcode Gateway

VariableValuesPurpose
GG_DEBUG1, TRUELog incoming/outgoing byte traffic to console
GC_PROJECT_KEYJWT stringProject Key; overrides --projectKey
GSMU_ENDPOINTURLOverrides --endpoint (default https://grft.dev)

Examples

export GG_DEBUG=1
export GC_PROJECT_KEY="eyJ..."
export GSMU_ENDPOINT="https://grft.dev"
./gg ./MyLib.dll --port 8888

Windows PowerShell:

$env:GG_DEBUG = "1"
$env:GC_PROJECT_KEY = "eyJ..."

Graft / Hypertube (consumer)

Graft configuration precedence includes environment variables above config files and code. Generated GraftConfig checks runtime-specific and global env vars at init.

Common pattern: set production host without code changes:

# Exact var names may vary by generated Graft runtime — prefer graftcode-config files when unsure
export GRAFTCODE_CONFIG_HOST="tcp://prod-gateway:8990"

See Config file formats and GraftConfig reference.


See also