Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
137 lines (122 loc) · 5.71 KB
/
Copy path.env.example
File metadata and controls
137 lines (122 loc) · 5.71 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
128
129
130
131
132
133
134
135
136
137
# Copy this file to .env.local and fill your own values.
# Never commit .env.local or real keys to git.
# WisArt OpenAI-compatible image API (server-side only)
WISART_API_KEY=
WISART_BASE_URL=https://wisart.kuaileshifu.com
WISART_OPENAI_BASE_URL=https://wisart.kuaileshifu.com/v1
WISART_IMAGE_MODEL=gpt-image-2
WISART_IMAGE_RESPONSE_FORMAT=b64_json
# Inception Labs Mercury 3, powering the /experiments/diffusion demo
# (server-side only). The demo degrades to a recorded trace when these are
# missing, so they stay optional.
INCEPTION_API_KEY=
# Optional: second key, retried when the first returns an empty trace.
INCEPTION_API_KEY_2=
INCEPTION_BASE_URL=https://api.inceptionlabs.ai/v1
INCEPTION_MODEL=mercury-3
# App
NEXT_PUBLIC_BASE_URL=http://localhost:3000
NEXT_PUBLIC_API_URL=http://localhost:3000/api
# Optional: CDN origin for immutable Next.js build assets only. Leave empty
# until the CDN is configured to proxy `/_next/static/*` back to this app and
# return CORS headers for font files. Example: https://static.stylekit.top
NEXT_PUBLIC_ASSET_PREFIX=
# Optional: set to "true" to bypass login with a mock user in development
NEXT_PUBLIC_DEV_MOCK_USER=
# Supabase (public, safe for browser)
NEXT_PUBLIC_SUPABASE_URL=https://your-project-ref.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-supabase-anon-key
# Supabase (server-only, do NOT add NEXT_PUBLIC_ prefix)
SUPABASE_SERVICE_ROLE_KEY=your-supabase-service-role-key
# Optional: comma-separated user IDs allowed for admin routes
ADMIN_USER_IDS=
# Optional: bearer token for admin API access
ADMIN_API_TOKEN=
# Optional: password login for a standalone admin deployment
ADMIN_PASSWORD=
# Optional: SHA-256 hex digest alternative to ADMIN_PASSWORD
ADMIN_PASSWORD_SHA256=
# Optional: long random secret used to sign admin password sessions
ADMIN_SESSION_SECRET=
# Optional: admin password session lifetime in seconds (default 43200)
ADMIN_SESSION_MAX_AGE_SECONDS=43200
# Optional: max rows per admin audit CSV export (default 5000)
ADMIN_AUDIT_EXPORT_MAX_ROWS=5000
# Keep empty until a real, auditable checkout or deposit flow is implemented.
PACK_CHECKOUT_PROVIDER=
# Optional: retention window in days for admin audit logs (default 30)
ADMIN_AUDIT_RETENTION_DAYS=30
# Optional: additional trusted origins for CSRF checks (comma-separated)
CSRF_TRUSTED_ORIGINS=
# Email login OTP. AUTH_SMTP_* overrides the feedback SMTP settings below;
# when omitted, email login reuses FEEDBACK_SMTP_*.
EMAIL_OTP_SECRET=
# Only set this when the reverse proxy overwrites/appends this header and the
# app cannot be reached directly. Example for the production nginx setup:
# TRUSTED_CLIENT_IP_HEADER=x-forwarded-for
# Analytics uses this only for a generous abuse ceiling; browser UUIDs have
# independent event budgets, so an office/NAT does not share one visitor quota.
# When unset, unidentified requests share a bounded site-wide fallback. Configure
# the trusted proxy header in production; never trust caller-supplied XFF directly.
TRUSTED_CLIENT_IP_HEADER=
AUTH_SMTP_HOST=
AUTH_SMTP_PORT=465
AUTH_SMTP_USER=
AUTH_SMTP_PASS=
AUTH_SMTP_FROM=
# Linux DO Connect OAuth (apply at https://connect.linux.do/dash/sso)
LINUXDO_CLIENT_ID=
LINUXDO_CLIENT_SECRET=
# Optional: override Linux DO base URL for server-to-server calls (token + user
# info). Use this when the host network cannot reach connect.linux.do directly,
# e.g. point to a Cloudflare Worker that proxies the official endpoint.
# Default: https://connect.linux.do
LINUXDO_BASE_URL=
# NodeLoc OAuth Provider (apply at https://www.nodeloc.com/oauth-provider/applications)
NODELOC_CLIENT_ID=
NODELOC_CLIENT_SECRET=
# Optional: override the NodeLoc API host. Default: https://www.nodeloc.com
NODELOC_BASE_URL=
# Sentry error monitoring (get DSN from https://sentry.io)
NEXT_PUBLIC_SENTRY_DSN=
# SEO: Search engine verification codes
# Google: https://search.google.com/search-console
GOOGLE_SITE_VERIFICATION=
# Bing: https://www.bing.com/webmasters
BING_SITE_VERIFICATION=
# Feedback form SMTP (changelog "send feedback" form → your inbox).
# Server-only; never commit real values. The pass is the mailbox SMTP
# "authorization code" (not the login password) from your email settings.
# QQ: FEEDBACK_SMTP_HOST=smtp.qq.com FEEDBACK_SMTP_PORT=465
# 163: FEEDBACK_SMTP_HOST=smtp.163.com FEEDBACK_SMTP_PORT=465
FEEDBACK_SMTP_HOST=
FEEDBACK_SMTP_PORT=465
FEEDBACK_SMTP_USER=
FEEDBACK_SMTP_PASS=
FEEDBACK_TO=
# Bailian / DashScope Style Advisor (server-side only)
# Use replay mode when this is empty; never expose the key through NEXT_PUBLIC_.
DASHSCOPE_API_KEY=
DASHSCOPE_MODEL=qwen3.7-max
DASHSCOPE_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions
STYLE_ADVISOR_PROVIDER=dashscope
DEEPSEEK_API_KEY=
DEEPSEEK_MODEL=deepseek-chat
DEEPSEEK_BASE_URL=https://api.deepseek.com/chat/completions
# Umami (self-hosted analytics)
# Read on the server when the document is rendered, so changing them only needs
# a service restart — no rebuild. The NEXT_PUBLIC_* names are still accepted as
# a fallback, but they are inlined at build time: a build without them silently
# ships no tracker at all. Prefer the plain names.
# Leave either empty to disable the tracker script entirely.
UMAMI_SCRIPT_URL=
UMAMI_WEBSITE_ID=
# Optional dedicated storage for version 2 analytics. Set BOTH server-only
# values to send new browser events and reports to the self-hosted service.
# Legacy requests, authentication and business data remain in Supabase.
# Use HTTPS, or loopback HTTP through a dedicated encrypted SSH tunnel. Local
# fixtures may also use loopback HTTP; public plain HTTP is rejected. A partial
# configuration or outage fails closed and never falls back to Supabase.
# The base URL may include the private reverse-proxy path; do not add /events.
ANALYTICS_BACKEND_URL=
ANALYTICS_BACKEND_TOKEN=