Merge branch 'main' into 109-design-sweep-polish-adding-from-cloud-connector-screen
This commit is contained in:
commit
8635b00b25
1 changed files with 48 additions and 24 deletions
|
|
@ -633,30 +633,54 @@ function KnowledgeSourcesPage() {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Conditional Sync Settings or No-Auth Message */}
|
{/* Conditional Sync Settings or No-Auth Message */}
|
||||||
{
|
{
|
||||||
isNoAuthMode ? (
|
isNoAuthMode ? (
|
||||||
<Card className="border-yellow-500/50 bg-yellow-500/5">
|
<Card className="border-yellow-500">
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle className="text-lg text-yellow-600">
|
<CardTitle className="text-lg">
|
||||||
Cloud connectors are only available with auth mode enabled
|
Cloud connectors require authentication
|
||||||
</CardTitle>
|
</CardTitle>
|
||||||
<CardDescription className="text-sm">
|
<CardDescription className="text-sm">
|
||||||
Please provide the following environment variables and
|
Add the Google OAuth variables below to your <code>.env</code>{" "}
|
||||||
restart:
|
then restart the OpenRAG containers.
|
||||||
</CardDescription>
|
</CardDescription>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent>
|
<CardContent>
|
||||||
<div className="bg-muted rounded-md p-4 font-mono text-sm">
|
<div className="bg-muted rounded-md p-4 font-mono text-sm">
|
||||||
<div className="text-muted-foreground mb-2">
|
<div className="text-muted-foreground">
|
||||||
# make here
|
<div>
|
||||||
https://console.cloud.google.com/apis/credentials
|
<span className="mr-3 text-placeholder-foreground">
|
||||||
</div>
|
27
|
||||||
<div>GOOGLE_OAUTH_CLIENT_ID=</div>
|
</span>
|
||||||
<div>GOOGLE_OAUTH_CLIENT_SECRET=</div>
|
<span># Google OAuth</span>
|
||||||
</div>
|
</div>
|
||||||
</CardContent>
|
<div>
|
||||||
</Card>
|
<span className="mr-3 text-placeholder-foreground">
|
||||||
) : null
|
28
|
||||||
|
</span>
|
||||||
|
<span># Create credentials here:</span>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<span className="mr-3 text-placeholder-foreground">
|
||||||
|
29
|
||||||
|
</span>
|
||||||
|
<span>
|
||||||
|
# https://console.cloud.google.com/apis/credentials
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<span className="mr-3 text-placeholder-foreground">30</span>
|
||||||
|
<span>GOOGLE_OAUTH_CLIENT_ID=</span>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<span className="mr-3 text-placeholder-foreground">31</span>
|
||||||
|
<span>GOOGLE_OAUTH_CLIENT_SECRET=</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</CardContent>
|
||||||
|
</Card>
|
||||||
|
) : null
|
||||||
// <div className="flex items-center justify-between py-4">
|
// <div className="flex items-center justify-between py-4">
|
||||||
// <div>
|
// <div>
|
||||||
// <h3 className="text-lg font-medium">Sync Settings</h3>
|
// <h3 className="text-lg font-medium">Sync Settings</h3>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue