Some checks failed
CI / skip-ci-check (pull_request) Successful in 1m4s
CI / lint-and-type-check (pull_request) Has been cancelled
CI / python-lint (pull_request) Has been cancelled
CI / test-backend (pull_request) Has been cancelled
CI / build (pull_request) Has been cancelled
CI / secret-scanning (pull_request) Has been cancelled
CI / dependency-scan (pull_request) Has been cancelled
CI / sast-scan (pull_request) Has been cancelled
CI / workflow-summary (pull_request) Has been cancelled
Add on-demand H.264/AAC web playback (RQ, ffmpeg) with API routes and Next.js proxies; extend admin UI with WebPlaybackVideo and shared hooks. Store transcode cache beside pending-photos (WEB_VIDEO_CACHE_DIR / UPLOAD_DIR) and ignore data/web_videos. Centralize FastAPI URL helpers, optional Vite and Next base paths for subfolder deploy, and fix modal reopen by using router.replace when closing the home photo viewer. Include migration, install scripts, deployment doc updates, and CI admin build env tweak. Made-with: Cursor
42 lines
1.3 KiB
Plaintext
42 lines
1.3 KiB
Plaintext
# Viewer frontend env (copy to ".env" and edit values)
|
|
|
|
# Prisma DB URLs (note: no "+psycopg2" here)
|
|
DATABASE_URL=postgresql://punimtag:CHANGE_ME@127.0.0.1:5432/punimtag
|
|
DATABASE_URL_AUTH=postgresql://punimtag_auth:CHANGE_ME@127.0.0.1:5432/punimtag_auth
|
|
|
|
# FastAPI mount URL for server-side proxies (thumbnails, web-playback)—no trailing slash.
|
|
# Local: origin only (helper adds /api/v1/...).
|
|
BACKEND_BASE_URL=http://127.0.0.1:8000
|
|
# Production (public URL through your reverse proxy), e.g.:
|
|
# BACKEND_BASE_URL=https://jrccphotos.org/punim-api
|
|
# Same machine as Next: http://127.0.0.1:8000 is also valid.
|
|
|
|
# Production subpath for the Next app (no trailing slash). Local: leave unset.
|
|
# NEXT_BASE_PATH=/punim-viewer
|
|
|
|
|
|
# NextAuth
|
|
NEXTAUTH_URL=http://127.0.0.1:3001
|
|
NEXTAUTH_SECRET=CHANGE_ME_TO_A_LONG_RANDOM_STRING
|
|
AUTH_URL=http://127.0.0.1:3001
|
|
|
|
# Email provider (smtp or resend)
|
|
EMAIL_PROVIDER=smtp
|
|
|
|
# SMTP (primary)
|
|
SMTP_HOST=mail.your-domain.com
|
|
SMTP_PORT=465
|
|
SMTP_SECURE=true
|
|
SMTP_USER=mailer@your-domain.com
|
|
SMTP_PASS=CHANGE_ME
|
|
SMTP_FROM_EMAIL=noreply@your-domain.com
|
|
SMTP_FROM_NAME=PunimTag
|
|
SMTP_REPLY_TO=support@your-domain.com
|
|
|
|
# Resend (fallback)
|
|
RESEND_API_KEY=CHANGE_ME_secret-key
|
|
RESEND_FROM_EMAIL="onboarding@resend.dev"
|
|
RESEND_FROM_NAME=PunimTag
|
|
RESEND_REPLY_TO=support@your-domain.com
|
|
UPLOAD_DIR="/mnt/db-server-uploads/pending-photos"
|