Skip to content

Added langflow runtime basepath - #2511

Closed
lucaseduoli wants to merge 2 commits into
feat/basepath_at_runtimefrom
feat/basepath_langflow
Closed

lucaseduoli wants to merge 2 commits into
feat/basepath_at_runtimefrom
feat/basepath_langflow

Conversation

@lucaseduoli

Copy link
Copy Markdown
Collaborator

This pull request introduces support for setting a custom path prefix for Langflow using the LANGFLOW_ROOT_PATH environment variable, which is useful when serving Langflow behind a reverse proxy. It updates the Docker and Compose configurations, adds documentation, and provides a robust entrypoint script to patch frontend assets at container startup.

Langflow path prefix support:

  • Added LANGFLOW_ROOT_PATH environment variable support to allow specifying a path prefix (e.g., /langflow) for Langflow, making reverse proxy setups easier. This is documented in .env.example and docs/reference/configuration.mdx. [1] [2]
  • Updated docker-compose.yml to pass LANGFLOW_ROOT_PATH from the environment to the Langflow service.

Entrypoint and asset patching:

  • Introduced a new entrypoint script scripts/langflow-entrypoint.py that normalizes the root path, locates packaged frontend assets, and patches them to use the specified path prefix, ensuring Langflow works correctly with the configured base path.
  • Updated Dockerfile.langflow.dev to copy the new entrypoint script and set it as the container's entrypoint, so the patching logic runs automatically at startup.

@lucaseduoli lucaseduoli self-assigned this Oct 19, 2026
@github-actions github-actions Bot added documentation 📘 Improvements or additions to documentation docker labels Oct 19, 2026
@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

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.

⚙️ Run configuration
  • Configuration used: Repository: langflow-ai/openrag/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8329bb99-bc43-46ea-9b0c-a0eea6d8cee5

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

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@github-actions

This comment has been minimized.

@github-actions github-actions Bot added the tests label Oct 20, 2026
@github-actions

github-actions Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

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

docker documentation 📘 Improvements or additions to documentation tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant