nest-project/.env.example
2023-02-21 20:09:38 +08:00

28 lines
605 B
Plaintext

# POSTGRES
POSTGRES_USER=myuser
POSTGRES_PASSWORD=mypassword
POSTGRES_DB=mydb
DB_HOST=localhost
DB_PORT=5432
DB_SCHEMA=public
# Prisma database connection
DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DB_HOST}:${DB_PORT}/${POSTGRES_DB}?schema=${DB_SCHEMA}&sslmode=prefer
# Nest
PORT=12400
# Security
JWT_ACCESS_SECRET=JWT_ACCESS_SECRET
JWT_REFRESH_SECRET=JWT_REFRESH_SECRET
bcryptSaltOrRound=10
expiresIn=30m
refreshIn=7d
# Email
EMAIL_HOST='smtp.exmail.qq.com'
EMAIL_PORT=465
EMAIL_AUTH_USER='admin@qiuxu.site'
EMAIL_AUTH_PASS=''
EMAIL_SEND_FROM='"qiuxu.site" <admin@qiuxu.site>'