-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
89 lines (75 loc) · 5.78 KB
/
Copy path.env.example
File metadata and controls
89 lines (75 loc) · 5.78 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
# ─────────────────────────────────────────────────────────────────────────────
# DEMO-CMS-QUICDECODE — Environment Variables Template
# ─────────────────────────────────────────────────────────────────────────────
# This file documents all environment variables used by the dashboard.
#
# For LOCAL DEVELOPMENT (astro dev):
# Copy this file to .env and fill in your values.
# Example: cp .env.example .env
#
# For CLOUDFLARE WORKER DEPLOYMENT:
# - Non-secret vars (URLs, zone tags) → set in wrangler.deploy.json > "vars"
# - Secret vars (API keys, credentials) → set via: npx wrangler secret put VAR_NAME
#
# ─────────────────────────────────────────────────────────────────────────────
# ── GitHub Personal Access Token ─────────────────────────────────────────────
# Required for reading/writing blog posts to your GitHub repository.
# Scopes needed: repo (full)
# Generate at: https://github.com/settings/tokens
GITHUB_PAT="ghp_YOUR_GITHUB_PERSONAL_ACCESS_TOKEN"
# ── Gemini API Key ───────────────────────────────────────────────────────────
# Used for AI-powered content generation features.
# Get it from: https://aistudio.google.com/app/apikey
GEMINI_API_KEY="YOUR_GEMINI_API_KEY"
# ── Stock Image API Keys ─────────────────────────────────────────────────────
# Used for the stock image search feature in the editor.
# Pexels: https://www.pexels.com/api/
PEXELS_API_KEY="YOUR_PEXELS_API_KEY"
# Pixabay: https://pixabay.com/api/docs/
PIXABAY_API_KEY="YOUR_PIXABAY_API_KEY"
# Unsplash: https://unsplash.com/developers
UNSPLASH_API_KEY="YOUR_UNSPLASH_API_KEY"
# ── GNews API Key ────────────────────────────────────────────────────────────
# Used for fetching news articles as content ideas.
# Get it from: https://gnews.io/
GNEWS_API_KEY="YOUR_GNEWS_API_KEY"
# ── Cloudflare Analytics ─────────────────────────────────────────────────────
# Your Cloudflare Account ID
# Find it at: Cloudflare Dashboard > bottom-right of any zone
CF_ACCOUNT_ID="YOUR_CLOUDFLARE_ACCOUNT_ID"
# Cloudflare Analytics API Token (needs Analytics:Read permission)
CF_ANALYTICS_API_TOKEN="YOUR_CF_ANALYTICS_API_TOKEN"
# ── Public URLs (also set in wrangler.deploy.json > vars) ────────────────────
# Public CDN URL for your R2 image bucket
IMAGE_PUBLIC_BASE_URL="https://images.YOUR-DOMAIN.com"
# Public URL of your blog
BLOG_BASE_URL="https://YOUR-BLOG-DOMAIN.com"
# ── Google Search Console (OAuth) ────────────────────────────────────────────
# Required for the Google indexing / Search Console features.
# Follow scripts/get-refresh-token.mjs to obtain these.
# Set up OAuth credentials at: https://console.cloud.google.com/
GOOGLE_CLIENT_ID="YOUR_GOOGLE_CLIENT_ID"
GOOGLE_CLIENT_SECRET="YOUR_GOOGLE_CLIENT_SECRET"
GOOGLE_REFRESH_TOKEN="YOUR_GOOGLE_REFRESH_TOKEN"
# ── Bing Webmaster Tools ─────────────────────────────────────────────────────
# Required for Bing SEO ping / IndexNow features.
# Get API key at: https://www.bing.com/webmasters/
BING_WEBMASTER_API_KEY="YOUR_BING_WEBMASTER_API_KEY"
# ── Dashboard Login Users ────────────────────────────────────────────────────
# JSON array of user credentials (stored as PBKDF2-SHA256 hash).
#
# Format: [{"email":"user@example.com","hash":"SALT:HASH","role":"admin"}]
# Role can be: "admin" or "assistant"
#
# To generate a hash for your password, run:
# npm run hash-password yourpassword
#
# DEMO CREDENTIALS (change before production use):
# Email: admin@example.com
# Password: Admin@1234
USERS_JSON='[{"email":"admin@example.com","hash":"0814818064fca21be77496018ca0391c:48dee2276e08e765f1c4dd5d4d9993ec004fc4c0a73c15ea3682e60861211500","role":"admin"}]'
# ── Firebase Push Notifications ──────────────────────────────────────────────
# Firebase Admin SDK service account JSON (single line, no newlines).
# Get it from: Firebase Console > Project Settings > Service Accounts
# IMPORTANT: Keep this secret — never commit to public repos.
FIREBASE_SERVICE_ACCOUNT_JSON='{"type":"service_account","project_id":"YOUR_PROJECT_ID","private_key_id":"YOUR_KEY_ID","private_key":"-----BEGIN PRIVATE KEY-----\nYOUR_PRIVATE_KEY\n-----END PRIVATE KEY-----\n","client_email":"YOUR_CLIENT_EMAIL","client_id":"YOUR_CLIENT_ID","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://oauth2.googleapis.com/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_x509_cert_url":"YOUR_CERT_URL","universe_domain":"googleapis.com"}'