Environment variables are the recommended way to configure Flexprice. All environment variables are prefixed with FLEXPRICE_. Here’s a comprehensive list of available variables:
When using Docker Compose, you can specify environment variables in your docker-compose.yml file or use the .env file directly.
Configuration File
For more complex configurations, you can use a YAML configuration file. By default, Flexprice looks for a file named config.yaml in the internal/config directory:
Environment variables take precedence over configuration file settings. If an environment variable is set, it will override the corresponding value in the configuration file.
Production Best Practices
When configuring Flexprice for production, follow these best practices:
Security
Use strong, unique passwords for all database users
Enable SSL/TLS for all external connections
Set up a firewall to restrict access to your servers
Use a secure API key for authentication
Rotate secrets regularly to maintain security
Performance
Allocate sufficient resources to each component based on your expected load
Monitor resource usage and scale as needed
Configure appropriate Kafka settings for your message volume
Adjust database connection pools based on your workload
High Availability
Set up database replication for PostgreSQL and ClickHouse
Deploy multiple API server instances behind a load balancer
Configure Kafka with multiple brokers in a cluster
Implement automated backups for all data stores
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Flexprice","colors":{"primary":"#15547c","light":"#2580b5","dark":"#134a6b"},"logo":{"light":"https://mintcdn.com/flexprice/Qokjirde4CQUcFy8/images/FlexpriceWordMarkDark.png?fit=max\u0026auto=format\u0026n=Qokjirde4CQUcFy8\u0026q=85\u0026s=d706a1b6139418c2d57ba902fb0b6de4","dark":"https://mintcdn.com/flexprice/Qokjirde4CQUcFy8/images/FlexpriceWordMarkLight.png?fit=max\u0026auto=format\u0026n=Qokjirde4CQUcFy8\u0026q=85\u0026s=3fe3d9881552f4ebecb6f6aa7cfe2f66"},"favicon":"https://mintcdn.com/flexprice/Qokjirde4CQUcFy8/doc.png?fit=max\u0026auto=format\u0026n=Qokjirde4CQUcFy8\u0026q=85\u0026s=7e9ab0952b828b96d03f9298571462a4","api":{"examples":{"languages":["curl","python","typescript","go"]}},"background":{"decoration":"gradient","color":{"light":"#fffdf8","dark":"#010b13"}},"navbar":{"links":[],"primary":{"type":"button","label":"Dashboard","href":"https://admin.flexprice.io/"}},"footer":{"socials":{"github":"https://github.com/flexprice/flexprice","linkedin":"https://www.linkedin.com/company/flexpriceio","website":"https://flexprice.io/","x":"https://x.com/tryflexprice"}},"fonts":{"family":"Geist"},"integrations":{"ga4":{"measurementId":"G-9RV8NDCXNN"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Support","icon":"https://mintlify.s3.us-west-1.amazonaws.com/flexprice/images/anchors/mail.svg","href":"mailto:support@flexprice.io"},{"anchor":"Community","icon":"https://mintlify.s3.us-west-1.amazonaws.com/flexprice/images/anchors/slack.svg","href":"https://join.slack.com/t/flexpricecommunity/shared_invite/zt-39uat51l0-n8JmSikHZP~bHJNXladeaQ"},{"anchor":"Website","icon":"https://mintlify.s3.us-west-1.amazonaws.com/flexprice/images/anchors/flexprice.svg","href":"https://flexprice.io/"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"flexprice","hasAudioNarration":false,"actualSubdomain":"flexprice","customDomains":["docs.flexprice.io"],"gitSource":{"type":"github","owner":"flexprice","repo":"flexprice-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":false,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6af771e9195cfae46de4ccaf","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"default","tag":"API Reference","count":339},{"language":"default","tag":"Resources","count":336},{"language":"default","tag":"Developers","count":152},{"language":"default","tag":"Documentation","count":127},{"language":"default","tag":"Integrations","count":108},{"language":"default","tag":"Webhook Events","count":72},{"language":"default","tag":"Subscriptions","count":47},{"language":"default","tag":"CLI","count":38},{"language":"default","tag":"Command reference","count":34},{"language":"default","tag":"Customers","count":25}]},"assistantConfig":{"enableStarterQuestions":false,"deflection":{"enabled":true,"email":"support@flexprice.io","showHelpButton":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}],"privacy":{"consentBanner":{"enabled":false}},"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":"/* latin-ext */\n@font-face {\n font-family: 'DM Sans';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/dmsans/v17/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6h9Q.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'DM Sans';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/dmsans/v17/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K4.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* latin-ext */\n@font-face {\n font-family: 'DM Sans';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/dmsans/v17/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6h9Q.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'DM Sans';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/dmsans/v17/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K4.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* latin-ext */\n@font-face {\n font-family: 'DM Sans';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/dmsans/v17/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6h9Q.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'DM Sans';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/dmsans/v17/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K4.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* latin-ext */\n@font-face {\n font-family: 'DM Sans';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/dmsans/v17/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6h9Q.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'DM Sans';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/dmsans/v17/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K4.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\nh1{font-family:'DM Sans', sans-serif;font-weight:700!important;letter-spacing:-0.01em!important}.title,[data-title],.page-title,.section-title{font-family:'DM Sans', sans-serif;font-weight:400;letter-spacing:0.025em!important}.nav-logo{height:22px}[class*=\"nav\"] a[href*=\"admin.flexprice.io\"],[class*=\"Navbar\"] a[href*=\"admin.flexprice.io\"]{background-color:#134a6b!important;color:#ffffff!important;font-weight:500;border-radius:6px;padding:0.5rem 1rem}[class*=\"nav\"] a[href*=\"admin.flexprice.io\"]:hover,[class*=\"Navbar\"] a[href*=\"admin.flexprice.io\"]:hover{background-color:#0d3d5c!important;color:#ffffff!important}.content-area,.\\32xl\\:max-w-2xl{max-width:50rem!important}.nav-anchor:hover>div{background-color:rgba(21, 84, 124, 0.08)!important}.dark .nav-anchor:hover>div{background-color:rgba(255, 255, 255, 0.08)!important}.nav-anchor img{background-color:transparent!important}.dark .nav-anchor img[src*=\"anchors/flexprice\"]{filter:brightness(0) invert(1)}"}],"page":{"pagePath":"docs/getting-started/configuration","slug":"/docs/getting-started/configuration","pageMetadata":{"title":"Configuration","description":"Configure your self-hosted Flexprice instance","href":"/docs/getting-started/configuration"},"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: \"Configure your self-hosted Flexprice instance\"\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`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`configuration-methods`,children:`Configuration Methods`}),`\n`,_jsx(_components.p,{children:`Flexprice can be configured using:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Environment variables (recommended)`}),`\n`,_jsx(_components.li,{children:`Configuration files`}),`\n`,_jsx(_components.li,{children:`Command-line arguments (for specific overrides)`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`environment-variables`,children:`Environment Variables`}),`\n`,_jsxs(_components.p,{children:[`Environment variables are the recommended way to configure Flexprice. All environment variables are prefixed with `,_jsx(_components.code,{children:`FLEXPRICE_`}),`. Here’s a comprehensive list of available variables:`]}),`\n`,_jsx(Heading,{level:`3`,id:`deployment-configuration`,children:`Deployment Configuration`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Variable`}),_jsx(_components.th,{children:`Description`}),_jsx(_components.th,{children:`Default`}),_jsx(_components.th,{children:`Required`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_DEPLOYMENT_MODE`})}),_jsx(_components.td,{children:`Deployment mode (local, api, consumer, temporal_worker, aws_lambda_api, aws_lambda_consumer)`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`local`})}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_SERVER_ADDRESS`})}),_jsx(_components.td,{children:`Server address and port`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`:8080`})}),_jsx(_components.td,{children:`No`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`authentication-configuration`,children:`Authentication Configuration`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Variable`}),_jsx(_components.th,{children:`Description`}),_jsx(_components.th,{children:`Default`}),_jsx(_components.th,{children:`Required`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_AUTH_PROVIDER`})}),_jsx(_components.td,{children:`Authentication provider (flexprice, supabase)`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`flexprice`})}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_AUTH_SECRET`})}),_jsx(_components.td,{children:`Secret key for authentication`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`-`}),_jsx(_components.td,{children:`Yes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_AUTH_SUPABASE_BASE_URL`})}),_jsx(_components.td,{children:`Supabase base URL (if using Supabase auth)`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`-`}),_jsx(_components.td,{children:`Only if using Supabase`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_AUTH_SUPABASE_SERVICE_KEY`})}),_jsx(_components.td,{children:`Supabase service key`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`-`}),_jsx(_components.td,{children:`Only if using Supabase`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_AUTH_API_KEY_HEADER`})}),_jsx(_components.td,{children:`Header name for API key authentication`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`x-api-key`})}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_AUTH_API_KEY_KEYS`})}),_jsx(_components.td,{children:`JSON string of API keys configuration`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`-`}),_jsx(_components.td,{children:`No`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`database-configuration`,children:`Database Configuration`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Variable`}),_jsx(_components.th,{children:`Description`}),_jsx(_components.th,{children:`Default`}),_jsx(_components.th,{children:`Required`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_POSTGRES_HOST`})}),_jsx(_components.td,{children:`PostgreSQL host`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`localhost`})}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_POSTGRES_PORT`})}),_jsx(_components.td,{children:`PostgreSQL port`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`5432`})}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_POSTGRES_USER`})}),_jsx(_components.td,{children:`PostgreSQL username`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`flexprice`})}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_POSTGRES_PASSWORD`})}),_jsx(_components.td,{children:`PostgreSQL password`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`flexprice123`})}),_jsx(_components.td,{children:`Yes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_POSTGRES_DBNAME`})}),_jsx(_components.td,{children:`PostgreSQL database name`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`flexprice`})}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_POSTGRES_SSLMODE`})}),_jsx(_components.td,{children:`PostgreSQL SSL mode (disable, require)`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`disable`})}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_POSTGRES_AUTO_MIGRATE`})}),_jsx(_components.td,{children:`Automatically run migrations on startup`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsx(_components.td,{children:`No`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`clickhouse-configuration`,children:`ClickHouse Configuration`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Variable`}),_jsx(_components.th,{children:`Description`}),_jsx(_components.th,{children:`Default`}),_jsx(_components.th,{children:`Required`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_CLICKHOUSE_ADDRESS`})}),_jsx(_components.td,{children:`ClickHouse address (host:port)`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`localhost:9000`})}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_CLICKHOUSE_TLS`})}),_jsx(_components.td,{children:`Use TLS for ClickHouse connection`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_CLICKHOUSE_USERNAME`})}),_jsx(_components.td,{children:`ClickHouse username`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`flexprice`})}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_CLICKHOUSE_PASSWORD`})}),_jsx(_components.td,{children:`ClickHouse password`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`flexprice123`})}),_jsx(_components.td,{children:`Yes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_CLICKHOUSE_DATABASE`})}),_jsx(_components.td,{children:`ClickHouse database name`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`flexprice`})}),_jsx(_components.td,{children:`No`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`kafka-configuration`,children:`Kafka Configuration`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Variable`}),_jsx(_components.th,{children:`Description`}),_jsx(_components.th,{children:`Default`}),_jsx(_components.th,{children:`Required`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_KAFKA_BROKERS`})}),_jsx(_components.td,{children:`Kafka brokers (comma-separated)`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`localhost:29092`})}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_KAFKA_CONSUMER_GROUP`})}),_jsx(_components.td,{children:`Kafka consumer group ID`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`flexprice-consumer-local`})}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_KAFKA_TOPIC`})}),_jsx(_components.td,{children:`Kafka topic for events`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`events`})}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_KAFKA_USE_SASL`})}),_jsx(_components.td,{children:`Use SASL authentication for Kafka`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_KAFKA_SASL_MECHANISM`})}),_jsx(_components.td,{children:`SASL mechanism (PLAIN, SCRAM-SHA-256, etc.)`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`-`}),_jsx(_components.td,{children:`Only if SASL is enabled`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_KAFKA_SASL_USER`})}),_jsx(_components.td,{children:`SASL username`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`-`}),_jsx(_components.td,{children:`Only if SASL is enabled`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_KAFKA_SASL_PASSWORD`})}),_jsx(_components.td,{children:`SASL password`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`-`}),_jsx(_components.td,{children:`Only if SASL is enabled`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_KAFKA_CLIENT_ID`})}),_jsx(_components.td,{children:`Kafka client ID`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`flexprice-client-local`})}),_jsx(_components.td,{children:`No`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`temporal-configuration`,children:`Temporal Configuration`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Variable`}),_jsx(_components.th,{children:`Description`}),_jsx(_components.th,{children:`Default`}),_jsx(_components.th,{children:`Required`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_TEMPORAL_ADDRESS`})}),_jsx(_components.td,{children:`Temporal service address`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`localhost:7233`})}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_TEMPORAL_TLS`})}),_jsx(_components.td,{children:`Use TLS for Temporal connection`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_TEMPORAL_NAMESPACE`})}),_jsx(_components.td,{children:`Temporal namespace`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`default`})}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_TEMPORAL_TASK_QUEUE`})}),_jsx(_components.td,{children:`Temporal task queue`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`billing-task-queue`})}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_TEMPORAL_API_KEY`})}),_jsx(_components.td,{children:`Temporal API key`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`-`}),_jsx(_components.td,{children:`Only if using Temporal Cloud`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_TEMPORAL_API_KEY_NAME`})}),_jsx(_components.td,{children:`Temporal API key name`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`-`}),_jsx(_components.td,{children:`Only if using Temporal Cloud`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`logging-and-monitoring`,children:`Logging and Monitoring`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Variable`}),_jsx(_components.th,{children:`Description`}),_jsx(_components.th,{children:`Default`}),_jsx(_components.th,{children:`Required`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_LOGGING_LEVEL`})}),_jsx(_components.td,{children:`Logging level (debug, info, warn, error)`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`info`})}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_SENTRY_ENABLED`})}),_jsx(_components.td,{children:`Enable Sentry error reporting`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_SENTRY_DSN`})}),_jsx(_components.td,{children:`Sentry DSN`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`-`}),_jsx(_components.td,{children:`Only if Sentry is enabled`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_SENTRY_ENVIRONMENT`})}),_jsx(_components.td,{children:`Sentry environment`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`development`})}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_SENTRY_SAMPLE_RATE`})}),_jsx(_components.td,{children:`Sentry sampling rate (0.0-1.0)`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`1.0`})}),_jsx(_components.td,{children:`No`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`dynamodb-configuration`,children:`DynamoDB Configuration`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Variable`}),_jsx(_components.th,{children:`Description`}),_jsx(_components.th,{children:`Default`}),_jsx(_components.th,{children:`Required`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_DYNAMODB_IN_USE`})}),_jsx(_components.td,{children:`Use DynamoDB for event storage`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_DYNAMODB_REGION`})}),_jsx(_components.td,{children:`AWS region for DynamoDB`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`us-east-1`})}),_jsx(_components.td,{children:`Only if DynamoDB is enabled`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_DYNAMODB_EVENT_TABLE_NAME`})}),_jsx(_components.td,{children:`DynamoDB table name for events`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`events`})}),_jsx(_components.td,{children:`Only if DynamoDB is enabled`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`webhook-configuration`,children:`Webhook Configuration`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Variable`}),_jsx(_components.th,{children:`Description`}),_jsx(_components.th,{children:`Default`}),_jsx(_components.th,{children:`Required`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_WEBHOOK_MAX_RETRIES`})}),_jsx(_components.td,{children:`Maximum number of webhook retry attempts`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`3`})}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_WEBHOOK_INITIAL_INTERVAL`})}),_jsx(_components.td,{children:`Initial retry interval (e.g., 1s)`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`1s`})}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_WEBHOOK_MAX_INTERVAL`})}),_jsx(_components.td,{children:`Maximum retry interval (e.g., 10s)`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`10s`})}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_WEBHOOK_MULTIPLIER`})}),_jsx(_components.td,{children:`Backoff multiplier for retries`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`2.0`})}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_WEBHOOK_MAX_ELAPSED_TIME`})}),_jsx(_components.td,{children:`Maximum total retry time (e.g., 2m)`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`2m`})}),_jsx(_components.td,{children:`No`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`event-publishing`,children:`Event Publishing`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Variable`}),_jsx(_components.th,{children:`Description`}),_jsx(_components.th,{children:`Default`}),_jsx(_components.th,{children:`Required`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FLEXPRICE_EVENT_PUBLISH_DESTINATION`})}),_jsx(_components.td,{children:`Event publishing destination (kafka, dynamodb, all)`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`kafka`})}),_jsx(_components.td,{children:`No`})]})})]}),`\n`,_jsx(Heading,{level:`2`,id:`using-a-env-file`,children:`Using a .env File`}),`\n`,_jsxs(_components.p,{children:[`For local development, you can use a `,_jsx(_components.code,{children:`.env`}),` file to set environment variables. Create a file named `,_jsx(_components.code,{children:`.env`}),` in the root directory of your project:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`32`,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:`32`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Deployment Configuration`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`FLEXPRICE_DEPLOYMENT_MODE`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`local`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`FLEXPRICE_SERVER_ADDRESS`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\":8080\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Authentication Configuration`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`FLEXPRICE_AUTH_PROVIDER`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"flexprice\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`FLEXPRICE_AUTH_SECRET`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your_secure_secret_key\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`FLEXPRICE_AUTH_API_KEY_HEADER`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"x-api-key\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Database Configuration`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`FLEXPRICE_POSTGRES_HOST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`localhost`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`FLEXPRICE_POSTGRES_PORT`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`5432`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`FLEXPRICE_POSTGRES_USER`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`flexprice`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`FLEXPRICE_POSTGRES_PASSWORD`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`flexprice123`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`FLEXPRICE_POSTGRES_DBNAME`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`flexprice`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`FLEXPRICE_POSTGRES_SSLMODE`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`disable`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`FLEXPRICE_POSTGRES_AUTO_MIGRATE`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# ClickHouse Configuration`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`FLEXPRICE_CLICKHOUSE_ADDRESS`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`localhost:9000`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`FLEXPRICE_CLICKHOUSE_TLS`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`false`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`FLEXPRICE_CLICKHOUSE_USERNAME`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`flexprice`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`FLEXPRICE_CLICKHOUSE_PASSWORD`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`flexprice123`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`FLEXPRICE_CLICKHOUSE_DATABASE`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`flexprice`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Kafka Configuration`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`FLEXPRICE_KAFKA_BROKERS`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`localhost:29092`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`FLEXPRICE_KAFKA_CONSUMER_GROUP`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`flexprice-consumer-local`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`FLEXPRICE_KAFKA_TOPIC`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`events`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Logging Configuration`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`FLEXPRICE_LOGGING_LEVEL`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`debug`})]}),`\n`]})})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`When using Docker Compose, you can specify environment variables in your `,_jsx(_components.code,{children:`docker-compose.yml`}),` file or use the `,_jsx(_components.code,{children:`.env`}),` file directly.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`configuration-file`,children:`Configuration File`}),`\n`,_jsxs(_components.p,{children:[`For more complex configurations, you can use a YAML configuration file. By default, Flexprice looks for a file named `,_jsx(_components.code,{children:`config.yaml`}),` in the `,_jsx(_components.code,{children:`internal/config`}),` directory:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`52`,language:`yaml`,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:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`52`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`deployment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` mode`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"local\"`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # \"local\", \"docker\", \"production\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`server`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` address`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\":8080\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`auth`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` provider`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"flexprice\"`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # \"flexprice\" or \"supabase\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` secret`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your_secure_secret_key\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` supabase`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` base_url`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"http://localhost:54321\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` service_key`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003csupabase service key>\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` api_key`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` header`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"x-api-key\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` keys`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"your_api_key_hash\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` tenant_id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"00000000-0000-0000-0000-000000000000\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` user_id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"00000000-0000-0000-0000-000000000000\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Dev API Keys\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` is_active`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`kafka`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` brokers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"localhost:29092\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` consumer_group`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"flexprice-consumer-local\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` topic`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"events\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` use_sasl`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` sasl_mechanism`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` sasl_user`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` sasl_password`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` client_id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"flexprice-client-local\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`clickhouse`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` address`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"localhost:9000\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` tls`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` username`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"flexprice\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` password`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"flexprice123\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` database`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"flexprice\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`postgres`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` host`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"localhost\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` port`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5432`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` user`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"flexprice\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` password`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"flexprice123\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` dbname`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"flexprice\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` sslmode`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"disable\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` auto_migrate`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`temporal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` address`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"localhost:7233\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` tls`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` namespace`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"default\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` task_queue`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"billing-task-queue\"`})]}),`\n`]})})}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Environment variables take precedence over configuration file settings. If an environment variable is set, it will override the corresponding value in the configuration file.`})}),`\n`,_jsx(Heading,{level:`2`,id:`production-best-practices`,children:`Production Best Practices`}),`\n`,_jsx(_components.p,{children:`When configuring Flexprice for production, follow these best practices:`}),`\n`,_jsx(Heading,{level:`3`,id:`security`,children:`Security`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Use strong, unique passwords`}),` for all database users`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Enable SSL/TLS`}),` for all external connections`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Set up a firewall`}),` to restrict access to your servers`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Use a secure API key`}),` for authentication`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Rotate secrets regularly`}),` to maintain security`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`performance`,children:`Performance`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Allocate sufficient resources`}),` to each component based on your expected load`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Monitor resource usage`}),` and scale as needed`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Configure appropriate Kafka settings`}),` for your message volume`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Adjust database connection pools`}),` based on your workload`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`high-availability`,children:`High Availability`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Set up database replication`}),` for PostgreSQL and ClickHouse`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Deploy multiple API server instances`}),` behind a load balancer`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Configure Kafka with multiple brokers`}),` in a cluster`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Implement automated backups`}),` for all data stores`]}),`\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":"Configuration","description":"Configure your self-hosted Flexprice instance","href":"/docs/getting-started/configuration"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Configuration Methods","slug":"configuration-methods","depth":2,"children":[]},{"title":"Environment Variables","slug":"environment-variables","depth":2,"children":[{"title":"Deployment Configuration","slug":"deployment-configuration","depth":3,"children":[]},{"title":"Authentication Configuration","slug":"authentication-configuration","depth":3,"children":[]},{"title":"Database Configuration","slug":"database-configuration","depth":3,"children":[]},{"title":"ClickHouse Configuration","slug":"clickhouse-configuration","depth":3,"children":[]},{"title":"Kafka Configuration","slug":"kafka-configuration","depth":3,"children":[]},{"title":"Temporal Configuration","slug":"temporal-configuration","depth":3,"children":[]},{"title":"Logging and Monitoring","slug":"logging-and-monitoring","depth":3,"children":[]},{"title":"DynamoDB Configuration","slug":"dynamodb-configuration","depth":3,"children":[]},{"title":"Webhook Configuration","slug":"webhook-configuration","depth":3,"children":[]},{"title":"Event Publishing","slug":"event-publishing","depth":3,"children":[]}]},{"title":"Using a .env File","slug":"using-a-env-file","depth":2,"children":[]},{"title":"Configuration File","slug":"configuration-file","depth":2,"children":[]},{"title":"Production Best Practices","slug":"production-best-practices","depth":2,"children":[{"title":"Security","slug":"security","depth":3,"children":[]},{"title":"Performance","slug":"performance","depth":3,"children":[]},{"title":"High Availability","slug":"high-availability","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/flexprice/c6cd5bf06bcd0181/reo-tracking.js"],"subdomain":"flexprice","siteName":"Flexprice","title":"Configuration - Flexprice","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-27T15:50:40.512Z","originalFileLocation":"docs/getting-started/configuration.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=\"Configure your self-hosted Flexprice instance\">\u003cmeta data-mint-head name=\"application-name\" content=\"Flexprice\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/flexprice/7xM46OYu1enH2rig/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/flexprice/7xM46OYu1enH2rig/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/flexprice/7xM46OYu1enH2rig/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/flexprice/7xM46OYu1enH2rig/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/flexprice/7xM46OYu1enH2rig/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/flexprice/7xM46OYu1enH2rig/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/flexprice/7xM46OYu1enH2rig/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/flexprice/7xM46OYu1enH2rig/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/flexprice/7xM46OYu1enH2rig/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Configuration - Flexprice\">\u003cmeta data-mint-head property=\"og:description\" content=\"Configure your self-hosted Flexprice instance\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Flexprice\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.flexprice.io/docs/getting-started/configuration\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://flexprice.mintlify.site/_mintlify/api/og/v2?division=Self-hosting\u0026amp;title=Configuration\u0026amp;description=Configure+your+self-hosted+Flexprice+instance\u0026amp;theme=f807a64d2789751a0e0d2df7\u0026amp;signature=d91a2f1ed68da8f183d199074737dd940fcba1586a3e161b9901dc4350ee422f\">\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=\"Configuration - Flexprice\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Configure your self-hosted Flexprice instance\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://flexprice.mintlify.site/_mintlify/api/og/v2?division=Self-hosting\u0026amp;title=Configuration\u0026amp;description=Configure+your+self-hosted+Flexprice+instance\u0026amp;theme=f807a64d2789751a0e0d2df7\u0026amp;signature=d91a2f1ed68da8f183d199074737dd940fcba1586a3e161b9901dc4350ee422f\">\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=\"/mintlify-assets/_mintlify/favicons/flexprice/7xM46OYu1enH2rig/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Flexprice\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#15547c\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.flexprice.io/docs/getting-started/configuration\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/getting-started/configuration.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.flexprice.io/#organization\",\"name\":\"Flexprice\",\"url\":\"https://docs.flexprice.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/flexprice/Qokjirde4CQUcFy8/images/FlexpriceWordMarkDark.png?fit=max\u0026auto=format\u0026n=Qokjirde4CQUcFy8\u0026q=85\u0026s=d706a1b6139418c2d57ba902fb0b6de4\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.flexprice.io#website\",\"name\":\"Flexprice\",\"url\":\"https://docs.flexprice.io\",\"publisher\":{\"@id\":\"https://docs.flexprice.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.flexprice.io/docs/getting-started/configuration#webpage\",\"url\":\"https://docs.flexprice.io/docs/getting-started/configuration\",\"name\":\"Configuration\",\"description\":\"Configure your self-hosted Flexprice instance\",\"dateModified\":\"2026-01-27T15:50:40.512Z\",\"isPartOf\":{\"@id\":\"https://docs.flexprice.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.flexprice.io/docs/getting-started/configuration#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.flexprice.io/docs/getting-started/configuration#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Self-hosting\",\"item\":\"https://docs.flexprice.io/docs/getting-started/self-hosting-guide\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Configuration\",\"item\":\"https://docs.flexprice.io/docs/getting-started/configuration\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.flexprice.io/docs/getting-started/configuration#article\",\"headline\":\"Configuration\",\"name\":\"Configuration\",\"description\":\"Configure your self-hosted Flexprice instance\",\"url\":\"https://docs.flexprice.io/docs/getting-started/configuration\",\"mainEntityOfPage\":{\"@id\":\"https://docs.flexprice.io/docs/getting-started/configuration#webpage\"},\"dateModified\":\"2026-01-27T15:50:40.512Z\",\"publisher\":{\"@id\":\"https://docs.flexprice.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.flexprice.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Flexprice\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Flexprice\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/getting-started/configuration.md","siteName":"Flexprice","nav":{"global":{"anchors":[{"anchor":"Support","icon":"https://mintlify.s3.us-west-1.amazonaws.com/flexprice/images/anchors/mail.svg","href":"mailto:support@flexprice.io"},{"anchor":"Community","icon":"https://mintlify.s3.us-west-1.amazonaws.com/flexprice/images/anchors/slack.svg","href":"https://join.slack.com/t/flexpricecommunity/shared_invite/zt-39uat51l0-n8JmSikHZP~bHJNXladeaQ"},{"anchor":"Website","icon":"https://mintlify.s3.us-west-1.amazonaws.com/flexprice/images/anchors/flexprice.svg","href":"https://flexprice.io/"}]},"tabs":[{"tab":"Documentation","groups":[{"group":"Start Here","pages":[{"title":"Welcome to Flexprice","href":"/docs/welcome-to-flexprice"},{"title":"Flexprice Cloud","href":"/docs/getting-started/cloud"},{"group":"Core Concepts","root":{"title":"Core Concepts","href":"/docs/core-concepts/overview"},"pages":[{"group":"Usage Events","root":{"title":"Send Usage Events","sidebarTitle":"Usage Events","href":"/docs/core-concepts/send-usage-events"},"pages":[{"title":"Send Usage Events with the API and SDKs","sidebarTitle":"API and SDKs","href":"/docs/core-concepts/usage-events/sending-events"},{"title":"Idempotency and Deduplication","href":"/docs/core-concepts/usage-events/idempotency"},{"title":"High-Volume Ingestion","href":"/docs/core-concepts/usage-events/high-volume-ingestion"},{"title":"Backfill Past Usage","href":"/docs/core-concepts/usage-events/backfill"},{"title":"Delete Usage Events","href":"/docs/core-concepts/usage-events/deleting-events"},{"title":"Connecting to Billing","href":"/docs/core-concepts/usage-events/connecting-to-billing"}]},{"title":"Meter Usage with Features","sidebarTitle":"Features","href":"/docs/core-concepts/features"},{"title":"Create Plans and Prices","sidebarTitle":"Plans and Prices","href":"/docs/core-concepts/plans-and-prices"},{"title":"Provision a Customer","sidebarTitle":"Customers","href":"/docs/core-concepts/customers"},{"title":"Subscribe a Customer to a Plan","sidebarTitle":"Subscriptions","href":"/docs/core-concepts/subscriptions"},{"title":"How Flexprice Invoices Work","sidebarTitle":"Invoices","href":"/docs/core-concepts/invoices"}]},{"title":"Go-Live Checklist","href":"/docs/getting-started/go-live-checklist"},{"title":"Architecture","href":"/docs/getting-started/architecture"}]},{"group":"Usage Metering","pages":[{"group":"Features","root":{"title":"Features","href":"/docs/product-catalogue/features/overview"},"pages":[{"title":"Creating a feature","href":"/docs/product-catalogue/features/create"},{"title":"Creating a Metered Feature","href":"/docs/event-ingestion/creating-a-metered-feature"},{"group":"Aggregation Types","root":{"title":"Aggregation Types","href":"/docs/product-catalogue/features/aggregation/overview"},"pages":[{"title":"COUNT","href":"/docs/product-catalogue/features/aggregation/count"},{"title":"SUM","href":"/docs/product-catalogue/features/aggregation/sum"},{"title":"AVERAGE","href":"/docs/product-catalogue/features/aggregation/average"},{"title":"COUNT UNIQUE","href":"/docs/product-catalogue/features/aggregation/count-unique"},{"title":"LATEST","href":"/docs/product-catalogue/features/aggregation/latest"},{"title":"SUM WITH MULTIPLIER","href":"/docs/product-catalogue/features/aggregation/sum-with-multiplier"},{"title":"MAX","href":"/docs/product-catalogue/features/aggregation/max"},{"title":"WEIGHTED SUM","href":"/docs/product-catalogue/features/aggregation/weighted-sum"},{"title":"Custom Expression","href":"/docs/product-catalogue/features/custom-expression"}]},{"title":"Metered Feature Use Cases","sidebarTitle":"Use cases","href":"/docs/product-catalogue/features/use-cases"}]},{"group":"Flexprice Collector","root":{"title":"Flexprice Collector","href":"/docs/collectors/overview"},"pages":[{"title":"Get Started","href":"/docs/collectors/get-started"},{"title":"How It Works","href":"/docs/collectors/how-it-works"}]},{"group":"Debug and Monitor","pages":[{"title":"Validating Events","href":"/docs/event-ingestion/validating-events"},{"title":"Event Debugger","href":"/docs/event-ingestion/event-debugger"},{"title":"Event Monitoring","href":"/docs/event-ingestion/monitoring"},{"title":"Troubleshooting Event Ingestion","href":"/docs/event-ingestion/troubleshooting"}]},{"group":"AI Cost Tracking","root":{"title":"AI Cost Tracking","href":"/docs/ai-cost-tracking/overview"},"pages":[{"title":"Ingesting AI Usage","href":"/docs/ai-cost-tracking/ingesting-ai-usage"}]}]},{"group":"Pricing and Packaging","pages":[{"group":"Prices","pages":[{"group":"Pricing Models","pages":[{"title":"Flat fee","href":"/docs/product-catalogue/plans/billing-models/flat-fee"},{"title":"Package","href":"/docs/product-catalogue/plans/billing-models/package"},{"title":"Tiered","href":"/docs/product-catalogue/plans/billing-models/tiered"}]},{"title":"Advance vs Arrear","href":"/docs/product-catalogue/plans/charges/advance-vs-arrear"},{"title":"Localisation","href":"/docs/product-catalogue/plans/localisation"},{"group":"Custom Pricing","pages":[{"title":"Custom currency","href":"/docs/product-catalogue/custom-pricing/custom-currency"},{"title":"Pricing unit","href":"/docs/product-catalogue/custom-pricing/pricing-unit"},{"title":"Custom Pricing Use Cases","sidebarTitle":"Use cases","href":"/docs/product-catalogue/custom-pricing/use-cases"}]}]},{"group":"Plans and Packaging","pages":[{"group":"Plans","root":{"title":"Plans","href":"/docs/product-catalogue/plans/overview"},"pages":[{"title":"Creating a plan","href":"/docs/product-catalogue/plans/create"},{"title":"Pricing Plans","href":"/docs/product-catalogue/plans/pricing"},{"title":"Archiving a plan","href":"/docs/product-catalogue/plans/archive"},{"title":"Cloning a plan","href":"/docs/product-catalogue/plans/clone"}]},{"group":"Addons","root":{"title":"Addons","href":"/docs/product-catalogue/addons/overview"},"pages":[{"title":"Create an Addon","href":"/docs/product-catalogue/addons/create"},{"title":"Add Addons to a Subscription","href":"/docs/product-catalogue/addons/add-to-subscription"}]},{"group":"Groups","root":{"title":"Groups","href":"/docs/product-catalogue/groups/overview"},"pages":[{"title":"Creating a group","href":"/docs/product-catalogue/groups/create"},{"title":"Charges grouping","href":"/docs/product-catalogue/groups/charges-grouping"},{"title":"Feature grouping","href":"/docs/product-catalogue/groups/feature-grouping"}]},{"group":"Price Overrides","root":{"title":"Price Overrides","href":"/docs/product-catalogue/plans/price-overrides"},"pages":[{"title":"Plan Price Overrides","href":"/docs/subscriptions/plan-price-overrides"},{"title":"Subscription Override Line Items","href":"/docs/subscriptions/override-line-items"}]}]},{"group":"Discounts","pages":[{"title":"Coupons","href":"/docs/product-catalogue/coupons/overview"},{"title":"Create a Coupon","href":"/docs/product-catalogue/coupons/create"},{"title":"Apply Coupon to a Subscription","href":"/docs/product-catalogue/coupons/apply-discount-on-subscription"},{"title":"Reservation / Commitment Discount","href":"/docs/subscriptions/reservation-discount"}]},{"group":"Change Pricing","pages":[{"title":"Updating a Plan Price","href":"/docs/product-catalogue/plans/update-price"},{"title":"Subscription Line Item Overrides","href":"/docs/subscriptions/subscription-line-item-overrides"}]}]},{"group":"Entitlements","pages":[{"title":"Link features to plans","href":"/docs/product-catalogue/features/linking-to-plans"},{"title":"Entitlement Grants","href":"/docs/product-catalogue/features/entitlement-grants"}]},{"group":"Customers","pages":[{"title":"Customers","href":"/docs/customers/overview"},{"title":"Creating a customer","href":"/docs/customers/create"},{"title":"Customer Hierarchy","href":"/docs/subscriptions/customer-hierarchy"},{"title":"Customer Timezones","href":"/docs/customers/timezone-aware-billing"},{"title":"Billing Currency","href":"/docs/customers/billing-currency"},{"group":"Customer Portal","root":{"title":"Customer Portal","href":"/docs/customers/customer-portal"},"pages":[{"title":"Portal Payments","href":"/docs/customers/customer-portal/payments"},{"title":"Portal Configuration","href":"/docs/customers/customer-portal/configuration"},{"title":"Usage by Properties","href":"/docs/customers/customer-portal/usage-properties"},{"title":"Portal API Reference","href":"/docs/customers/customer-portal/api-reference"}]},{"title":"Alerts and Notifications","href":"/docs/customers/threshold-notifications"},{"title":"Activity Log","href":"/docs/customers/activity-log"},{"title":"Archive a customer","href":"/docs/customers/archive"}]},{"group":"Subscriptions","pages":[{"group":"Set Up Subscriptions","pages":[{"title":"Create subscription for a customer","href":"/docs/subscriptions/customers-create-subscription"},{"title":"View subscription","href":"/docs/subscriptions/view"},{"group":"Billing Workflows","root":{"title":"Subscription Billing Workflows","href":"/docs/subscriptions/billing-workflows/overview"},"pages":[{"title":"Standalone Billing","href":"/docs/subscriptions/billing-workflows/standalone"},{"title":"Consolidated Billing","href":"/docs/subscriptions/billing-workflows/consolidated-billing"},{"title":"Delegated Invoicing","href":"/docs/subscriptions/billing-workflows/delegated-invoicing"},{"title":"Grouped Invoicing","href":"/docs/subscriptions/billing-workflows/grouped-invoicing"}]},{"title":"Trialing","href":"/docs/subscriptions/workflows/trialing"},{"title":"Incomplete Subscriptions","href":"/docs/subscriptions/workflows/incomplete"},{"title":"Seat-Based Pricing","href":"/docs/subscriptions/seat-based-pricing"}]},{"group":"Lifecycle","pages":[{"title":"Pause and Resume","href":"/docs/subscriptions/workflows/pause-and-resume"},{"title":"Upgrade \u0026 Downgrade","href":"/docs/subscriptions/upgrade-and-downgrade"},{"title":"Understanding Proration","href":"/docs/subscriptions/understanding-proration"}]},{"group":"Usage-Based Billing","pages":[{"title":"Progressive Billing","href":"/docs/subscriptions/progressive-billing"},{"title":"What Are Spend Alerts?","href":"/docs/subscriptions/how-to-configure-spend-alerts/what-are-spend-alerts"},{"title":"Subscription Spend Alerts","href":"/docs/subscriptions/how-to-configure-spend-alerts/how-to-configure-subscription-spend-alerts"},{"title":"Line Item Spend Alerts","href":"/docs/subscriptions/how-to-configure-spend-alerts/how-to-configure-subscription-line-item-spend-alerts"},{"title":"Group Spend Alerts","href":"/docs/subscriptions/how-to-configure-spend-alerts/how-to-configure-group-spend-alerts"}]}]},{"group":"Credits and Wallets","pages":[{"group":"Wallets","pages":[{"title":"Prepaid \u0026 Promotional credits","href":"/docs/wallet/prepaid-and-promotional"},{"title":"Creating a wallet","href":"/docs/wallet/create"},{"title":"Wallet balance types","href":"/docs/wallet/balance-types"},{"title":"Conversion rate","href":"/docs/wallet/conversion-rate"}]},{"group":"Transactions \u0026 Ledger","pages":[{"title":"Top-up wallet","href":"/docs/wallet/top-up"},{"title":"Auto Top-Up","href":"/docs/wallet/auto-top-up"},{"title":"Manual Debit","href":"/docs/wallet/manual-debit"},{"title":"Wallet Transactions","href":"/docs/wallet/transactions"}]},{"title":"Low Balance Alert","href":"/docs/wallet/low-balance-alert"}]},{"group":"Enterprise Billing","pages":[{"title":"Commitment","href":"/docs/subscriptions/commitment/overview"},{"title":"Time-of-Day Commitment Buckets","href":"/docs/subscriptions/commitment/time-of-day-buckets"},{"title":"Subscription Commitments","href":"/docs/subscriptions/commitment/subscription-commitments"},{"title":"Billing Terms","href":"/docs/subscriptions/commitment/billing-terms"}]},{"group":"Invoicing and Taxes","pages":[{"group":"Invoices","root":{"title":"Invoices","href":"/docs/invoices/overview"},"pages":[{"title":"Invoice Calculation Order","href":"/docs/invoices/calculation"},{"title":"Managing Invoices","href":"/docs/invoices/managing"},{"title":"Hosted Invoices","href":"/docs/invoices/hosted-invoices"}]},{"title":"Partial payments","href":"/docs/invoices/partial-payments"},{"title":"Billing Entities","href":"/docs/invoices/billing-entities"},{"group":"Taxes","root":{"title":"Taxes","href":"/docs/product-catalogue/taxes/overview"},"pages":[{"title":"Configure Tax Rates","href":"/docs/product-catalogue/taxes/configure"},{"title":"Apply Tax to Customers and Subscriptions","href":"/docs/product-catalogue/taxes/apply"}]}]},{"group":"Payments and Checkout","pages":[{"group":"Checkout","root":{"title":"Checkout","href":"/docs/checkout/overview"},"pages":[{"title":"Checkout Sessions API","href":"/docs/checkout/checkout-sessions"},{"title":"Pay-First Checkout","href":"/docs/checkout/pay-first-checkout"},{"title":"Razorpay Checkout Setup","href":"/docs/checkout/razorpay-checkout"},{"title":"Autopay \u0026 Mandates","href":"/docs/checkout/autopay-mandates"},{"title":"Implementation Guide","href":"/docs/checkout/implementation-guide"}]},{"title":"Record payment for subscription","href":"/docs/subscriptions/record-payment"}]},{"group":"Reporting and Data","pages":[{"title":"Automated Data Export to Amazon S3","href":"/docs/data-exports/amazon-s3/export"}]},{"group":"Self-hosting","pages":[{"title":"Self-hosting Flexprice","href":"/docs/getting-started/self-hosting-guide"},{"title":"Self-hosting on AWS","href":"/docs/getting-started/self-hosting-aws"},{"title":"Self-hosting the Frontend","description":"Run the Flexprice dashboard on your own infrastructure and connect it to a self-hosted backend","href":"/docs/getting-started/self-hosting-frontend"},{"title":"Configuration","href":"/docs/getting-started/configuration"},{"title":"Telemetry","description":"What anonymous usage data Flexprice collects from self-hosted installs, and how to turn it off","href":"/docs/getting-started/telemetry"}]},{"group":"Platform and Security","pages":[{"title":"Settings","href":"/docs/settings/settings"},{"group":"Access","pages":[{"title":"Role-Based Access Control","href":"/docs/rbac/overview"},{"title":"Manage Roles","href":"/docs/rbac/manage-roles"},{"title":"Creating a Service Account","href":"/docs/rbac/service-accounts/create"},{"title":"Manage API Keys","href":"/docs/rbac/manage-api"}]}]}]},{"tab":"Cookbooks","pages":[{"title":"Cookbooks","href":"/cookbooks/billing-recipes/usage-based-pricing"}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"tab":"Developers","pages":[{"title":"Developers","href":"/developers/overview"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations/introduction"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/docs/changelog"}]}]},"basePath":"","title":"Configuration - Flexprice","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":[],"chunks":[]}