-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.env.example
More file actions
79 lines (71 loc) · 2.82 KB
/
Copy path.env.example
File metadata and controls
79 lines (71 loc) · 2.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
# 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
# Optional. Defaults to DATABASE_URL when unset.
NEWSLETTER_DATABASE_URL=
# Per-instance PostgreSQL pool limits. The defaults are sized for Vercel and staging.
DATABASE_POOL_MAX=2
NEWSLETTER_DATABASE_POOL_MAX=1
DATABASE_POOL_IDLE_TIMEOUT_MILLISECONDS=10000
DATABASE_POOL_CONNECTION_TIMEOUT_MILLISECONDS=5000
# 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=
# Optional. Defaults to Better Auth's current cookie prefix. Staging deployments
# should use a distinct value such as `better-auth-staging` so browser cookies
# from production are not accepted by staging.
# AUTH_COOKIE_PREFIX=better-auth
# 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="Knowhere <team@knowhereto.ai>"
# 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=
OPENAI_ADS_PIXEL_ID=
OPENAI_ADS_CONVERSIONS_API_KEY=
# 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=