-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.env
More file actions
67 lines (56 loc) · 3.11 KB
/
Copy pathexample.env
File metadata and controls
67 lines (56 loc) · 3.11 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
# Environment variables declared in this file are automatically made available to Prisma.
# See the documentation for more detail: https://pris.ly/d/prisma-schema#accessing-environment-variables-from-the-schema
# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB.
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings
# Database credentials
DATABASE_URL="postgresql://johndoe:randompassword@localhost:5432/mydb?schema=public"
# Google secrets
AUTH_GOOGLE_ID=your_google_client_id
AUTH_GOOGLE_SECRET=your_google_client_secret
# Auth secret - generate a new one with: openssl rand -base64 32
AUTH_SECRET=your_auth_secret_here
# Comma-separated list of allowed emails
ALLOWED_EMAILS=you@email.com,wife@email.com
# API pagination defaults (optional; safe defaults used if unset)
# Default page size when not specified by clients
API_PAGE_DEFAULT_LIMIT=50
# Maximum allowed page size to prevent excessive load
API_PAGE_MAX_LIMIT=100
# Simple in-memory rate limiting (optional)
# Window length in milliseconds (default 60000)
RATE_LIMIT_WINDOW_MS=60000
# Max requests per window per IP+path (default 60)
RATE_LIMIT_MAX_REQUESTS=60
# Cloudflare R2 backup settings (used by scripts/backup-to-r2.sh)
# R2 required:
# R2_BUCKET=your-r2-bucket-name
# R2_ACCOUNT_ID=your-cloudflare-account-id
# R2_ACCESS_KEY_ID=your-r2-access-key-id
# R2_SECRET_ACCESS_KEY=your-r2-secret-access-key
# R2 optional (defaults shown):
# R2_REGION=auto
# R2_PREFIX=db-backups
# R2_ENDPOINT=https://<ACCOUNT_ID>.r2.cloudflarestorage.com
# BACKUP_LOCAL_DIR=.tmp/backups
# BACKUP_KEEP_LOCAL=0
# Proton Pass (pass-cli) reference style for local envs:
# DATABASE_URL=pass://help-tool-v1/env.local/DATABASE_URL
# AUTH_GOOGLE_ID=pass://help-tool-v1/env.local/AUTH_GOOGLE_ID
# AUTH_GOOGLE_SECRET=pass://help-tool-v1/env.local/AUTH_GOOGLE_SECRET
# AUTH_SECRET=pass://help-tool-v1/env.local/AUTH_SECRET
# ALLOWED_EMAILS=pass://help-tool-v1/env.local/ALLOWED_EMAILS
# API_PAGE_DEFAULT_LIMIT=pass://help-tool-v1/env.local/API_PAGE_DEFAULT_LIMIT
# API_PAGE_MAX_LIMIT=pass://help-tool-v1/env.local/API_PAGE_MAX_LIMIT
# RATE_LIMIT_WINDOW_MS=pass://help-tool-v1/env.local/RATE_LIMIT_WINDOW_MS
# RATE_LIMIT_MAX_REQUESTS=pass://help-tool-v1/env.local/RATE_LIMIT_MAX_REQUESTS
# R2 required (set these in Proton Pass):
# R2_BUCKET=pass://help-tool-v1/env.local/R2_BUCKET
# R2_ACCOUNT_ID=pass://help-tool-v1/env.local/R2_ACCOUNT_ID
# R2_ACCESS_KEY_ID=pass://help-tool-v1/env.local/R2_ACCESS_KEY_ID
# R2_SECRET_ACCESS_KEY=pass://help-tool-v1/env.local/R2_SECRET_ACCESS_KEY
# R2 optional (safe to skip; script defaults will be used):
# R2_REGION=pass://help-tool-v1/env.local/R2_REGION # default: auto
# R2_PREFIX=pass://help-tool-v1/env.local/R2_PREFIX # default: db-backups
# R2_ENDPOINT=pass://help-tool-v1/env.local/R2_ENDPOINT # default: https://<ACCOUNT_ID>.r2.cloudflarestorage.com
# BACKUP_LOCAL_DIR=pass://help-tool-v1/env.local/BACKUP_LOCAL_DIR # default: .tmp/backups
# BACKUP_KEEP_LOCAL=pass://help-tool-v1/env.local/BACKUP_KEEP_LOCAL # default: 0 (delete local dump)