43 lines
841 B
Plaintext
43 lines
841 B
Plaintext
# Postgres
|
|
DB_USER=postgres
|
|
DB_PASSWORD=password
|
|
DB_NAME=nestjs_blog
|
|
|
|
# Backend (NestJS)
|
|
NODE_ENV=production
|
|
HOST=0.0.0.0
|
|
BACKEND_PORT=3001
|
|
APP_URL=http://localhost:3001
|
|
|
|
DB_HOST=postgres
|
|
DB_PORT=5432
|
|
DB_SSL=false
|
|
|
|
JWT_ACCESS_SECRET=change-me-access-secret-at-least-32-chars
|
|
JWT_REFRESH_SECRET=change-me-refresh-secret-at-least-32-chars
|
|
JWT_ACCESS_EXPIRES_IN=15m
|
|
JWT_REFRESH_EXPIRES_IN=7d
|
|
|
|
MAGIC_LINK_TTL_MINUTES=20
|
|
PASSWORD_RESET_TTL_MINUTES=30
|
|
|
|
COOKIE_SECURE=false
|
|
COOKIE_DOMAIN=
|
|
|
|
MAIL_FROM=no-reply@blog.local
|
|
SMTP_HOST=
|
|
SMTP_PORT=587
|
|
SMTP_USER=
|
|
SMTP_PASS=
|
|
|
|
GOOGLE_CLIENT_ID=
|
|
GOOGLE_CLIENT_SECRET=
|
|
GOOGLE_CALLBACK_URL=http://localhost:3001/auth/google/callback
|
|
|
|
FRONTEND_URL=http://localhost:3000
|
|
|
|
# Frontend (Next.js)
|
|
FRONTEND_PORT=3000
|
|
NEXT_PUBLIC_API_URL=http://localhost:3001
|
|
UPLOAD_R2_WORKER_API=***.workers.dev
|
|
R2_UPLOAD_API_KEY=*** |