Files
PAGIVA/.env.example
T
chaloemphong 9d32552457 Initial commit: page-manager Next.js app with Coolify deploy support
Replace Vercel-specific infra (Cron, Blob) with self-hosted equivalents
for deployment to Coolify: in-container cron scheduler
(scripts/cron-runner.mjs) and disk-based upload storage served via
/api/uploads/[...path]. Add Dockerfile, .dockerignore, and /api/health
for container health checks.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-11-22 11:52:17 +07:00

26 lines
1.3 KiB
Bash

DATABASE_URL="postgresql://user:pass@localhost:5432/page_manager"
# For prisma dev, use its separate shadow port; never point this at DATABASE_URL.
SHADOW_DATABASE_URL=""
SESSION_SECRET="" # long random string (jose HS256)
TOKEN_ENCRYPTION_KEY="" # npm run gen-key (32 bytes base64)
META_APP_ID=""
META_APP_SECRET="" # verifies webhook X-Hub-Signature-256
META_SYSTEM_USER_TOKEN="" # optional — pages can be connected via "Login with Facebook" instead
META_OAUTH_SCOPES="" # optional — override Facebook Login scopes (comma separated)
META_WEBHOOK_VERIFY_TOKEN="" # any random string, same value in App Dashboard
CRON_SECRET="" # also authenticates scripts/cron-runner.mjs inside the container
UPLOAD_DIR="" # optional — defaults to /app/.data/uploads; mount as a persistent volume
NEXT_PUBLIC_APP_URL="http://localhost:3000"
# Optional — "เข้าสู่ระบบด้วย Google" on /login (button hidden when empty).
# "เข้าสู่ระบบด้วย Facebook" uses META_APP_ID / META_APP_SECRET above.
GOOGLE_CLIENT_ID=""
GOOGLE_CLIENT_SECRET=""
# AI assistant (Claude API) — caption writer and shop-profile draft
ANTHROPIC_API_KEY=
# Analysis worker (PM2) only — leave empty to use "codex" from PATH
CODEX_BIN=
CODEX_MODEL=