Environment variable reference

Gateway

VariableValues / purposePrecedence
GG_DEBUG1 or TRUE logs incoming/outgoing byte trafficIndependent debug switch
GSMU_ENDPOINTLegacy public variable name that overrides the Graftcode Engine endpointOverrides --endpoint
GC_PROJECT_KEYPortal project JWTOverrides --projectKey

Treat GC_PROJECT_KEY as a secret. GG_DEBUG can expose invocation data and should remain off during normal production operation.

Generated Grafts

Generated packages (including .NET and Node.js) attempt:

  • <graft-name>-config at priority 1;
  • graftcode-config at priority 2.

Their values identify configuration content understood by the Hypertube resolver. JSON/YAML content uses a top-level configurations object; semicolon-delimited connection strings require name and runtime.

Environment variables outrank files, programmatic configuration, and generated defaults. Configure them before the first generated call.

Example programmatic remote host (field names vary—copy from Vision):

GraftConfig.Host = "ws://localhost/ws";
GraftConfig.Stateless = true;
Plugin-specific variables and Graftcode Engine variables are not Gateway runtime configuration and are intentionally omitted here. For runtimes other than .NET and Node.js, confirm behavior in the installed package.

Next steps