Skip to content

docs: refresh variables pages#9748

Merged
mendonk merged 38 commits into
mainfrom
docs-lfoss-1568-refresh-vars-pages
Sep 12, 2025
Merged

docs: refresh variables pages#9748
mendonk merged 38 commits into
mainfrom
docs-lfoss-1568-refresh-vars-pages

Conversation

@mendonk
Copy link
Copy Markdown
Collaborator

@mendonk mendonk commented Sep 8, 2025

Preview

Refresh the environment variables pages and make them more digestible.

  • Break env var table into smaller tables by subject
  • clarify usage instructions for env vars and global vars with a partial
  • improve references (these might not be necessary)
  • link to global vars instead of list

For the updating of the CSS for the table, see #9732 (merged into this branch)

Summary by CodeRabbit

  • Documentation
    • Added “File management configuration” section documenting upload size and storage type variables.
    • Added “Flow configuration” section covering auto-saving, bundles, starter projects, lazy loading, event delivery, and storage/log locations.
    • Added “MCP server configuration” section with enablement, progress, timeout, and sessions settings.
    • Documented new authentication variable for auto-activating new users.
    • Overhauled Environment Variables docs: categorized sections, many new variables, updated examples and commands.
    • Enhanced Global Variables docs with an inline explainer, clarified deletion behavior, and cross-references.
    • Introduced a reusable “Env vs Global Vars” explainer.

@mendonk mendonk requested a review from aimurphy September 8, 2025 19:20
@mendonk mendonk self-assigned this Sep 8, 2025
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Sep 8, 2025

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Walkthrough

Adds new documentation sections for configuring file management, flows, and MCP server via environment variables; overhauls the environment variables reference with categorized sections; updates global variables docs to use a new EnvGlobalVars partial and revised guidance; adds an auth variable (LANGFLOW_NEW_USER_IS_ACTIVE); and introduces a reusable partial.

Changes

Cohort / File(s) Summary of changes
Concepts: configuration sections
docs/docs/Concepts/concepts-file-management.mdx, docs/docs/Concepts/concepts-flows.mdx, docs/docs/Concepts/mcp-server.mdx
Adds env-var configuration sections for file management, flows (autosave, starter projects, lazy load, event delivery), and MCP server (enable, progress notifications, timeout, sessions). Minor formatting adjustments and cross-links to Environment Variables.
Auth configuration
docs/docs/Configuration/api-keys-and-authentication.mdx
Documents LANGFLOW_NEW_USER_IS_ACTIVE (Boolean, default False) in table and dedicated blocks; note: the variable’s section appears twice. Minor formatting tweaks.
Global variables docs update
docs/docs/Configuration/configuration-global-variables.mdx
Imports and renders <EnvGlobalVars />; updates deletion semantics (removal from DB; flows referencing it fail); clarifies default env-var auto-inclusion with links; updates examples and commands to uv run; notes CLI overrides .env; replaces explicit default list with a code reference.
Environment variables reference overhaul
docs/docs/Configuration/environment-variables.mdx
Reorganizes into categories (server, auth, DB, caching, logging, file/data, flow/project, public flows, globals, store, monitoring, MCP, telemetry); adds many variables; updates examples to uv run; extends .env, systemd, VSCode snippets; inserts <EnvGlobalVars />.
New partial: Env vs Global variables
docs/docs/_partial-env-global-vars.mdx
Adds collapsible partial comparing environment variables and global variables; notes auto-conversion of some env vars to globals; links to default/env integration docs.

Sequence Diagram(s)

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

Suggested labels

size:XL, lgtm

Suggested reviewers

  • aimurphy
  • italojohnny
  • jordanrfrazier
✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch docs-lfoss-1568-refresh-vars-pages

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Sep 8, 2025
@github-actions

This comment has been minimized.

@github-actions github-actions Bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Sep 8, 2025
@github-actions

This comment has been minimized.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (3)
docs/docs/Concepts/concepts-file-management.mdx (1)

123-126: Fix: refer to the correct config mechanism for max file size.

It’s an environment variable (or a CLI flag), not an “environment variable” named as a flag.

Apply:

-By default, the maximum file size is 100 MB.
-To modify this value, change the `--max-file-size-upload` [environment variable](/environment-variables).
+By default, the maximum file size is 100 MB.
+To modify this value, set the `LANGFLOW_MAX_FILE_SIZE_UPLOAD` environment variable or pass the `--max-file-size-upload` CLI flag. See [Environment Variables](/environment-variables).
docs/docs/Configuration/api-keys-and-authentication.mdx (1)

269-278: Remove duplicate “LANGFLOW_NEW_USER_IS_ACTIVE” section.

Duplicate content risks divergence; keep the earlier section and the table entry.

Apply:

-### LANGFLOW_NEW_USER_IS_ACTIVE {#langflow-new-user-is-active}
-
-When `LANGFLOW_NEW_USER_IS_ACTIVE=False` (default), a superuser must explicitly activate a new user's account before they can sign in to the visual editor.
-The superuser can also deactivate a user's account as needed.
-
-When `LANGFLOW_NEW_USER_IS_ACTIVE=True`, new user accounts are automatically activated.
-
-```text
-LANGFLOW_NEW_USER_IS_ACTIVE=False
-```
-
-Only superusers can manage user accounts for a Langflow server, but user management only matters if your server has authentication enabled.
-For more information, see [Start a Langflow server with authentication enabled](#start-a-langflow-server-with-authentication-enabled).
docs/docs/Configuration/configuration-global-variables.mdx (1)

76-81: Fix broken internal anchor.

The link target doesn’t exist on the env vars page. Point to the category section.

Apply:

-You can use the `LANGFLOW_VARIABLES_TO_GET_FROM_ENVIRONMENT` [environment variable](/environment-variables#langflow-variables-to-get-from-environment) to source custom global variables from your runtime environment.
+You can use the `LANGFLOW_VARIABLES_TO_GET_FROM_ENVIRONMENT` [environment variable](/environment-variables#global-variables-and-environment-integration) to source custom global variables from your runtime environment.
🧹 Nitpick comments (4)
docs/docs/Concepts/concepts-file-management.mdx (1)

132-141: New “File management configuration” section reads well. One open detail.

Consider listing accepted values for LANGFLOW_STORAGE_TYPE (e.g., local, s3, gcs) or link to the authoritative list if it varies by build.

docs/docs/Concepts/mcp-server.mdx (1)

330-331: Check link target exists.

Confirm /mcp-component-astra resolves; if not, update or remove.

docs/docs/Concepts/concepts-flows.mdx (1)

116-118: Clarify what LANGFLOW_LOG_FILE controls.

It configures the general log file path, not a “flow log storage location.”

Apply:

-The overall storage location can be customized with the `LANGFLOW_CONFIG_DIR` environment variable, and the flow log storage location can be customized separately with the `LANGFLOW_LOG_FILE` environment variable.
+The overall storage location can be customized with the `LANGFLOW_CONFIG_DIR` environment variable, and the log file path can be customized separately with the `LANGFLOW_LOG_FILE` environment variable.
docs/docs/Configuration/environment-variables.mdx (1)

205-209: Type nit: Redis port should be an Integer.

Match other port fields and avoid quoting numeric values.

Apply:

-| `LANGFLOW_REDIS_PORT` | String | `6379` | Redis port for cache. See `LANGFLOW_CACHE_TYPE`. |
+| `LANGFLOW_REDIS_PORT` | Integer | `6379` | Redis port for cache. See `LANGFLOW_CACHE_TYPE`. |
📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a90bece and 31c9a02.

📒 Files selected for processing (7)
  • docs/docs/Concepts/concepts-file-management.mdx (3 hunks)
  • docs/docs/Concepts/concepts-flows.mdx (2 hunks)
  • docs/docs/Concepts/mcp-server.mdx (2 hunks)
  • docs/docs/Configuration/api-keys-and-authentication.mdx (3 hunks)
  • docs/docs/Configuration/configuration-global-variables.mdx (6 hunks)
  • docs/docs/Configuration/environment-variables.mdx (5 hunks)
  • docs/docs/_partial-env-global-vars.mdx (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
docs/docs/**/*.{md,mdx}

📄 CodeRabbit inference engine (.cursor/rules/docs_development.mdc)

docs/docs/**/*.{md,mdx}: All documentation content must be written in Markdown or MDX files located under docs/docs/, following the prescribed directory structure for guides, reference, how-to, concepts, and API documentation.
All documentation Markdown and MDX files must begin with a frontmatter block including at least title and description fields.
Use admonitions (:::tip, :::warning, :::danger) in Markdown/MDX files to highlight important information, warnings, or critical issues.
All images referenced in documentation must include descriptive alt text for accessibility.
All code examples included in documentation must be tested and verified to work as shown.
Internal links in documentation must be functional and not broken.
Content must follow the style guide: professional but approachable tone, second person voice, present tense, short paragraphs, sentence case headers, inline code with backticks, bold for UI elements, italic for emphasis, and parallel structure in lists.
Use consistent terminology: always capitalize Langflow, Component, Flow, and uppercase API and JSON.

Files:

  • docs/docs/_partial-env-global-vars.mdx
  • docs/docs/Concepts/concepts-file-management.mdx
  • docs/docs/Concepts/mcp-server.mdx
  • docs/docs/Configuration/api-keys-and-authentication.mdx
  • docs/docs/Concepts/concepts-flows.mdx
  • docs/docs/Configuration/configuration-global-variables.mdx
  • docs/docs/Configuration/environment-variables.mdx
🧠 Learnings (2)
📚 Learning: 2025-07-23T21:19:22.567Z
Learnt from: deon-sanchez
PR: langflow-ai/langflow#9158
File: src/backend/base/langflow/api/v1/mcp_projects.py:404-404
Timestamp: 2025-07-23T21:19:22.567Z
Learning: In langflow MCP projects configuration, prefer using dynamically computed URLs (like the `sse_url` variable) over hardcoded localhost URLs to ensure compatibility across different deployment environments.

Applied to files:

  • docs/docs/Concepts/mcp-server.mdx
  • docs/docs/Configuration/environment-variables.mdx
📚 Learning: 2025-07-18T18:26:42.027Z
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/docs_development.mdc:0-0
Timestamp: 2025-07-18T18:26:42.027Z
Learning: Applies to docs/docs/**/*.{md,mdx} : Use consistent terminology: always capitalize Langflow, Component, Flow, and uppercase API and JSON.

Applied to files:

  • docs/docs/Concepts/concepts-flows.mdx
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: build-and-deploy
  • GitHub Check: Test Docs Build / Test Docs Build
🔇 Additional comments (17)
docs/docs/Concepts/concepts-file-management.mdx (1)

63-63: Good clarification about runtime tweaks payload.

The added sentence clearly sets reader expectations before the snippet.

docs/docs/Configuration/api-keys-and-authentication.mdx (2)

177-185: Add: LANGFLOW_NEW_USER_IS_ACTIVE — looks good but avoid duplicate section below.

This block is clear; keep this one as the canonical description.

Note: There’s a second “LANGFLOW_NEW_USER_IS_ACTIVE” section later (Lines 269–278). Remove the duplicate to avoid drift.


368-383: Auth variables table addition is consistent and helpful.

The new entry for LANGFLOW_NEW_USER_IS_ACTIVE aligns with the narrative above.

docs/docs/Concepts/mcp-server.mdx (2)

196-211: Verify mcp-proxy header flag usage.

Double-check whether the flag is --headers vs --header and the exact argument shape expected by mcp-proxy for passing x-api-key.


332-343: MCP server configuration section LGTM.

Defaults and descriptions are concise; links back to the env-var index are correct.

docs/docs/Concepts/concepts-flows.mdx (1)

126-141: Flow configuration table is coherent and well-scoped.

Good cross-link to the consolidated env vars page.

docs/docs/_partial-env-global-vars.mdx (1)

1-10: Partial content is clear. Confirm frontmatter policy for partials.

Docusaurus usually doesn’t require frontmatter for included partials, but confirm our docs linter doesn’t enforce it under docs/docs/.

docs/docs/Configuration/configuration-global-variables.mdx (4)

9-9: Importing the EnvGlobalVars partial is a good reuse.


16-17: Inline partial placement LGTM.


61-63: Deletion semantics clarified — good.

Clear warning that flows referencing the deleted variable will fail.

Also applies to: 72-72


171-174: Deferring definitive list to code is fine.

Linking to constants.py reduces drift.

docs/docs/Configuration/environment-variables.mdx (6)

16-16: Good reuse of the EnvGlobalVars partial.


28-31: Precedence examples are clear and accurate.


151-183: Category scaffolding and cross-links read well.

Nice organization; anchors match cross-references elsewhere.


228-244: File/data management section aligns with Concepts page.

LANGFLOW_STORAGE_TYPE and size limit entries match the new concepts doc.


268-275: Confirm fallback variable name consistency across pages.

This page uses LANGFLOW_FALLBACK_TO_ENV_VAR. Ensure other pages (global variables) use the same name (see suggested fix there).


324-359: .env example updates look correct and helpful.

Inclusion of Store URL, MCP, and logging toggles is useful.

Comment thread docs/docs/Configuration/configuration-global-variables.mdx
Comment thread docs/docs/Concepts/concepts-file-management.mdx Outdated
Comment thread docs/docs/Concepts/concepts-file-management.mdx Outdated
Comment thread docs/docs/Concepts/concepts-file-management.mdx
Comment thread docs/docs/Concepts/concepts-flows.mdx Outdated
Comment thread docs/docs/Concepts/concepts-flows.mdx Outdated
Comment thread docs/docs/Concepts/mcp-server.mdx Outdated
Comment thread docs/docs/Configuration/api-keys-and-authentication.mdx Outdated
Comment thread docs/docs/Configuration/api-keys-and-authentication.mdx Outdated
Comment thread docs/docs/Configuration/environment-variables.mdx Outdated
Comment thread docs/docs/_partial-env-global-vars.mdx Outdated
@github-actions github-actions Bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Sep 10, 2025
* initial-sizing

* Clean up table styling and remove duplicated rules

* fix: Reduce table font size, remove scrollbar

---------

Co-authored-by: Jonathan Kurten <kurtenj@gmail.com>
@github-actions

This comment has been minimized.

@github-actions github-actions Bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Sep 10, 2025
@github-actions

This comment has been minimized.

@mendonk mendonk requested a review from kurtenj September 10, 2025 15:35
@github-actions

This comment has been minimized.

@github-actions github-actions Bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Sep 12, 2025
@github-actions

This comment has been minimized.

@github-actions github-actions Bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Sep 12, 2025
@github-actions

This comment has been minimized.

@mendonk mendonk added this pull request to the merge queue Sep 12, 2025
@mendonk mendonk removed this pull request from the merge queue due to a manual request Sep 12, 2025
@github-actions github-actions Bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Sep 12, 2025
@github-actions

This comment has been minimized.

@github-actions github-actions Bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Sep 12, 2025
@github-actions

This comment has been minimized.

@github-actions github-actions Bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Sep 12, 2025
@github-actions

This comment has been minimized.

@sonarqubecloud
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Sep 12, 2025

Build successful! ✅
Deploying docs draft.
Deploy successful! View draft

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation lgtm This PR has been approved by a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants