Skip to content

All environment variables

Generated from every template’s .env*.example. Each variable links to its entry on the template’s Environment page, which has the default, the owning feature, the template’s own comment and full notes.

VariableTemplatesIn production
API_DOC_PASSWORDreact-appNot used in production.
API_DOC_URLreact-appNot used in production: only by yarn gen.
API_DOC_USERreact-appNot used in production.
APP_ENVnest-api, node-workerproduction.
APP_HOSTnest-api0.0.0.0 in a container.
APP_NAMEnest-apiYour product's display name.
BASIC_AUTH_PASSnest-apiA strong password, not the example's.
BASIC_AUTH_USERnest-apiA new operator username.
BETTER_AUTH_SECRETnest-apiA random 32-byte value: openssl rand -base64 32.
BETTER_AUTH_URLnest-apiThe API's public URL, like SERVER_HOST.
DATABASE_URLnest-api, node-workerpostgresql://<user>:<password>@<host>:5432/<db>?sslmode=require.
DB_HOSTpy-workerThe API's database host.
DB_NAMEpy-workerThe API's database name.
DB_PASSWORDpy-workerIts password.
DB_PORTpy-worker5432.
DB_USERpy-workerA database user with access to the tables this worker uses.
FRONTEND_HOSTnest-apiThe front end's origin, e.g. https://app.example.com.
GROWTHBOOK_API_HOSTnest-apihttps://cdn.growthbook.io or your GrowthBook's API host.
GROWTHBOOK_CLIENT_KEYnest-apiAn SDK connection's client key (sdk-…).
HEALTH_DISK_PATHnest-apiThe volume to watch: /, or where logs and uploads are written.
HEALTH_DISK_THRESHOLDnest-apiThe fraction of the volume that may be used, e.g. 0.9.
HEALTH_HEAP_MAX_MBnest-apiBelow the container's memory limit, e.g. 75% of it.
HEALTH_RSS_MAX_MBnest-apiBelow the container's memory limit.
HOME_PATHpy-worker/app in the Docker image.
LOG_LEVELnest-api, node-workerinfo.
MISC_CORS_ORIGINSnest-apiEvery other front-end origin, comma-separated; empty for a single front end.
OAUTH_GOOGLE_CLIENT_IDnest-apiYour Google OAuth client id.
OAUTH_GOOGLE_CLIENT_SECRETnest-apiThe client's secret.
OPENOBSERVE_ORGnest-api, node-worker, py-workerThe project's organization identifier.
OPENOBSERVE_TOKENnest-api, node-worker, py-workerThe organization's ingestion token (o2oi_…).
OPENOBSERVE_URLnest-api, node-worker, py-workerYour OpenObserve instance.
OTEL_SERVICE_NAMEnest-api, node-worker, py-workerA distinct name per service: shop-api, shop-worker, shop-py.
PORTnest-api, react-app, react-monorepoThe port the process listens on (nest-api: the container's exposed port).
PUPPETEER_EXECUTABLE_PATHnode-workerSet by the Docker image (/usr/bin/chromium or /usr/bin/chromium-browser).
RATE_LIMIT_AUTH_MAXnest-apiRequests per auth window per client IP (default 100).
RATE_LIMIT_AUTH_WINDOWnest-apibetter-auth's window for /auth/*, in seconds (default 10).
RATE_LIMIT_ENABLEDnest-apitrue.
RATE_LIMIT_IP_HEADERSnest-apiThe header your reverse proxy sets to the client's IP (x-forwarded-for, cf-connecting-ip, …).
RATE_LIMIT_MAXnest-apiRequests per window per client IP on app routes (default 120).
RATE_LIMIT_TTLnest-apiThe window for app routes, in milliseconds (default 60000).
REDIS_HOSTnest-api, node-worker, py-workerYour Redis host; identical on the API and every worker.
REDIS_PASSWORDnest-api, node-worker, py-workerThe Redis password.
REDIS_PORTnest-api, node-worker, py-workerYour Redis port (6379).
REDIS_USERnest-api, node-worker, py-workerAn ACL user, if your Redis uses them.
S3_ACCESS_KEY_IDnest-apiAn access key for the bucket.
S3_BUCKET_NAMEnest-apiThe bucket.
S3_ENDPOINTnest-apiThe endpoint URL, even on AWS: https://s3.<region>.amazonaws.com.
S3_REGIONnest-apiThe bucket's region.
S3_SECRET_ACCESS_KEYnest-apiIts secret.
SERVER_HOSTnest-apiThe API's public URL, e.g. https://api.example.com.
SMTP_FROMnest-apiName <no-reply@your-domain>, on a domain with SPF, DKIM and DMARC.
SMTP_HOSTnest-apiYour mail provider's SMTP host.
SMTP_PASSWORDnest-apiThe SMTP password or API key.
SMTP_PORTnest-api465 or 587.
SMTP_SECUREnest-apitrue with 465, false with 587 (STARTTLS).
SMTP_SUPPORT_EMAILnest-apiYour support address.
SMTP_USERnest-apiThe SMTP username.
SUPERUSER_EMAILnest-apiThe first admin's address.
SUPERUSER_PASSWORDnest-apiA strong password, changed after first sign-in.
TEMPORAL_ADDRESSnest-api, node-worker, py-workerYour Temporal frontend, e.g. temporal-grpc.example.com:7233.
TEMPORAL_NAMESPACEnest-api, node-worker, py-workerThe project's namespace, the same on the API and its workers.
TEMPORAL_TASK_QUEUEnest-api, node-worker, py-workerThe queue a worker polls.
TEMPORAL_TLS_CAnest-api, node-worker, py-workerThe CA that signed the server's certificate, as PEM; empty if it's publicly trusted.
TEMPORAL_TLS_CERTnest-api, node-worker, py-workerThe project's client certificate, as PEM.
TEMPORAL_TLS_KEYnest-api, node-worker, py-workerThe client certificate's private key, as PEM.
VITE_APP_ADMIN_HOSTreact-monorepoThe admin app's origin, e.g. https://admin.example.com.
VITE_APP_ALLOWED_HOSTSreact-appNot used in production.
VITE_APP_API_URLreact-app, react-monorepoThe API's public URL, as a build argument.
VITE_APP_AUTH_HOSTreact-monorepoThe auth app's origin, e.g. https://auth.example.com.
VITE_APP_CLIENT_HOSTreact-monorepoThe client app's origin, e.g. https://app.example.com.
VITE_APP_LANDINGreact-monorepoThe landing site's origin, e.g. https://example.com, as a build argument.
VITE_APP_SITE_URLreact-app, react-monorepoThe canonical public origin, as a build argument.
VITE_APP_SUPPORT_EMAILreact-app, react-monorepoA monitored security and support address, as a build argument.
VITE_OPENOBSERVE_CLIENT_TOKENreact-app, react-monorepoA RUM token, as a build argument.
VITE_OPENOBSERVE_ORGreact-app, react-monorepoThe project's organization identifier, as a build argument.
VITE_OPENOBSERVE_URLreact-app, react-monorepoYour OpenObserve instance, as a build argument.