-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
65 lines (58 loc) · 2.22 KB
/
.env.example
File metadata and controls
65 lines (58 loc) · 2.22 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
# Required for local development and production startup
NODE_ENV=development
NEXT_PUBLIC_APP_URL=http://localhost:3000
NEXT_PUBLIC_API_URL=http://localhost:5005/api
NEXT_PUBLIC_AUTH_BASE_URL=/api/auth
BETTER_AUTH_URL=http://localhost:3000
BETTER_AUTH_SECRET=replace-with-a-random-secret-at-least-32-characters
DATABASE_URL=postgres://root:root123@localhost:5432/Knowhere
# Set this to true only for local/self-hosted PostgreSQL without SSL.
# UNSAFE_DB_SSL_ENABLED=true
BILLING_ENABLED=false
PASSWORD_LOGIN_ENABLED=false
# --- Cross-app auth (optional) ---
# When set, Dashboard enables Better Auth `advanced.crossSubDomainCookies`
# with this parent domain so the session cookie is shared with sibling
# apps hosted under the same parent (e.g. app1.<this-value>).
#
# Examples:
# prod: AUTH_COOKIE_DOMAIN=example.com
# local: AUTH_COOKIE_DOMAIN=local.example.com (requires /etc/hosts)
#
# Leave unset to keep host-only cookies (default for single-app deployments).
# AUTH_COOKIE_DOMAIN=
# Comma-separated list of external origins Dashboard will accept as
# post-login callback targets. Required when AUTH_COOKIE_DOMAIN is set
# and a sibling app redirects users to Dashboard for login. Arbitrary
# external URLs are rejected.
#
# This is a NEXT_PUBLIC_ variable because both client code (the login
# action's router.push after a successful sign-in) and server code
# (Better Auth's trustedOrigins) read the same list. The allowlist is
# not a secret — it declares which hostnames are trusted targets.
#
# Examples:
# prod: NEXT_PUBLIC_AUTH_ALLOWED_CALLBACK_ORIGINS=https://app1.example.com
# local: NEXT_PUBLIC_AUTH_ALLOWED_CALLBACK_ORIGINS=http://app1.local.example.com:3001
# NEXT_PUBLIC_AUTH_ALLOWED_CALLBACK_ORIGINS=
# Optional Resend-backed email login and password reset emails
RESEND_API_KEY=
RESEND_FROM=onboarding@example.com
# Optional OAuth providers
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
APPLE_CLIENT_ID=
# Optional analytics
NEXT_PUBLIC_POSTHOG_KEY=
NEXT_PUBLIC_POSTHOG_HOST=https://app.posthog.com
GA_MEASUREMENT_ID=
# Optional runtime branding
COMPANY_NAME=Knowhere AI
SIMPLE_COMPANY_NAME=Knowhere
ICP_NUMBER=
ICP_URL=https://beian.miit.gov.cn/
# Optional development proxy
HTTPS_PROXY=
HTTP_PROXY=