Some checks failed
CI / skip-ci-check (pull_request) Successful in 29s
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
- Added support for sending emails using SMTP configuration or Resend API as a fallback. - Updated environment variables in .env_example for SMTP settings. - Enhanced email confirmation process with improved error handling and fallback logic. - Introduced a test script to validate email sending configuration and functionality.
32 lines
889 B
Plaintext
32 lines
889 B
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
|
|
|
|
|
|
# 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"
|