231ed083be
- Custom /api/register route: honeypot, disposable email blocking, Cloudflare Turnstile verification - Register form: honeypot hidden field, Turnstile widget (loads when NEXT_PUBLIC_TURNSTILE_SITE_KEY set) - Install disposable-email-domains package - Add NEXT_PUBLIC_TURNSTILE_SITE_KEY and TURNSTILE_SECRET_KEY env vars to .env.example Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
21 lines
612 B
Bash
21 lines
612 B
Bash
DATABASE_URL="postgresql://lms_user:password@localhost:5432/lms_db"
|
|
|
|
BETTER_AUTH_SECRET="generate-with: openssl rand -base64 32"
|
|
BETTER_AUTH_URL="http://localhost:3000"
|
|
|
|
RESEND_API_KEY=""
|
|
EMAIL_FROM="noreply@school.second-brain.ru"
|
|
|
|
S3_ENDPOINT="https://nbg1.your-objectstorage.com"
|
|
S3_BUCKET="second-brain-lms"
|
|
S3_ACCESS_KEY=""
|
|
S3_SECRET_KEY=""
|
|
S3_REGION="eu-central"
|
|
|
|
# Cloudflare Turnstile (anti-bot защита на регистрации)
|
|
NEXT_PUBLIC_TURNSTILE_SITE_KEY=""
|
|
TURNSTILE_SECRET_KEY=""
|
|
|
|
# Kinescope (добавить при получении платного плана)
|
|
# KINESCOPE_API_KEY=""
|