-
-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathconfig.properties.example
More file actions
117 lines (94 loc) · 4.52 KB
/
config.properties.example
File metadata and controls
117 lines (94 loc) · 4.52 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
# ============================================
# 7-Project Supabase Configuration Example
# ============================================
# Copy this file to config.properties and add your credentials
# config.properties is gitignored and will not be committed
# ============================================
# SINGLE PROJECT SETUP (500MB)
# ============================================
# Use the same URL and key for all 7 projects
# Perfect for personal use - just fill in one project!
# Project 1 - Auth (User authentication and profiles)
supabase.auth.url=https://your-project.supabase.co
supabase.auth.key=your-anon-key-here
# Project 2 - Reading (Reading progress tracking)
supabase.reading.url=https://your-project.supabase.co
supabase.reading.key=your-anon-key-here
# Project 3 - Library (Synced books library)
supabase.library.url=https://your-project.supabase.co
supabase.library.key=your-anon-key-here
# Project 4 - Book Reviews (Book reviews and ratings)
supabase.book_reviews.url=https://your-project.supabase.co
supabase.book_reviews.key=your-anon-key-here
# Project 5 - Chapter Reviews (Chapter reviews and ratings)
supabase.chapter_reviews.url=https://your-project.supabase.co
supabase.chapter_reviews.key=your-anon-key-here
# Project 6 - Badges (Badge system and NFT integration)
supabase.badges.url=https://your-project.supabase.co
supabase.badges.key=your-anon-key-here
# Project 7 - Analytics (Leaderboard and statistics)
supabase.analytics.url=https://your-project.supabase.co
supabase.analytics.key=your-anon-key-here
# ============================================
# OTHER CONFIGURATION
# ============================================
WALLET_USE_BROWSER=true
# ============================================
# CLOUDFLARE R2 STORAGE (Character Art)
# ============================================
# Free tier: 10GB storage, 10M reads/month, 1M writes/month
# No egress fees! See docs/CLOUDFLARE_R2_SETUP.md for setup guide
# Your Cloudflare Account ID (from R2 dashboard)
r2.accountId=your-account-id-here
# API Token credentials (create at R2 > Manage API Tokens)
r2.accessKeyId=your-access-key-id-here
r2.secretAccessKey=your-secret-access-key-here
# Bucket name (create in R2 dashboard)
r2.bucketName=ireader-character-art
# Public URL for serving images (enable public access in bucket settings)
r2.publicUrl=https://pub-your-bucket-id.r2.dev
# ============================================
# GEMINI AI (Character Art Generation)
# ============================================
# Optional: Users can enter their own API key in the app
# Get free API key at: https://aistudio.google.com/apikey
#
# Note: API key is entered by users in the app UI, not stored here
# This section is for documentation only
# ============================================
# NOTES
# ============================================
# 1. Get your Supabase URL and anon key from:
# https://supabase.com/dashboard/project/YOUR_PROJECT/settings/api
# 2. For single project: Use same URL/key for all 7 entries above
# 3. For multi-project: Use different URL/key for each entry
# 4. Never commit config.properties to git (it's in .gitignore)
# 5. Use anon/public keys only (NOT service_role keys)
# 6. Deploy appropriate SQL schemas to your project(s)
# 7. See QUICK_START_7PROJECT.md for detailed setup guide
# ============================================
# CLOUDFLARE D1 + R2 (Community Translations)
# ============================================
# Optional: Pre-configure community translation storage
# Users can override these in Settings → Community Source
# See docs/CLOUDFLARE_COMMUNITY_TRANSLATIONS.md for setup guide
# Cloudflare Account ID (from dashboard URL)
# community.cloudflare.accountId=your-account-id
# API Token with D1 and R2 permissions
# community.cloudflare.apiToken=your-api-token
# D1 Database ID for translation metadata
# community.d1.databaseId=your-d1-database-id
# R2 Bucket name for translation content
# community.r2.bucketName=ireader-community-translations
# R2 Public URL (REQUIRED for downloads - enable public access in R2 bucket settings)
# Get this from: R2 Dashboard → Your Bucket → Settings → Public access → r2.dev subdomain
# community.r2.publicUrl=https://pub-your-bucket-id.r2.dev
# ============================================
# MULTI-PROJECT SETUP (3.5GB) - ADVANCED
# ============================================
# For maximum storage, create 7 separate projects
# and replace the URLs and keys above with different values
# Example:
# supabase.auth.url=https://auth-abc123.supabase.co
# supabase.reading.url=https://reading-def456.supabase.co
# ... etc