-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathenv.example
More file actions
43 lines (35 loc) · 2.03 KB
/
Copy pathenv.example
File metadata and controls
43 lines (35 loc) · 2.03 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
# Environment Variables for FusionTik
# Copy this file to .env.local and fill in your own values.
# ── Site URL Configuration ───────────────────────────────────────────────────
NEXT_PUBLIC_SITE_URL=https://fusiontik.vercel.app
# ── MongoDB (global download counter — production) ───────────────────────────
# Create a free cluster at https://www.mongodb.com/atlas and paste the
# connection string (server-side only — no NEXT_PUBLIC_ prefix).
MONGODB_URI=mongodb+srv://<user>:<password>@<cluster>.mongodb.net/fusiontik?retryWrites=true&w=majority
# Optional: override database name if not included in the URI path
MONGODB_DB_NAME=fusiontik
# ── Rate limiting (Upstash Redis / Vercel KV — production) ───────────────────
# Vercel: Storage → KV → connect project (auto-fills KV_REST_API_*).
# Upstash: https://console.upstash.com → REST API credentials.
KV_REST_API_URL=
KV_REST_API_TOKEN=
# Or use Upstash-native env names:
# UPSTASH_REDIS_REST_URL=
# UPSTASH_REDIS_REST_TOKEN=
# Optional: extra allowed domains for API origin check (comma-separated)
# ALLOWED_ORIGIN_DOMAINS=mydomain.com,www.mydomain.com
# ── TikTok API Provider ──────────────────────────────────────────────────────
# TikWM endpoint (default: https://tikwm.com/api/)
TIKWM_API_URL=
# ── Error Notifications (all optional) ──────────────────────────────────────
# Webhook (any HTTP endpoint that accepts a JSON POST)
ALERT_WEBHOOK_URL=
# Telegram bot — send alerts to a Telegram chat
TELEGRAM_BOT_TOKEN=
TELEGRAM_CHAT_ID=
# Email via SMTP (e.g. Gmail App Password)
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=youremail@gmail.com
SMTP_PASS=your-app-password
ALERT_EMAIL_TO=owner@domain.com