-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
53 lines (46 loc) · 1.96 KB
/
.env.example
File metadata and controls
53 lines (46 loc) · 1.96 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
# Core application environment variables
# Database
DATABASE_URL=postgresql://user:password@host:5432/dbname
# Clerk (Auth)
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_xxxxxxxxxxxxxxxxxxxxx
CLERK_SECRET_KEY=sk_test_xxxxxxxxxxxxxxxxxxxxx
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
NEXT_PUBLIC_CLERK_SIGN_IN_FALLBACK_REDIRECT_URL=/documents
NEXT_PUBLIC_CLERK_SIGN_UP_FALLBACK_REDIRECT_URL=/documents
# S3-Compatible Storage (File storage)
# Supports AWS S3, Cloudflare R2, MinIO, DigitalOcean Spaces, Backblaze B2, etc.
#
# Required settings:
S3_BUCKET=your-bucket-name
S3_ACCESS_KEY_ID=your-access-key-id
S3_SECRET_ACCESS_KEY=your-secret-access-key
S3_REGION=auto
#
# For non-AWS providers, set the endpoint:
# S3_ENDPOINT=https://your-account-id.r2.cloudflarestorage.com # Cloudflare R2
# S3_ENDPOINT=https://nyc3.digitaloceanspaces.com # DigitalOcean Spaces
# S3_ENDPOINT=http://localhost:9000 # MinIO local
#
# Public URL for file access (required for R2, optional for AWS S3):
# S3_PUBLIC_URL=https://pub-xxxxx.r2.dev # R2 public bucket
# S3_PUBLIC_URL=https://cdn.yourdomain.com # Custom CDN domain
#
# For MinIO and some S3-compatible providers, enable path-style URLs:
# S3_FORCE_PATH_STYLE=true
#
# Legacy AWS-prefixed variables (for backwards compatibility):
# AWS_REGION=us-east-1
# AWS_S3_BUCKET_NAME=your-bucket-name
# AWS_ACCESS_KEY_ID=AKIAxxxxxxxxxxxxxxx
# AWS_SECRET_ACCESS_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# Cleanup API (File cleanup from storage)
# Generate a secure random key, e.g.: openssl rand -hex 32
CLEANUP_API_KEY=your-secure-cleanup-api-key
# Document constraints
# Maximum allowed markdown document size in bytes.
# Server uses DOCUMENT_MAX_BYTES (authoritative), client reads NEXT_PUBLIC_DOCUMENT_MAX_BYTES for pre-check.
DOCUMENT_MAX_BYTES=200000
NEXT_PUBLIC_DOCUMENT_MAX_BYTES=200000
# Next.js
NEXT_PUBLIC_APP_URL=http://localhost:3000