-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
37 lines (29 loc) · 1.61 KB
/
.env.example
File metadata and controls
37 lines (29 loc) · 1.61 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
# Public app URL, ex: https://dev-swiss-knife.example.com
NEXT_PUBLIC_APP_URL=http://localhost:3000
# Optional defaults for in-memory API rate limiting
RATE_LIMIT_WINDOW_MS=60000
RATE_LIMIT_MAX=120
# Optional dedicated Postgres URL for shortener.
# If omitted, shortener falls back to SUPABASE_DB_URL, POSTGRES_URL or DATABASE_URL.
# SHORTENER_DATABASE_URL=postgresql://user:pass@host:5432/tools4dev?sslmode=require
# Optional Supabase Postgres URL shortcut (used when SHORTENER_DATABASE_URL is empty)
# SUPABASE_DB_URL=postgresql://postgres:password@db.<project-ref>.supabase.co:5432/postgres?sslmode=require
# Optional: enable Supabase HTTP mode for shortener (avoids direct Postgres connection)
# SHORTENER_USE_SUPABASE_HTTP=true
# SUPABASE_URL=https://<project-ref>.supabase.co
# SUPABASE_SERVICE_ROLE_KEY=your-service-role-key
# Vercel + Supabase integration usually exposes:
# POSTGRES_URL=postgresql://...
# POSTGRES_PRISMA_URL=postgresql://...
# POSTGRES_URL_NON_POOLING=postgresql://...
# If URL vars are absent, shortener also mounts from:
# POSTGRES_USER + POSTGRES_HOST + POSTGRES_DATABASE + POSTGRES_PASSWORD
# (optional: POSTGRES_PORT)
# Optional table name for shortener links
# Supports table or schema.table (ex.: public.short_links)
# SHORTENER_DATABASE_TABLE=public.short_links
# Optional: disables TLS certificate verification for shortener DB connection.
# Use only if your provider chain triggers "self-signed certificate in certificate chain".
# SHORTENER_DATABASE_SSL_NO_VERIFY=true
# Optional legacy JSON store fallback when no Postgres URL is configured
# SHORTENER_STORAGE_FILE=/tmp/tools4dev-shortlinks.json