add the env

This commit is contained in:
saqib mir
2026-08-19 17:13:17 +05:30
parent 5e4ed9d64a
commit dd3f3720df
5 changed files with 34 additions and 34 deletions
+17
View File
@@ -0,0 +1,17 @@
NODE_ENV=development
PORT=4501
# Nest build
BUILD_COMMAND=npm run build:development
# Database
POSTGRES_HOST=postgres
POSTGRES_DB=myapp_development
POSTGRES_USER=myapp_development
POSTGRES_PASSWORD=dev_password
DATABASE_URL=postgresql://myapp_development:dev_password@postgres:5432/myapp_development
# Redis
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_PASSWORD=dev_redis_password
+1 -1
View File
@@ -1,5 +1,5 @@
NODE_ENV=production
PORT=3003
PORT=4503
# Nest build
BUILD_COMMAND=npm run build:prod
+16
View File
@@ -0,0 +1,16 @@
NODE_ENV=test
PORT=4502
# Nest build
BUILD_COMMAND=npm run build:test
# Database
POSTGRES_HOST=postgres
POSTGRES_DB=myapp_test
POSTGRES_USER=myapp_test
POSTGRES_PASSWORD=test_password
DATABASE_URL=postgresql://myapp_test:test_password@postgres:5432/myapp_test
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_PASSWORD=test_redis_password
-26
View File
@@ -1,26 +0,0 @@
# Server Environment - Test
NODE_ENV=test
PORT=3001
HOST=127.0.0.1
LOG_LEVEL=silent
# Database (PostgreSQL Test Container/DB)
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/supporthub_test_db?schema=public
# Redis Test Container/DB
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
# Authentication Test Keys
JWT_SECRET=super-secret-test-jwt-key-min-32-characters
# AWS S3 Test Storage
AWS_REGION=us-east-1
AWS_S3_BUCKET=supporthub-test-bucket
AWS_ACCESS_KEY_ID=test-aws-access-key-id
AWS_SECRET_ACCESS_KEY=test-aws-secret-access-key
AWS_S3_ENDPOINT=
# Security & CORS Test
CORS_ORIGINS=*
-7
View File
@@ -13,13 +13,6 @@ dist/
build/
*.tsbuildinfo
# Environment Variables
.env
.env.local
.env.development
.env.production
.env.test
# Logs
logs/
*.log