Repository navigation
Expand file tree
/
Copy pathenv.example
More file actions
61 lines (56 loc) · 3.89 KB
/
Copy pathenv.example
File metadata and controls
61 lines (56 loc) · 3.89 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
# ─── Appwrite connection ──────────────────────────────────────────────────────
# Shared by the web app and the Appwrite Functions. The NEXT_PUBLIC_* names from
# the previous Next.js app are still read as a fallback.
APPWRITE_ENDPOINT=https://fra.cloud.appwrite.io/v1
APPWRITE_PROJECT_ID=63ef1792594ff4f50de2
# Appwrite Analytics property ID (public: it is sent from the browser). Tracking
# only runs on refetch.io and is a no-op when unset. The server reads the
# "refetchers online" count and visitors chart back from it (needs the
# analytics.read scope on APPWRITE_API_KEY).
APPWRITE_ANALYTICS_PROPERTY_ID=6ac5a51a002d1494faea
# Server key — never expose it to the browser. Scopes: rows.read, rows.write,
# tables.read (feeds, votes, comments), analytics.read (visitor stats). Sign-in
# runs in the browser, so no session scopes are needed. Functions need their own scopes (see README).
APPWRITE_API_KEY=your-server-api-key-here
# Optional: signs the session cookie (defaults to a key derived from the API key)
# SESSION_SECRET=
# ─── Tables DB (env names keep the legacy *_COLLECTION_ID suffix) ─────────────
APPWRITE_DATABASE_ID=688f787e002c78bd299f
APPWRITE_POSTS_COLLECTION_ID=688f78a20022f61836ff
APPWRITE_VOTES_COLLECTION_ID=68910fc60001839e0ada
APPWRITE_COMMENTS_COLLECTION_ID=68993e6c003af0fe657f
APPWRITE_KEYS_COLLECTION_ID=keys
APPWRITE_DAILY_TOPICS_COLLECTION_ID=daily_topics
APPWRITE_TOPICS_COLLECTION_ID=topics
# Channels (created by `npm run appwrite:setup`; these are the defaults)
APPWRITE_CHANNELS_COLLECTION_ID=channels
APPWRITE_CHANNEL_MEMBERS_COLLECTION_ID=channel_members
APPWRITE_CHANNEL_ICONS_BUCKET_ID=channel-icons
# People and messages (created by `npm run appwrite:setup`; these are the defaults)
APPWRITE_PROFILES_COLLECTION_ID=profiles
APPWRITE_FOLLOWS_COLLECTION_ID=user_follows
APPWRITE_BLOCKS_COLLECTION_ID=user_blocks
APPWRITE_CONVERSATIONS_COLLECTION_ID=conversations
APPWRITE_CONVERSATION_MEMBERS_COLLECTION_ID=conversation_members
APPWRITE_MESSAGES_COLLECTION_ID=messages
APPWRITE_MESSAGE_REACTIONS_COLLECTION_ID=message_reactions
# Notifications, saved stories and reports (created by `npm run appwrite:setup`)
APPWRITE_NOTIFICATIONS_COLLECTION_ID=notifications
APPWRITE_SAVES_COLLECTION_ID=saves
APPWRITE_REPORTS_COLLECTION_ID=reports
APPWRITE_MUTES_COLLECTION_ID=mutes
# ─── Web app ──────────────────────────────────────────────────────────────────
# Canonical public origin (SEO metadata, social cards). Defaults to https://refetch.io
SITE_URL=https://refetch.io
# Optional: comma-separated user IDs who can review reports at /moderation
# (accounts with the `moderator` or `admin` label can too)
# MODERATOR_USER_IDS=
# Shared secret for POST /api/digest, which the hourly Digest function calls to send
# the daily and weekly email digests. Set the same value on the function. Unset: no digests.
# DIGEST_SECRET=
# ─── OpenAI (Scout + Enhancement functions) ───────────────────────────────────
OPENAI_API_KEY=your-openai-api-key-here
# Optional; default gpt-4o-mini
OPENAI_MODEL=gpt-4o-mini
# ─── Scout function — comma-separated site roots to crawl ─────────────────────
SCOUT_TARGET_WEBSITES=https://techcrunch.com,https://theverge.com,https://arstechnica.com,https://wired.com,https://venturebeat.com,https://engadget.com,https://infoq.com,https://news.ycombinator.com,https://lobste.rs,https://reddit.com/r/programming,https://sciencedaily.com,https://nature.com/nature/technology,https://9to5mac.com,https://9to5google.com,https://theregister.com,https://zdnet.com,https://www.technologyreview.com/tag/the-algorithm