forked from FrankChen021/datastoria
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
127 lines (108 loc) · 5.82 KB
/
.env.example
File metadata and controls
127 lines (108 loc) · 5.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# ============================================================================
# DataStoria Environment Variables
# ============================================================================
# Copy this file to .env and configure your settings
# cp .env.example .env
# Set app for better SEO
#NEXT_PUBLIC_APP_URL=https://datastoria.app
# Optional base path when deploying behind a reverse proxy context path (e.g. /v2 or /app).
# Leave empty for root deployment.
# IMPORTANT: Next.js basePath is applied at build time only. You must set this when running
# `npm run build` and when building the Docker image (e.g. --build-arg NEXT_PUBLIC_BASE_PATH=/v2).
#NEXT_PUBLIC_BASE_PATH=/app
# Enable connection template provider UI section (default DISABLED)
# If enabled, you should update the implementation of /api/connection/templates to your own
NEXT_PUBLIC_CONSOLE_CONNECTION_PROVIDER_ENABLED=false
# ============================================================================
#
# CHAT SESSION REPOSITORY (Optional remote persistence)
#
# ============================================================================
# Configure exactly one of the following to enable server-side chat persistence.
# Priority order: MYSQL > POSTGRES > SQLITE.
# CHAT_SESSION_REPOSITORY_MYSQL_URL=mysql://username:password@127.0.0.1:3306/datastoria_chat
# CHAT_SESSION_REPOSITORY_POSTGRES_URL=postgres://username:password@127.0.0.1:5432/datastoria_chat
# CHAT_SESSION_REPOSITORY_SQLITE_PATH=/absolute/path/to/chat-sessions.sqlite
# Optional retention policy for backend cleanup scheduler (default: 30 days)
# CHAT_SESSION_REPOSITORY_RETENTION_DAYS=30
# ============================================================================
#
# LLM Models API Key Settings(for AI features)
#
# ============================================================================
# Anthropic API Key
# Get your API key from: https://console.anthropic.com/
# ANTHROPIC_API_KEY=
# OpenAI API Key (optional fallback)
# Get your API key from: https://platform.openai.com/api-keys
# OPENAI_API_KEY=
# https://openrouter.ai/docs/api/reference/limits
# OPENROUTER_API_KEY=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
#https://console.groq.com/keys
# GROQ_API_KEY=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
#Google Gemini
#GOOGLE_GENERATIVE_AI_API_KEY=
# Cerebras
#CEREBRAS_API_KEY=
# ============================================================================
#
# AUTHENTICATION CONFIGURATION (Optional)
#
# ============================================================================
# Authentication is optional. If no providers are configured, the app will
# run without authentication.
# ----------------------------------------------------------------------------
# Anonymous Access
# ----------------------------------------------------------------------------
# Set to "false" to require authentication (no anonymous users).
# When "false", at least one OAuth provider must be configured or the app will exit.
# When true or unset, anonymous users can access the app.
ALLOW_ANONYMOUS_USER=true
# ----------------------------------------------------------------------------
# NextAuth Secret (Required if authentication is enabled)
# ----------------------------------------------------------------------------
# Generate a random secret with: openssl rand -base64 32
# This secret is used for JWT encryption and session management
NEXTAUTH_SECRET=your-secret-key-here-replace-with-random-32-char-string
# ----------------------------------------------------------------------------
# Google OAuth Provider
# ----------------------------------------------------------------------------
# Provider is enabled when credentials are set AND NEXTAUTH_GOOGLE_ENABLED=true.
# Get credentials from: https://console.cloud.google.com/apis/credentials
# 1. Create a new OAuth 2.0 Client ID
# 2. Add authorized redirect URI: http://localhost:3000/api/auth/callback/google
# 3. Copy the Client ID and Client Secret
NEXTAUTH_GOOGLE_ENABLED=false
# GOOGLE_CLIENT_ID=your-google-client-id.apps.googleusercontent.com
# GOOGLE_CLIENT_SECRET=your-google-client-secret
# ----------------------------------------------------------------------------
# GitHub OAuth Provider
# ----------------------------------------------------------------------------
# Provider is enabled when credentials are set AND NEXTAUTH_GITHUB_ENABLED=true.
# Get credentials from: https://github.com/settings/developers
# 1. Click "New OAuth App"
# 2. Set Authorization callback URL: http://localhost:3000/api/auth/callback/github
# 3. Copy the Client ID and generate a Client Secret
NEXTAUTH_GITHUB_ENABLED=false
# GITHUB_CLIENT_ID=your-github-client-id
# GITHUB_CLIENT_SECRET=your-github-client-secret
# ----------------------------------------------------------------------------
# Microsoft Entra ID (Azure AD) OAuth Provider
# ----------------------------------------------------------------------------
# Provider is enabled when credentials are set AND NEXTAUTH_MICROSOFT_ENABLED=true.
# Get credentials from: https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps
# 1. Register a new application
# 2. Add redirect URI: http://localhost:3000/api/auth/callback/microsoft-entra-id
# 3. Create a client secret
# 4. Copy the Application (client) ID, Directory (tenant) ID, and client secret
NEXTAUTH_MICROSOFT_ENABLED=false
# MICROSOFT_CLIENT_ID=your-microsoft-client-id
# MICROSOFT_CLIENT_SECRET=your-microsoft-client-secret
# MICROSOFT_TENANT_ID=your-microsoft-tenant-id
# ----------------------------------------------------------------------------
# GitHub App for Copilot Device Flow(for Copilot model usage)
# ----------------------------------------------------------------------------
# 1. Create a "New GitHub App" (not OAuth App)
# 2. Set "Device flow" enabled in General settings
# 3. Copy the Client ID
GITHUB_COPILOT_CLIENT_ID=your-github-copilot-client-id