Reference for every Shipfastai environment variable: app settings, database, JWT auth, Stripe billing, email, OAuth providers, Redis, and rate limiting.
Shipfastai reads all configuration from a .env file at the root of your product directory. Copy .env.example to .env and fill in your values before starting the application. Variables marked as required must be set or the backend will refuse to start.
Application
Variable
Required
Example
Description
APP_NAME
No
Shipfastai
Display name used in logs and emails. Defaults to Shipfastai.
APP_ENV
No
development
Runtime environment. Use production for deployed apps.
DEBUG
No
true
Enables verbose error responses. Set to false in production.
FRONTEND_URL
No
http://localhost:3000
Base URL of your Next.js frontend. Used to build email links.
BACKEND_URL
No
http://localhost:8000
Base URL of your FastAPI backend. Used to build OAuth redirect URIs.
Connection URL for Redis. Used for caching and rate limiting. Docker Compose starts Redis automatically.
Rate limiting
Variable
Required
Example
Description
RATE_LIMIT_REQUESTS
No
100
Maximum number of requests allowed per window. Defaults to 100.
RATE_LIMIT_WINDOW
No
60
Duration of the rate limit window in seconds. Defaults to 60.
Frontend (Next.js)
These variables are prefixed with NEXT_PUBLIC_ and are bundled into the browser at build time.
Variable
Required
Example
Description
NEXT_PUBLIC_API_URL
No
http://localhost:8000
Base URL of the backend API, used by the frontend to make requests.
NEXT_PUBLIC_STRIPE_PRICE_ID_MONTHLY
No
price_xxx
Stripe monthly price ID exposed to the frontend for checkout.
NEXT_PUBLIC_STRIPE_PRICE_ID_YEARLY
No
price_xxx
Stripe yearly price ID exposed to the frontend for checkout.
Complete .env.example
The following is the full .env.example from the basic product tier. Copy it to .env and replace placeholder values with your own.
.env
# ============================================================# Shipfastai Environment Configuration# ============================================================# Copy this file to .env and fill in your values# ============================================================# ApplicationAPP_NAME=ShipfastaiAPP_ENV=developmentDEBUG=trueFRONTEND_URL=http://localhost:3000BACKEND_URL=http://localhost:8000# DatabaseDATABASE_URL=postgresql://postgres:postgres@localhost:5432/ShipfastaiDATABASE_POOL_SIZE=5DATABASE_MAX_OVERFLOW=10# JWT AuthenticationJWT_SECRET=your-super-secret-jwt-key-change-in-productionJWT_ALGORITHM=HS256JWT_ACCESS_TOKEN_EXPIRE_MINUTES=30JWT_REFRESH_TOKEN_EXPIRE_DAYS=7# Token expiryVERIFICATION_TOKEN_EXPIRE_HOURS=24PASSWORD_RESET_TOKEN_EXPIRE_HOURS=1# OAuth - GoogleGOOGLE_CLIENT_ID=GOOGLE_CLIENT_SECRET=# OAuth - GitHubGITHUB_CLIENT_ID=GITHUB_CLIENT_SECRET=# StripeSTRIPE_SECRET_KEY=sk_test_xxxSTRIPE_PUBLISHABLE_KEY=pk_test_xxxSTRIPE_WEBHOOK_SECRET=whsec_xxxSTRIPE_PRICE_ID_MONTHLY=price_xxxSTRIPE_PRICE_ID_YEARLY=price_xxx# Email (Resend)RESEND_API_KEY=FROM_EMAIL=noreply@yourdomain.com# Redis (optional, for caching)REDIS_URL=redis://localhost:6379# Sentry (optional, for error tracking)SENTRY_DSN=# Rate LimitingRATE_LIMIT_REQUESTS=100RATE_LIMIT_WINDOW=60# CORSCORS_ORIGINS=http://localhost:3000# LoggingLOG_LEVEL=INFOLOG_FORMAT=text# Frontend env vars (Next.js)NEXT_PUBLIC_API_URL=http://localhost:8000NEXT_PUBLIC_STRIPE_PRICE_ID_MONTHLY=price_xxxNEXT_PUBLIC_STRIPE_PRICE_ID_YEARLY=price_xxx
⌘I
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"Shipfastai","colors":{"primary":"#5785cf","light":"#7fa3dd","dark":"#2a58a3"},"favicon":"https://media.brand.dev/fcbf306f-1fdb-4c12-bf5e-7507b54c9150.png","navbar":{"primary":{"type":"github","href":"https://github.com/alphaoumardev/shipfastai"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"pinorion","hasAudioNarration":false,"actualSubdomain":"pinorion","customDomains":["docs.shipfastai.dev"],"gitSource":{"type":"github","owner":"mintlify-community","repo":"docs-pinorion-3f73a7d5","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae95496e1186677be43ccac:success","clientVersion":"0.0.4167","searchFilterCounts":[{"language":"default","tag":"Documentation","count":18},{"language":"default","tag":"API Reference","count":11},{"language":"default","tag":"Endpoints","count":9},{"language":"default","tag":"Core Features","count":5},{"language":"default","tag":"Configuration","count":4},{"language":"default","tag":"Deployment","count":3},{"language":"default","tag":"Guides","count":3},{"language":"default","tag":"Get Started","count":3},{"language":"default","tag":"Overview","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"configuration/environment-variables","slug":"/configuration/environment-variables","pageMetadata":{"title":"Environment variables reference for Shipfastai","description":"Reference for every Shipfastai environment variable: app settings, database, JWT auth, Stripe billing, email, OAuth providers, Redis, and rate limiting.","sidebarTitle":"Env Variables","href":"/configuration/environment-variables"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Reference for every Shipfastai environment variable: app settings, database, JWT auth, Stripe billing, email, OAuth providers, Redis, and rate limiting.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,CodeBlock,Heading,Table}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Shipfastai reads all configuration from a `,_jsx(_components.code,{children:`.env`}),` file at the root of your product directory. Copy `,_jsx(_components.code,{children:`.env.example`}),` to `,_jsx(_components.code,{children:`.env`}),` and fill in your values before starting the application. Variables marked as required must be set or the backend will refuse to start.`]}),`\n`,_jsxs(AccordionGroup,{children:[_jsx(Accordion,{title:`Application`,id:`application`,children:_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Variable`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Example`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`APP_NAME`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Shipfastai`})}),_jsxs(_components.td,{children:[`Display name used in logs and emails. Defaults to `,_jsx(_components.code,{children:`Shipfastai`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`APP_ENV`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`development`})}),_jsxs(_components.td,{children:[`Runtime environment. Use `,_jsx(_components.code,{children:`production`}),` for deployed apps.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`DEBUG`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`true`})}),_jsxs(_components.td,{children:[`Enables verbose error responses. Set to `,_jsx(_components.code,{children:`false`}),` in production.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FRONTEND_URL`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`http://localhost:3000`})}),_jsx(_components.td,{children:`Base URL of your Next.js frontend. Used to build email links.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`BACKEND_URL`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`http://localhost:8000`})}),_jsx(_components.td,{children:`Base URL of your FastAPI backend. Used to build OAuth redirect URIs.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`CORS_ORIGINS`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`http://localhost:3000`})}),_jsx(_components.td,{children:`Comma-separated list of allowed origins for CORS.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`LOG_LEVEL`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`INFO`})}),_jsxs(_components.td,{children:[`Logging level: `,_jsx(_components.code,{children:`DEBUG`}),`, `,_jsx(_components.code,{children:`INFO`}),`, `,_jsx(_components.code,{children:`WARNING`}),`, `,_jsx(_components.code,{children:`ERROR`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`LOG_FORMAT`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`text`})}),_jsxs(_components.td,{children:[`Log format: `,_jsx(_components.code,{children:`text`}),` or `,_jsx(_components.code,{children:`json`}),`.`]})]})]})]})}),_jsx(Accordion,{title:`Database`,id:`database`,children:_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Variable`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Example`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`DATABASE_URL`})}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`postgresql://postgres:postgres@localhost:5432/Shipfastai`})}),_jsx(_components.td,{children:`Full PostgreSQL connection string.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`DATABASE_POOL_SIZE`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`5`})}),_jsxs(_components.td,{children:[`Number of persistent connections kept open. Defaults to `,_jsx(_components.code,{children:`5`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`DATABASE_MAX_OVERFLOW`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`10`})}),_jsxs(_components.td,{children:[`Extra connections allowed beyond `,_jsx(_components.code,{children:`DATABASE_POOL_SIZE`}),`. Defaults to `,_jsx(_components.code,{children:`10`}),`.`]})]})]})]})}),_jsx(Accordion,{title:`Authentication`,id:`authentication`,children:_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Variable`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Example`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`JWT_SECRET`})}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`your-super-secret-key`})}),_jsx(_components.td,{children:`Secret key used to sign JWT tokens. Use a long random string in production.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`JWT_ALGORITHM`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`HS256`})}),_jsxs(_components.td,{children:[`Signing algorithm for JWT. Defaults to `,_jsx(_components.code,{children:`HS256`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`JWT_ACCESS_TOKEN_EXPIRE_MINUTES`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`30`})}),_jsxs(_components.td,{children:[`Lifetime of an access token in minutes. Defaults to `,_jsx(_components.code,{children:`30`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`JWT_REFRESH_TOKEN_EXPIRE_DAYS`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`7`})}),_jsxs(_components.td,{children:[`Lifetime of a refresh token in days. Defaults to `,_jsx(_components.code,{children:`7`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`VERIFICATION_TOKEN_EXPIRE_HOURS`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`24`})}),_jsxs(_components.td,{children:[`How long an email verification link stays valid. Defaults to `,_jsx(_components.code,{children:`24`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PASSWORD_RESET_TOKEN_EXPIRE_HOURS`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`1`})}),_jsxs(_components.td,{children:[`How long a password reset link stays valid. Defaults to `,_jsx(_components.code,{children:`1`}),`.`]})]})]})]})}),_jsx(Accordion,{title:`Stripe`,id:`stripe`,children:_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Variable`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Example`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`STRIPE_SECRET_KEY`})}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`sk_test_xxx`})}),_jsxs(_components.td,{children:[`Your Stripe secret key. Use `,_jsx(_components.code,{children:`sk_test_`}),` keys during development.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`STRIPE_PUBLISHABLE_KEY`})}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`pk_test_xxx`})}),_jsx(_components.td,{children:`Your Stripe publishable key. Sent to the frontend.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`STRIPE_WEBHOOK_SECRET`})}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`whsec_xxx`})}),_jsx(_components.td,{children:`Signing secret for verifying incoming Stripe webhook events.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`STRIPE_PRICE_ID_MONTHLY`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`price_xxx`})}),_jsx(_components.td,{children:`Stripe price ID for your monthly subscription plan.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`STRIPE_PRICE_ID_YEARLY`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`price_xxx`})}),_jsx(_components.td,{children:`Stripe price ID for your yearly subscription plan.`})]})]})]})}),_jsx(Accordion,{title:`Email`,id:`email`,children:_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Variable`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Example`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`RESEND_API_KEY`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`re_xxx`})}),_jsx(_components.td,{children:`API key from Resend. If omitted, email sending is disabled and a warning is logged.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FROM_EMAIL`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`noreply@yourdomain.com`})}),_jsx(_components.td,{children:`Sender address for all transactional emails.`})]})]})]})}),_jsx(Accordion,{title:`OAuth`,id:`oauth`,children:_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Variable`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Example`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GOOGLE_CLIENT_ID`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`1234567890.apps.googleusercontent.com`})}),_jsx(_components.td,{children:`Google OAuth client ID. Leave empty to disable Google login.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GOOGLE_CLIENT_SECRET`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`GOCSPX-xxx`})}),_jsx(_components.td,{children:`Google OAuth client secret.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GITHUB_CLIENT_ID`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Ov23liXXXXXX`})}),_jsx(_components.td,{children:`GitHub OAuth App client ID. Leave empty to disable GitHub login.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GITHUB_CLIENT_SECRET`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`abc123xxx`})}),_jsx(_components.td,{children:`GitHub OAuth App client secret.`})]})]})]})}),_jsx(Accordion,{title:`Redis`,id:`redis`,children:_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Variable`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Example`}),_jsx(_components.th,{children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`REDIS_URL`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`redis://localhost:6379`})}),_jsx(_components.td,{children:`Connection URL for Redis. Used for caching and rate limiting. Docker Compose starts Redis automatically.`})]})})]})}),_jsx(Accordion,{title:`Rate limiting`,id:`rate-limiting`,children:_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Variable`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Example`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`RATE_LIMIT_REQUESTS`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`100`})}),_jsxs(_components.td,{children:[`Maximum number of requests allowed per window. Defaults to `,_jsx(_components.code,{children:`100`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`RATE_LIMIT_WINDOW`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`60`})}),_jsxs(_components.td,{children:[`Duration of the rate limit window in seconds. Defaults to `,_jsx(_components.code,{children:`60`}),`.`]})]})]})]})}),_jsxs(Accordion,{title:`Frontend (Next.js)`,id:`frontend-next-js`,children:[_jsxs(_components.p,{children:[`These variables are prefixed with `,_jsx(_components.code,{children:`NEXT_PUBLIC_`}),` and are bundled into the browser at build time.`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Variable`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Example`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`NEXT_PUBLIC_API_URL`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`http://localhost:8000`})}),_jsx(_components.td,{children:`Base URL of the backend API, used by the frontend to make requests.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`NEXT_PUBLIC_STRIPE_PRICE_ID_MONTHLY`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`price_xxx`})}),_jsx(_components.td,{children:`Stripe monthly price ID exposed to the frontend for checkout.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`NEXT_PUBLIC_STRIPE_PRICE_ID_YEARLY`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`price_xxx`})}),_jsx(_components.td,{children:`Stripe yearly price ID exposed to the frontend for checkout.`})]})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`complete-env-example`,children:`Complete .env.example`}),`\n`,_jsxs(_components.p,{children:[`The following is the full `,_jsx(_components.code,{children:`.env.example`}),` from the basic product tier. Copy it to `,_jsx(_components.code,{children:`.env`}),` and replace placeholder values with your own.`]}),`\n`,_jsx(CodeBlock,{filename:`.env`,numberOfLines:`68`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`68`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# ============================================================`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Shipfastai Environment Configuration`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# ============================================================`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Copy this file to .env and fill in your values`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# ============================================================`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Application`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`APP_NAME=Shipfastai`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`APP_ENV=development`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`DEBUG=true`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`FRONTEND_URL=http://localhost:3000`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`BACKEND_URL=http://localhost:8000`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Database`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`DATABASE_URL=postgresql://postgres:postgres@localhost:5432/Shipfastai`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`DATABASE_POOL_SIZE=5`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`DATABASE_MAX_OVERFLOW=10`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# JWT Authentication`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`JWT_SECRET=your-super-secret-jwt-key-change-`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`-production`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`JWT_ALGORITHM=HS256`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`JWT_ACCESS_TOKEN_EXPIRE_MINUTES=30`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`JWT_REFRESH_TOKEN_EXPIRE_DAYS=7`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Token expiry`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`VERIFICATION_TOKEN_EXPIRE_HOURS=24`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`PASSWORD_RESET_TOKEN_EXPIRE_HOURS=1`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# OAuth - Google`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`GOOGLE_CLIENT_ID=`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`GOOGLE_CLIENT_SECRET=`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# OAuth - GitHub`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`GITHUB_CLIENT_ID=`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`GITHUB_CLIENT_SECRET=`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Stripe`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`STRIPE_SECRET_KEY=sk_test_xxx`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`STRIPE_PUBLISHABLE_KEY=pk_test_xxx`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`STRIPE_WEBHOOK_SECRET=whsec_xxx`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`STRIPE_PRICE_ID_MONTHLY=price_xxx`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`STRIPE_PRICE_ID_YEARLY=price_xxx`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Email (Resend)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`RESEND_API_KEY=`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`FROM_EMAIL=noreply@yourdomain.com`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Redis (optional, for caching)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`REDIS_URL=redis://localhost:6379`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Sentry (optional, for error tracking)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`SENTRY_DSN=`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Rate Limiting`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`RATE_LIMIT_REQUESTS=100`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`RATE_LIMIT_WINDOW=60`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# CORS`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`CORS_ORIGINS=http://localhost:3000`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Logging`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`LOG_LEVEL=INFO`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`LOG_FORMAT=text`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Frontend env vars (Next.js)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`NEXT_PUBLIC_API_URL=http://localhost:8000`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`NEXT_PUBLIC_STRIPE_PRICE_ID_MONTHLY=price_xxx`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`NEXT_PUBLIC_STRIPE_PRICE_ID_YEARLY=price_xxx`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Environment variables reference for Shipfastai","description":"Reference for every Shipfastai environment variable: app settings, database, JWT auth, Stripe billing, email, OAuth providers, Redis, and rate limiting.","sidebarTitle":"Env Variables","href":"/configuration/environment-variables"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Complete .env.example","slug":"complete-env-example","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"pinorion","siteName":"Shipfastai","title":"Environment variables reference for Shipfastai - Shipfastai","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-04-09T21:45:42.475Z","originalFileLocation":"configuration/environment-variables.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Reference for every Shipfastai environment variable: app settings, database, JWT auth, Stripe billing, email, OAuth providers, Redis, and rate limiting.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Shipfastai\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://media.brand.dev/fcbf306f-1fdb-4c12-bf5e-7507b54c9150.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://media.brand.dev/fcbf306f-1fdb-4c12-bf5e-7507b54c9150.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://media.brand.dev/fcbf306f-1fdb-4c12-bf5e-7507b54c9150.png\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/png\" href=\"https://media.brand.dev/fcbf306f-1fdb-4c12-bf5e-7507b54c9150.png\">\u003cmeta data-mint-head property=\"og:title\" content=\"Environment variables reference for Shipfastai - Shipfastai\">\u003cmeta data-mint-head property=\"og:description\" content=\"Reference for every Shipfastai environment variable: app settings, database, JWT auth, Stripe billing, email, OAuth providers, Redis, and rate limiting.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Shipfastai\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.shipfastai.dev/configuration/environment-variables\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://pinorion.mintlify.site/_mintlify/api/og/v2?division=Configuration\u0026amp;title=Environment+variables+reference+for+Shipfastai\u0026amp;description=Reference+for+every+Shipfastai+environment+variable%3A+app+settings%2C+database%2C+JWT+auth%2C+Stripe+billing%2C+email%2C+OAuth+providers%2C+Redis%2C+and+rate+limiting.\u0026amp;theme=4910ad3d90c1cbe1b70833c5\u0026amp;signature=8d07d1da56daa108fcf6003cbd276d5a6d78740216f6149f82f03609710efe7b\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Environment variables reference for Shipfastai - Shipfastai\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Reference for every Shipfastai environment variable: app settings, database, JWT auth, Stripe billing, email, OAuth providers, Redis, and rate limiting.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://pinorion.mintlify.site/_mintlify/api/og/v2?division=Configuration\u0026amp;title=Environment+variables+reference+for+Shipfastai\u0026amp;description=Reference+for+every+Shipfastai+environment+variable%3A+app+settings%2C+database%2C+JWT+auth%2C+Stripe+billing%2C+email%2C+OAuth+providers%2C+Redis%2C+and+rate+limiting.\u0026amp;theme=4910ad3d90c1cbe1b70833c5\u0026amp;signature=8d07d1da56daa108fcf6003cbd276d5a6d78740216f6149f82f03609710efe7b\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/pinorion/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Shipfastai\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5785cf\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.shipfastai.dev/configuration/environment-variables\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/configuration/environment-variables.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.shipfastai.dev/#organization\",\"name\":\"Shipfastai\",\"url\":\"https://docs.shipfastai.dev\"},{\"@type\":\"WebSite\",\"@id\":\"https://docs.shipfastai.dev#website\",\"name\":\"Shipfastai\",\"url\":\"https://docs.shipfastai.dev\",\"publisher\":{\"@id\":\"https://docs.shipfastai.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.shipfastai.dev/configuration/environment-variables#webpage\",\"url\":\"https://docs.shipfastai.dev/configuration/environment-variables\",\"name\":\"Environment variables reference for Shipfastai\",\"description\":\"Reference for every Shipfastai environment variable: app settings, database, JWT auth, Stripe billing, email, OAuth providers, Redis, and rate limiting.\",\"dateModified\":\"2026-04-09T21:45:42.475Z\",\"isPartOf\":{\"@id\":\"https://docs.shipfastai.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.shipfastai.dev/configuration/environment-variables#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.shipfastai.dev/configuration/environment-variables#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Shipfastai\",\"item\":\"https://docs.shipfastai.dev\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Environment variables reference for Shipfastai\",\"item\":\"https://docs.shipfastai.dev/configuration/environment-variables\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.shipfastai.dev/configuration/environment-variables#article\",\"headline\":\"Environment variables reference for Shipfastai\",\"name\":\"Environment variables reference for Shipfastai\",\"description\":\"Reference for every Shipfastai environment variable: app settings, database, JWT auth, Stripe billing, email, OAuth providers, Redis, and rate limiting.\",\"url\":\"https://docs.shipfastai.dev/configuration/environment-variables\",\"mainEntityOfPage\":{\"@id\":\"https://docs.shipfastai.dev/configuration/environment-variables#webpage\"},\"dateModified\":\"2026-04-09T21:45:42.475Z\",\"publisher\":{\"@id\":\"https://docs.shipfastai.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.shipfastai.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Shipfastai\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Shipfastai\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/configuration/environment-variables.md","siteName":"Shipfastai","nav":{"global":null,"tabs":[{"tab":"Documentation","groups":[{"group":"Get Started","pages":[{"title":"What is Shipfastai? Plans, stack, and prerequisites","sidebarTitle":"Introduction","href":"/introduction"},{"title":"Get started with Shipfastai in minutes","sidebarTitle":"Quick Start","href":"/quickstart"},{"title":"Project structure and codebase overview","sidebarTitle":"Project Structure","href":"/project-structure"}]},{"group":"Core Features","pages":[{"title":"Authentication with JWT and OAuth providers","sidebarTitle":"Authentication","href":"/features/authentication"},{"title":"Stripe billing, subscriptions, and payments","sidebarTitle":"Stripe Billing","href":"/features/stripe-billing"},{"title":"LLM chat and AI completions with multiple providers","sidebarTitle":"AI \u0026 LLM","href":"/features/ai-llm"},{"title":"RAG pipeline: document ingestion and retrieval","sidebarTitle":"RAG Pipeline","href":"/features/rag-pipeline"},{"title":"Multi-tenancy and tenant isolation","description":"Run isolated workspaces for multiple customers on a single deployment using PostgreSQL schema separation, RBAC, and per-tenant configuration.","sidebarTitle":"Multi-Tenancy","href":"/features/multi-tenancy"}]},{"group":"Configuration","pages":[{"title":"Environment variables reference for Shipfastai","sidebarTitle":"Env Variables","href":"/configuration/environment-variables"},{"title":"Database setup and connection configuration","description":"Configure PostgreSQL with SQLAlchemy, tune connection pooling, and run Alembic migrations for your Shipfastai app locally and in production.","sidebarTitle":"Database","href":"/configuration/database"},{"title":"Email configuration with Resend and Brevo","sidebarTitle":"Email","href":"/configuration/email"},{"title":"Get started with Shipfastai in minutes","sidebarTitle":"Quick Start","href":"/configuration/oauth"}]},{"group":"Deployment","pages":[{"title":"Docker and Docker Compose local development setup","sidebarTitle":"Docker","href":"/deployment/docker"},{"title":"Deploy Shipfastai to Railway and Vercel","sidebarTitle":"Railway \u0026 Vercel","href":"/deployment/railway-vercel"},{"title":"Deploy Shipfastai to AWS with Terraform","sidebarTitle":"AWS \u0026 Terraform","href":"/deployment/aws-terraform"}]},{"group":"Guides","pages":[{"title":"Add a new LLM provider to your AI app","sidebarTitle":"Add LLM Provider","href":"/guides/adding-llm-provider"},{"title":"Customize the Shipfastai frontend and branding","sidebarTitle":"Customize UI","href":"/guides/customizing-ui"},{"title":"Fine-tune a custom LLM with QLoRA","sidebarTitle":"Fine-Tuning","href":"/guides/fine-tuning"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/overview"}]}]},"basePath":"","title":"Environment variables reference for Shipfastai - Shipfastai","buildId":"dpl_9RFrWkXdFTJCytfx6jAofvAaEXr6","deploymentId":"dpl_9RFrWkXdFTJCytfx6jAofvAaEXr6","dynamics":[],"chunks":[]}