Address issue #2911 to allow additional path in the URL#5254
Merged
HenryHengZJ merged 0 commit intoFlowiseAI:mainfrom Sep 27, 2025
Merged
Address issue #2911 to allow additional path in the URL#5254HenryHengZJ merged 0 commit intoFlowiseAI:mainfrom
HenryHengZJ merged 0 commit intoFlowiseAI:mainfrom
Conversation
Contributor
|
why is the file changed 0? |
Author
I have no idea what just happened in the commit, I had all the changes, in and I was able to review them before creating the cross-pr. Reviewing the code changes again and will re-open it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sub-Path (BASE_PATH) Support Summary
Date: 2025-09-24
This document summarizes the changes that add support for hosting Flowise under a sub-path (e.g., http://localhost:3000/path) instead of only at the domain root (e.g., http://localhost:3000).
Overview
Flowise can now be deployed under a base path using the following environment variables:
BASE_PATHVITE_BASE_PATHThese variables allow you to mount both the API and the UI at a sub-path. For example, when
BASE_PATH=/path, the application is served athttp://<host>:<port>/pathand the API lives underhttp://<host>:<port>/path/api/v1.Environment Variables
BASE_PATH(server)BASE_PATH=/pathVITE_BASE_PATH(UI)VITE_BASE_PATH=/pathBASE_PATHis sufficient at runtime.Key Changes
Server
BASE_PATHwhen mounting API routes, static UI assets, and queue dashboard:"${BASE_PATH}/api/v1""${BASE_PATH}/api/v1/ip""${BASE_PATH}/admin/queues"BASE_PATH(or/when not set)BASE_PATH-prefixed URLs.BASE_PATHaccepted as a CLI flag (npx flowise start --BASE_PATH=/path).UI
basenamefromVITE_BASE_PATH.baseset fromVITE_BASE_PATHand dev server proxy updated to forward"${VITE_BASE_PATH}/api"to the server.VITE_BASE_PATHwhen present.Docker
.env.exampleupdated to documentBASE_PATH.docker-compose.ymland queue variants passBASE_PATHto the container.http://localhost:${PORT}${BASE_PATH}/api/v1/ping.BASE_PATHis set (e.g.,http://localhost:3000/path).Backward Compatibility
BASE_PATH/VITE_BASE_PATHare not set, Flowise operates unchanged at the root (/).