Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 8.76 KB

configuration.md

File metadata and controls

13 lines (10 loc) · 8.76 KB
description icon
Here you can see all available environment variables of the Control Plane.
sliders-up

Configuration

Check the WunderGraph Cosmo repository for a default configuration.

Environment variableDescriptionDefaultRequiredDescriptionDefaultValueRequiredDefault
HOSTThe host of the serverlocalhostfalsefalse
DATABASE_URLThe connection URL of the database.postgresql://postgres:changeme@localhost:5432/controlplanetrueThe name of the federated graph that the router represent""Stringtrue""
PORTThe port on which the controlplane runs.3001trueThe token that permits the router to communicate with the contolplane and export metrics.""String (Generated from federated-graph create-token)true""
ALLOWED_ORIGINSThe controlplane url.http://localhost:3000trueThe URL of the controlplane.http://localhost:3001Stringfalsehttp://localhost:3001
LOG_LEVELConfigures the log level.infotrueThe server addresslocalhost:3002Stringfalselocalhost:3002
DEBUG_SQLConfigures the logs of SQL.falsetrueThe name of your router service
wundergraph-cosmo-router
Stringfalsewundergraph-cosmo-router
CLICKHOUSE_DSNThe connection URL of clickhouse.""trueThe headers to be sent to the OTEL collector""String or comma-separated for multiple valuesfalseOrigin,Content-Length,Content-Type
AUTH_REDIRECT_URIThe authorized redirect URLs.http://localhost:3001/v1/auth/callbacktrueAllowed CORS Headers

Origin,Content-Length,Content-Type
String or comma-separated for multiple valuesfalseOrigin,Content-Length,Content-Type
WEB_BASE_URLThe URL of studio.""trueAllowed CORS Origins*String or comma-separated for multiple valuesfalse*
AUTH_JWT_SECRETThe JWT secret used for verifying and signing JWTs. (32 characters)""trueAllowed CORS Methods

HEAD,GET,POST
String or comma-separated for multiple valuesfalseHEAD,GET,POST
OPENAI_API_KEYThe api key of OPEN API""trueAllowed CORS Credential modefalseBooleanfalsefalse
KC_LOGIN_REALMThe realm of the login credentials."master"falsefalse
KC_REALMThe keycloak realm of your Client.""truefalse
KC_CLIENT_IDThe keycloak client ID.""truefalse
KC_ADMIN_USERThe admin username.""truefalse
KC_ADMIN_PASSWORDThe admin password.""truefalse
KC_API_URLThe URL to your keycloak API endpoint. Used internally for administration.""truefalse
KC_FRONTEND_URLThe public URL of your keycloak instance. Used for redirects.""truefalse
WEBHOOK_URLThe endpoint to which you want to fire platform webhooks""falsefalse
WEBHOOK_SECRETThe secret key to verify webhook requests""falsefalse
DB_URLPostgres connection string""truefalse
DB_CERT_PATHPath to certificate file""falsefalse
DB_CA_PATHPath to the CA file""falsefalse
DB_KEY_PATHPath to the private key file""falsefalse
GITHUB_APP_CLIENT_IDGitHub App client id""falsefalse
GITHUB_APP_CLIENT_SECRETGitHub App client secret""falsefalse
GITHUB_APP_IDGitHub App id""falsefalse
GITHUB_APP_PRIVATE_KEYPrivate key of your GitHub App""falsefalse
GITHUB_APP_WEBHOOK_SECRETWebhook secret of your GitHub App""falsefalse
SLACK_APP_CLIENT_IDSlack app client id""falsefalse
SLACK_APP_CLIENT_SECRETSlack app client secret""falsefalse
S3_STORAGE_URLURL to your s3 storage provider (either include credentials or use S3_ACCESS_KEY_ID and S3_SECRET_ACCESS_KEY)""truefalse
S3_REGIONThe region to be used for the s3 bucket. "auto"falsefalse
S3_ENDPOINTThe endpoint to be used falls back to url.Origin.""falsefalse
S3_ACCESS_KEY_ID

Access key id for the bucket.

(AWS_ACCESS_KEY_ID)

""falsefalse
S3_SECRET_ACCESS_KEY

Secress Access key for the bucket.

(AWS_SECRET_ACCESS_KEY)

""falsefalse
S3_FORCE_PATH_STYLEUsed to enforce path style url resolution. truefalsefalse
SMTP_ENABLEDEnable the smtp integrationfalsefalsefalse
SMTP_USERNAMESmtp username""falsefalse
SMTP_PASSWORDSmtp password""falsefalse
SMTP_PORTThe port the smtp server listens tofalsefalse
SMTP_HOSTThe host to connect to""falsefalse
SMTP_SECUREDefines if the connection should use SSLfalsefalse
SMTP_REQUIRE_TLSForces the client to use STARTTLSfalsefalse
STRIPE_SECRET_KEYStripe secret""falsefalse
STRIPE_WEBHOOK_SECRETStripe webhook secret""falsefalse
DEFAULT_PLANBased on your custom plans, the name of the default plan""falsefalse