mirror change from https://github.com/binhkid2/FullStack-Blog-Nestjs-Nextjs-Postgres
This commit is contained in:
41
backend/.env.example
Normal file
41
backend/.env.example
Normal file
@@ -0,0 +1,41 @@
|
||||
NODE_ENV=development
|
||||
HOST=0.0.0.0
|
||||
PORT=5001
|
||||
APP_URL=http://localhost:5001
|
||||
|
||||
# Database
|
||||
DB_HOST=localhost
|
||||
DB_PORT=5432
|
||||
DB_USER=postgres
|
||||
DB_PASSWORD=password
|
||||
DB_NAME=nestjs_blog
|
||||
DB_SSL=false
|
||||
|
||||
# JWT
|
||||
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
|
||||
|
||||
# Tokens
|
||||
MAGIC_LINK_TTL_MINUTES=20
|
||||
PASSWORD_RESET_TTL_MINUTES=30
|
||||
|
||||
# Cookies
|
||||
COOKIE_SECURE=false
|
||||
COOKIE_DOMAIN=
|
||||
|
||||
# Email (leave blank to use console fallback in dev)
|
||||
MAIL_FROM=no-reply@blog.local
|
||||
SMTP_HOST=
|
||||
SMTP_PORT=587
|
||||
SMTP_USER=
|
||||
SMTP_PASS=
|
||||
|
||||
# Google OAuth
|
||||
GOOGLE_CLIENT_ID=
|
||||
GOOGLE_CLIENT_SECRET=
|
||||
GOOGLE_CALLBACK_URL=http://localhost:5000/auth/google/callback
|
||||
|
||||
|
||||
FRONTEND_URL=http://localhost:5000
|
||||
Reference in New Issue
Block a user