Variables

Configuration variable sources

Configuration precedence

Components can retrieve configuration parameters from several sources. The following order defines the precedence (from highest to lowest):

  1. Command-line argument (--var=1)
  2. Configuration file passed through command line (--config-file)
  3. Environment variable: uppercase the flag name, replace dashes with underscores, and prefix it.
    • Agent and server: GOAULD_ (both share the same namespace, e.g. GOAULD_AGE_PUBLIC_KEY=..., GOAULD_HTTP_DOMAIN=...)
    • Client: TEALC_ (e.g. TEALC_ACCESS_TOKEN=...)
  4. Default configuration file (see Configuration file)
  5. The flag’s default value, as set in source, optionally overridden at build time via -ldflags or tealc compile --env (see Compilation)