Skip to content

OpenRAG is a comprehensive, single package Retrieval-Augmented Generation platform built on Langflow, Docling, and Opensearch.

Python

Merge branch 'main' into detect-port

phact63e0cd330742
diff --cc src/tui/screens/config.py
index 95fe74170,e3d58d773..dfa46d419
--- a/src/tui/screens/config.py
+++ b/src/tui/screens/config.py
@@@ -393,14 -483,9 +484,10 @@@ class ConfigScreen(Screen)
),
classes="helper-text",
)
- # Callback URL guidance for Google OAuth
+ frontend_port = os.getenv("FRONTEND_PORT", "3000")
yield Static(
Text(
- f"Important: add an Authorized redirect URI to your Google OAuth app(s):\n"
- f" - Local: http://localhost:{frontend_port}/auth/callback\n"
- " - Prod: https://your-domain.com/auth/callback\n"
- "If you use separate apps for login and connectors, add this URL to BOTH.",
- "Redirect URI: http://localhost:3000/auth/callback (or your domain)",
++ f"Redirect URI: http://localhost:{frontend_port}/auth/callback (or your domain)",
style="dim",
),
classes="helper-text",
@@@ -444,14 -528,9 +530,10 @@@
),
classes="helper-text",
)
- # Callback URL guidance for Microsoft OAuth
+ frontend_port = os.getenv("FRONTEND_PORT", "3000")
yield Static(
Text(
- f"Important: configure a Web redirect URI for your Microsoft app(s):\n"
- f" - Local: http://localhost:{frontend_port}/auth/callback\n"
- " - Prod: https://your-domain.com/auth/callback\n"
- "If you use separate apps for login and connectors, add this URI to BOTH.",
- "Redirect URI: http://localhost:3000/auth/callback (or your domain)",
++ f"Redirect URI: http://localhost:{frontend_port}/auth/callback (or your domain)",
style="dim",
),
classes="helper-text",