File tree Expand file tree Collapse file tree
src/backend/base/langflow Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -151,15 +151,15 @@ def create_app():
151151 from langflow .utils .version import get_version_info
152152
153153 __version__ = get_version_info ()["version" ]
154- root_path = os . environ . get ( "LANGFLOW_ROOT_PATH" , "" )
154+ settings = get_settings_service (). settings
155155
156156 configure ()
157157 lifespan = get_lifespan (version = __version__ )
158158 app = FastAPI (
159159 lifespan = lifespan ,
160160 title = "Langflow" ,
161161 version = __version__ ,
162- root_path = root_path
162+ root_path = settings . root_path
163163 )
164164
165165 app .add_middleware (
@@ -223,7 +223,6 @@ async def flatten_query_string_lists(request: Request, call_next):
223223
224224 return await call_next (request )
225225
226- settings = get_settings_service ().settings
227226 if prome_port_str := os .environ .get ("LANGFLOW_PROMETHEUS_PORT" ):
228227 # set here for create_app() entry point
229228 prome_port = int (prome_port_str )
Original file line number Diff line number Diff line change @@ -195,6 +195,9 @@ class Settings(BaseSettings):
195195 """The maximum number of vertex builds to keep in the database."""
196196 max_vertex_builds_per_vertex : int = 2
197197 """The maximum number of builds to keep per vertex. Older builds will be deleted."""
198+ root_path : str = ""
199+ """The root path to serve requests at."""
200+
198201
199202 # MCP Server
200203 mcp_server_enabled : bool = True
You can’t perform that action at this time.
0 commit comments