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
30 lines
693 B
Text
Executable file
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
|