-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
54 lines (41 loc) · 1.86 KB
/
Copy path.env.example
File metadata and controls
54 lines (41 loc) · 1.86 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
# Server Configuration
PORT=8080
# Firebase Configuration
FIREBASE_PROJECT_ID=your-project-id
FIREBASE_BUCKET_NAME=your-project-id.appspot.com
# Firebase Credentials (choose one method)
# Method 1: File path (for local development and Docker)
FIREBASE_CREDENTIALS_PATH=firebase-service-account.json
# Method 2: JSON string (for Vercel and other serverless platforms)
# FIREBASE_CREDENTIALS_JSON={"type":"service_account","project_id":"..."}
# Firestore Configuration
FIRESTORE_COLLECTION=images
# Cache Configuration
# Note: Reduced to 15m for serverless (matches signed URL expiration)
CACHE_TTL=15m
CACHE_CLEANUP_INTERVAL=10m
# API Security (REQUIRED)
# Generate secure random keys with: openssl rand -hex 32
# Comma-separated list of valid API keys for authentication
# ALL endpoints except /health require authentication
API_KEYS=your-secure-key-1,your-secure-key-2
# CORS Configuration
# Use "*" for development, restrict to specific origins in production
ALLOWED_ORIGINS=*
# Google Drive Sync Configuration (optional - only needed for sync functionality)
# The folder ID from your Google Drive folder URL
# Example: https://drive.google.com/drive/folders/FOLDER_ID_HERE
GOOGLE_DRIVE_FOLDER_ID=
# Google Drive Authentication (choose one method)
# Method 1: API Key (simpler, read-only access)
GOOGLE_API_KEY=
# Method 2: Service Account (same as Firebase, requires folder sharing)
# Use the Firebase credentials configured above
# Background Drive Sync (runs automatically when server starts)
# Set to true to enable automatic syncing of new files from Google Drive
ENABLE_DRIVE_SYNC=false
# How often to check Google Drive for new files (examples: 5m, 10m, 1h)
DRIVE_SYNC_INTERVAL=5m
# Run one-time backfill on server startup (syncs all existing Drive files before starting watch)
# Useful for initial setup or after adding new files manually to Drive
DRIVE_BACKFILL_ON_STARTUP=false