-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
78 lines (69 loc) · 3.13 KB
/
Copy path.env.example
File metadata and controls
78 lines (69 loc) · 3.13 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
# ============================================
# Socials — Environment Configuration
# ============================================
# Copy this to .env and fill in your values
# NEVER commit real secrets to this file!
# ---- Microsoft Dataverse ----
DATAVERSE_URL=https://your-org.api.crm5.dynamics.com/api/data/v9.2
DATAVERSE_CLIENT_ID=your-client-id
DATAVERSE_CLIENT_SECRET=your-client-secret
DATAVERSE_TENANT_ID=your-tenant-id
# ---- YouTube Data API ----
YOUTUBE_API_KEY=your-youtube-api-key
YOUTUBE_CHANNEL_ID=your-channel-id
# OAuth client (scripts use YT_*; YOUTUBE_CLIENT_* aliases also work)
YT_CLIENT_ID=your-youtube-client-id.apps.googleusercontent.com
YT_CLIENT_SECRET=your-youtube-client-secret
YT_REDIRECT_URI=http://localhost:3000/oauth2callback
YOUTUBE_CLIENT_ID=your-youtube-client-id.apps.googleusercontent.com
YOUTUBE_CLIENT_SECRET=your-youtube-client-secret
# Watch hours (YouTube Analytics) — see docs/youtube-analytics-oauth.md
# YOUTUBE_REFRESH_TOKEN=
# ---- Facebook Graph API ----
FACEBOOK_APP_ID=your-facebook-app-id
FACEBOOK_APP_SECRET=your-facebook-app-secret
FACEBOOK_PAGE_ID=your-facebook-page-id
FACEBOOK_PAGE_ACCESS_TOKEN=your-facebook-page-access-token
# ---- Instagram API (uses Facebook Graph API) ----
INSTAGRAM_BUSINESS_ACCOUNT_ID=your-instagram-business-account-id
INSTAGRAM_ACCESS_TOKEN=your-instagram-access-token
# ---- TikTok API ----
TIKTOK_CLIENT_KEY=your-tiktok-client-key
TIKTOK_CLIENT_SECRET=your-tiktok-client-secret
# Sandbox credentials (DIFFERENT from Production — required while app is In review)
# TIKTOK_SANDBOX_CLIENT_KEY=
# TIKTOK_SANDBOX_CLIENT_SECRET=
TIKTOK_USERNAME=homeworkpalette
# Login Kit user token (preferred for follower counts)
# Sandbox authorize: https://socials-seven-beta.vercel.app/api/tiktok/authorize?env=sandbox
# TIKTOK_ACCESS_TOKEN=
# TIKTOK_REFRESH_TOKEN=
# TIKTOK_OPEN_ID=
# TIKTOK_REDIRECT_URI=https://socials-seven-beta.vercel.app/api/tiktok/callback
# ---- App Store Connect (Homework Palette) ----
ASC_ISSUER_ID=your-asc-issuer-uuid
ASC_KEY_ID=4QC42LKSR9
# Prefer inline PEM on Vercel (\\n newlines). Locally you can use a path instead.
# ASC_PRIVATE_KEY="-----BEGIN PRIVATE KEY-----\\n...\\n-----END PRIVATE KEY-----"
ASC_PRIVATE_KEY_PATH=/absolute/path/to/AuthKey_XXXXXXXXXX.p8
ASC_BUNDLE_ID=com.pagnarith.homeworkpalette
# Payments and Financial Reports → Vendor Number (required for real download totals)
# ASC_VENDOR_NUMBER=12345678
# ASC Analytics ONGOING request id (App Downloads Standard)
# ASC_ANALYTICS_REQUEST_ID=
# Optional Sales TSV SKU filter
# ASC_SKU=
# ---- Telegram Bot ----
TELEGRAM_BOT_TOKEN=your-telegram-bot-token
TELEGRAM_CHANNEL_ID=your-telegram-channel-id
TELEGRAM_ADMIN_ID=your-telegram-user-id
# Must match Vercel production when using set:telegram-webhook (random string, 1–256 chars)
TELEGRAM_WEBHOOK_SECRET=your-telegram-webhook-secret
TELEGRAM_WEBHOOK_BASE_URL=https://your-vercel-deployment.vercel.app
# ---- Dashboard ----
NEXTAUTH_SECRET=your-nextauth-secret
NEXTAUTH_URL=http://localhost:3000
# Live metrics API (Vercel). Dashboard on GitHub Pages fetches this.
NEXT_PUBLIC_METRICS_API_BASE=https://socials-seven-beta.vercel.app
# ---- General ----
NODE_ENV=development