2026-04-23 15:33:11 +03:30
|
|
|
# Database
|
2026-05-16 22:40:42 +03:30
|
|
|
#
|
|
|
|
|
# Local dev (Nest on your machine + Postgres via docker-compose.postgres.yml):
|
|
|
|
|
# Use host "localhost" — hostname "postgres" only works inside Docker networks.
|
|
|
|
|
DATABASE_URL=postgresql://dyolink_user:password@localhost:5432/dyolink_db
|
|
|
|
|
POSTGRES_HOST=localhost
|
2026-04-23 15:33:11 +03:30
|
|
|
POSTGRES_PORT=5432
|
|
|
|
|
POSTGRES_USER=dyolink_user
|
2026-05-16 22:40:42 +03:30
|
|
|
POSTGRES_PASSWORD=password
|
2026-04-23 15:33:11 +03:30
|
|
|
POSTGRES_DB=dyolink_db
|
2026-05-16 22:40:42 +03:30
|
|
|
#
|
|
|
|
|
# If you run the API inside the same Compose stack as Postgres, use instead:
|
|
|
|
|
# DATABASE_URL=postgresql://dyolink_user:password@postgres:5432/dyolink_db
|
|
|
|
|
# POSTGRES_HOST=postgres
|
2026-04-23 15:33:11 +03:30
|
|
|
|
2026-05-16 22:40:42 +03:30
|
|
|
# JWT (required for register/login)
|
2026-04-23 15:33:11 +03:30
|
|
|
JWT_SECRET=CHANGE_ME_TO_A_STRONG_SECRET_32_CHARS_MIN
|
|
|
|
|
JWT_EXPIRES_IN=7d
|
2026-05-16 22:40:42 +03:30
|
|
|
JWT_REFRESH_SECRET=CHANGE_ME_TO_ANOTHER_STRONG_SECRET
|
|
|
|
|
JWT_REFRESH_EXPIRES_IN=30d
|
2026-04-23 15:33:11 +03:30
|
|
|
|
|
|
|
|
# Application
|
|
|
|
|
PORT=3000
|
|
|
|
|
NODE_ENV=development
|
|
|
|
|
API_PREFIX=/api
|
2026-05-16 22:40:42 +03:30
|
|
|
# CORS and invite links — must match the URL where the Next.js app runs
|
|
|
|
|
FRONTEND_URL=http://localhost:3001
|
|
|
|
|
|
|
|
|
|
# OAuth (optional — uncomment when configured)
|
|
|
|
|
# GOOGLE_CLIENT_ID=your-google-client-id
|
|
|
|
|
# GOOGLE_CLIENT_SECRET=your-google-client-secret
|
|
|
|
|
# GOOGLE_CALLBACK_URL=http://localhost:3000/auth/google/callback
|
|
|
|
|
# FACEBOOK_CLIENT_ID=your-facebook-app-id
|
|
|
|
|
# FACEBOOK_CLIENT_SECRET=your-facebook-app-secret
|
|
|
|
|
# FACEBOOK_CALLBACK_URL=http://localhost:3000/auth/facebook/callback
|
2026-04-23 15:33:11 +03:30
|
|
|
|
|
|
|
|
# Email (configure for production)
|
|
|
|
|
SMTP_HOST=smtp.gmail.com
|
|
|
|
|
SMTP_PORT=587
|
|
|
|
|
SMTP_USER=your_email@gmail.com
|
2026-05-16 22:40:42 +03:30
|
|
|
SMTP_PASSWORD=your_app_password
|
2026-07-04 00:01:58 +03:30
|
|
|
|
|
|
|
|
# SMS (sms.ir — use Sandbox API key for development)
|
|
|
|
|
# SMS_IR_API_KEY=lwbK7hxmjimNjFS4g5DWahh75EKCgJUfcUIinUQzfQXwXkSp
|
|
|
|
|
SMS_IR_API_KEY=4QKMiSU4Kh7tWPLCdRMV0QpDh8WgF33YkWRS18BcG3vf4QHi
|
|
|
|
|
SMS_IR_TEMPLATE_ID=123456
|