Commit 51fe0dc0 authored by Administrator's avatar Administrator

Update backend/.env.example via Son of Anton

parent f8570f79
# ============================================
# THE GRIND — Backend Environment Variables
# ============================================
# Application
NODE_ENV=development
PORT=3001
FRONTEND_URL=http://localhost:3000
API_PREFIX=api
CORS_ORIGINS=http://localhost:3000
# Database # Database
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/thegrind?schema=public DATABASE_URL=postgresql://postgres:postgres@localhost:5432/thegrind?schema=public
# Redis # Redis
REDIS_HOST=localhost REDIS_HOST=localhost
REDIS_PORT=6379 REDIS_PORT=6379
# REDIS_PASSWORD= REDIS_PASSWORD=
REDIS_DB=0
# JWT # JWT
JWT_SECRET=CHANGE_ME_IN_PRODUCTION_OR_GET_HACKED_YOU_IDIOT JWT_SECRET=CHANGE_ME_TO_A_RANDOM_64_CHAR_STRING_IN_PRODUCTION
JWT_ACCESS_EXPIRY=15m JWT_ACCESS_EXPIRY=15m
JWT_REFRESH_EXPIRY=7d JWT_REFRESH_EXPIRY=7d
JWT_REFRESH_EXPIRY_DAYS=7 JWT_REFRESH_EXPIRY_DAYS=7
# MinIO (S3-compatible storage) # App
PORT=3001
NODE_ENV=development
FRONTEND_URL=http://localhost:3000
CORS_ORIGINS=http://localhost:3000
API_PREFIX=api
# MinIO
MINIO_ENDPOINT=localhost MINIO_ENDPOINT=localhost
MINIO_PORT=9000 MINIO_PORT=9000
MINIO_USE_SSL=false MINIO_USE_SSL=false
...@@ -32,12 +27,7 @@ MINIO_ACCESS_KEY=minioadmin ...@@ -32,12 +27,7 @@ MINIO_ACCESS_KEY=minioadmin
MINIO_SECRET_KEY=minioadmin MINIO_SECRET_KEY=minioadmin
MINIO_BUCKET=hr-files MINIO_BUCKET=hr-files
# Upload Limits # Session
MAX_FILE_SIZE_BYTES=26214400
MAX_PROFILE_PHOTO_SIZE_BYTES=5242880
# Session & Security
SESSION_TIMEOUT_HOURS=8 SESSION_TIMEOUT_HOURS=8
MAX_LOGIN_ATTEMPTS=5 MAX_LOGIN_ATTEMPTS=5
LOCKOUT_DURATION_MINUTES=30 LOCKOUT_DURATION_MINUTES=30
\ No newline at end of file
MAX_DAILY_LOGIN_ATTEMPTS=15
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment