-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathenv.example
More file actions
123 lines (105 loc) · 4.28 KB
/
env.example
File metadata and controls
123 lines (105 loc) · 4.28 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
# =============================================================================
# LynxPrompt v2.0 Environment Variables
# Copy this file to .env and fill in your values
# =============================================================================
# =============================================================================
# DATABASE
# =============================================================================
# Option A: Full connection strings (traditional)
# DATABASE_URL_APP=postgresql://lynxprompt:changeme@localhost:5432/lynxprompt?schema=public
# DATABASE_URL_USERS=postgresql://lynxprompt:changeme@localhost:5432/lynxprompt?schema=public
# DATABASE_URL_BLOG=postgresql://lynxprompt:changeme@localhost:5432/lynxprompt?schema=public
# DATABASE_URL_SUPPORT=postgresql://lynxprompt:changeme@localhost:5432/lynxprompt?schema=public
# Option B: Individual components (recommended for docker-compose deployments)
# The entrypoint constructs DATABASE_URL_* automatically from these.
# Define the password ONCE — share it between Postgres and the app.
DB_APP_HOST=localhost
DB_APP_PORT=5432
DB_APP_USER=lynxprompt_app
DB_APP_PASSWORD=changeme
DB_APP_NAME=lynxprompt_app
DB_USERS_HOST=localhost
DB_USERS_PORT=5432
DB_USERS_USER=lynxprompt_users
DB_USERS_PASSWORD=changeme
DB_USERS_NAME=lynxprompt_users
DB_BLOG_HOST=localhost
DB_BLOG_PORT=5432
DB_BLOG_USER=lynxprompt_blog
DB_BLOG_PASSWORD=changeme
DB_BLOG_NAME=lynxprompt_blog
DB_SUPPORT_HOST=localhost
DB_SUPPORT_PORT=5432
DB_SUPPORT_USER=lynxprompt_support
DB_SUPPORT_PASSWORD=changeme
DB_SUPPORT_NAME=lynxprompt_support
# =============================================================================
# AUTHENTICATION
# =============================================================================
# Required: generate with `openssl rand -base64 32`
NEXTAUTH_SECRET=your-super-secret-key-change-this
NEXTAUTH_URL=http://localhost:3000
# GitHub OAuth (optional, set ENABLE_GITHUB_OAUTH=true to activate)
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
# Google OAuth (optional, set ENABLE_GOOGLE_OAUTH=true to activate)
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
# Email / SMTP (for magic link login)
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=
SMTP_PASSWORD=
SMTP_FROM=noreply@example.com
SMTP_FROM_NAME=LynxPrompt
# =============================================================================
# FEATURE FLAGS (all have sensible defaults for self-hosting)
# =============================================================================
# Auth methods
ENABLE_GITHUB_OAUTH=false
ENABLE_GOOGLE_OAUTH=false
ENABLE_EMAIL_AUTH=true
ENABLE_PASSKEYS=true
ENABLE_TURNSTILE=false
ENABLE_SSO=false
ENABLE_USER_REGISTRATION=true
# AI features (requires ANTHROPIC_API_KEY)
ENABLE_AI=false
AI_MODEL=claude-3-5-haiku-latest
ANTHROPIC_API_KEY=
# Content modules
ENABLE_BLOG=false
ENABLE_SUPPORT_FORUM=false
# =============================================================================
# BRANDING
# =============================================================================
APP_NAME=LynxPrompt
APP_URL=http://localhost:3000
APP_LOGO_URL=
# =============================================================================
# ADMIN
# =============================================================================
# Auto-promote this email to SUPERADMIN on first sign-in
SUPERADMIN_EMAIL=
# =============================================================================
# OPTIONAL SERVICES
# =============================================================================
# Cloudflare Turnstile (requires ENABLE_TURNSTILE=true)
NEXT_PUBLIC_TURNSTILE_SITE_KEY=
TURNSTILE_SECRET_KEY=
# Analytics (Umami, self-hosted)
UMAMI_SCRIPT_URL=
NEXT_PUBLIC_UMAMI_WEBSITE_ID=
# =============================================================================
# FEDERATION (instance discovery network)
# =============================================================================
# Enable federation: instance serves /.well-known/lynxprompt.json and auto-registers
ENABLE_FEDERATION=true
# Registry URL: where instances register (defaults to lynxprompt.com)
FEDERATION_REGISTRY_URL=https://lynxprompt.com
# =============================================================================
# CONTACT & SUPPORT
# =============================================================================
CONTACT_EMAIL=
STATUS_PAGE_URL=
PLATFORM_OWNER_EMAIL=