gohorsejobs/backend/.env.example
Tiago Yamamoto 18ac6d74f0 chore: update port configuration to avoid conflicts
Port Configuration:
- Backend: 8521 (was 8080/8158)
- Frontend: 8963 (was 3000)

Files updated:
- backend/.env.example: updated PORT and CORS_ORIGINS
- frontend/src/lib/auth.ts: API_URL default to 8521
- frontend/src/lib/api.ts: API_URL default to 8521
- frontend/src/lib/storage.ts: API_URL default to 8521
- run_dev.sh: added port flags and service info display

Usage:
  ./run_dev.sh
  # Backend:  http://localhost:8521
  # Frontend: http://localhost:8963
2025-12-11 17:06:37 -03:00

30 lines
693 B
Text
Executable file

# Environment variables for Todai Jobs Backend
# Database Configuration
DB_HOST=localhost
DB_PORT=5432
DB_USER=postgres
DB_PASSWORD=yourpassword
DB_NAME=gohorsejobs
DB_SSLMODE=require
# S3/Object Storage Configuration (S3-compatible)
AWS_REGION=nyc1
AWS_ACCESS_KEY_ID=your-access-key
AWS_SECRET_ACCESS_KEY=your-secret-key
AWS_ENDPOINT=https://objectstore.nyc1.civo.com
S3_BUCKET=your-bucket-name
# JWT Secret (CHANGE IN PRODUCTION!)
JWT_SECRET=your-secret-key-change-this-in-production-use-strong-random-value
# Server Configuration
PORT=8521
ENV=development
# CORS Origins (comma-separated)
CORS_ORIGINS=http://localhost:8963
# File Upload
MAX_UPLOAD_SIZE=10485760
UPLOAD_DIR=./uploads