Email: - Add nodemailer; rewrite lib/email.ts to send via configured SMTP (Proton Mail Bridge) first, Resend fallback, then dev simulation. - Forward SMTP_* env to web and add protonmail-bridge service in compose. - Document Proton Bridge SMTP vars in .env.example files; add test-smtp.mjs. Apply: - OneClickApplyModal now opens the job's real posting URL (company/ATS site) in a new tab as the primary action when jobUrl is present, and records the external application so the card shows 'Applied'. - Internal one-click snapshot flow retained for jobs without an external URL. - POST /api/applications accepts external:true (skips profile completeness) and records an external application.
22 lines
814 B
Text
22 lines
814 B
Text
# Environment Configuration Template
|
|
# Copy this file to .env and replace placeholders with real secret values.
|
|
|
|
# Database
|
|
DATABASE_URL="file:./dev.db"
|
|
|
|
# NextAuth Authentication Secret & URL
|
|
NEXTAUTH_URL="http://localhost:3000"
|
|
NEXTAUTH_SECRET="generate-a-secure-random-secret-key-32-chars-minimum"
|
|
|
|
# SMTP Email Configuration (Alerts, Verification & Password Resets)
|
|
# In Docker this is supplied by docker-compose from the root .env. For local
|
|
# dev without the Bridge, point SMTP_HOST at any SMTP server you control.
|
|
# With Proton Mail Bridge the relay is `protonmail-bridge` on port 25 (STARTTLS).
|
|
SMTP_HOST="protonmail-bridge"
|
|
SMTP_PORT="25"
|
|
SMTP_USER="you@proton.me"
|
|
SMTP_PASS="your-proton-bridge-app-password"
|
|
SMTP_FROM="JobsBoard <notifications@yourdomain.com>"
|
|
|
|
# Environment Mode
|
|
NODE_ENV="development"
|