CONFIG_PATH environment variable. For example:
Passing in a CONFIG_PATH to Sourcebot
Config File Schema
The config file you provide Sourcebot must follow the schema. This schema consists of the following properties:- Connections (
connections): Defines a set of connections that tell Sourcebot which repos to index and from where - Language Models (
models): Defines a set of language model providers for use with Ask Sourcebot - Settings (
settings): Additional settings to tweak your Sourcebot deployment - Search Contexts (
contexts): Groupings of repos that you can search against
Config File Syncing
Sourcebot syncs the config file on startup, and automatically whenever a change is detected.Settings
The following are settings that can be provided in your config file to modify Sourcebot’s behaviorTokens
Tokens are used to securely pass secrets to Sourcebot in a config file. They are used in various places, including connections, language model providers, auth providers, etc. Tokens can be passed as either environment variables or Google Cloud secrets:Environment Variables
Environment Variables
Google Cloud Secrets
Google Cloud Secrets
Overriding environment variables from the config
You can override / set environment variables from the config file by using theenvironmentOverrides property. Overrides can be of type string, number, boolean, or a token. Tokens are useful when you want to configure a environment variable using a Google Cloud Secret or other supported secret management service.
Token
Token
String
String
Number
Number
Boolean
Boolean
Schema reference
Schema reference

