gohorsejobs/backend/.env.example
Tiago Yamamoto 38a94bcbce feat: implement high priority features
1. Advanced Search (backend)
   - Add salaryMin, salaryMax, currency, sortBy to JobFilterQuery
   - Add 5+ filters: visa, salary range, currency, language level
   - Add 4 sort options: recent, salary_asc, salary_desc, relevance

2. Email Service (backend)
   - Create Resend API integration (email_service.go)
   - 3 HTML email templates: welcome, password_reset, application_received
   - Add RESEND_API_KEY, EMAIL_FROM, APP_URL env vars

3. i18n (frontend)
   - Create 4 language files: pt-BR, en-US, es-ES, ja-JP
   - 100+ translation keys per language
   - Covers: common, nav, auth, jobs, profile, company, footer

4. Stripe Integration (backend)
   - Create payment_handler.go with checkout session creation
   - Webhook handler with signature verification
   - Support for checkout.session.completed, payment_intent events
2025-12-24 11:40:53 -03:00

53 lines
2.3 KiB
Text
Executable file

# =============================================================================
# GoHorse Jobs Backend - Environment Variables
# =============================================================================
# Database Configuration (use DATABASE_URL format)
DATABASE_URL=postgresql://user:password@localhost:5432/gohorsejobs?sslmode=disable
# =============================================================================
# S3/Object Storage (Civo S3-compatible)
# =============================================================================
AWS_REGION=nyc1
AWS_ACCESS_KEY_ID=your-access-key-id
AWS_SECRET_ACCESS_KEY=your-secret-access-key
AWS_ENDPOINT=https://objectstore.nyc1.civo.com
S3_BUCKET=your-bucket-name
# =============================================================================
# JWT Authentication
# =============================================================================
JWT_SECRET=change-this-to-a-strong-secret-at-least-32-characters
JWT_EXPIRATION=7d
PASSWORD_PEPPER=some-random-string-for-password-hashing
COOKIE_SECRET=change-this-to-something-secure
COOKIE_DOMAIN=localhost
# =============================================================================
# Server Configuration
# =============================================================================
BACKEND_PORT=8521
BACKEND_HOST=localhost:8521
ENV=development
# CORS Origins (comma-separated)
CORS_ORIGINS=http://localhost:3000,http://localhost:8963
# =============================================================================
# Cloudflare API (for cache management)
# =============================================================================
CLOUDFLARE_API_TOKEN=your-cloudflare-api-token
CLOUDFLARE_ZONE_ID=your-zone-id
# =============================================================================
# cPanel API (for email management)
# =============================================================================
CPANEL_HOST=https://cpanel.yourdomain.com:2083
CPANEL_USERNAME=your-cpanel-username
CPANEL_API_TOKEN=your-cpanel-api-token
# =============================================================================
# Email Service (Resend)
# =============================================================================
RESEND_API_KEY=re_xxxx_your_api_key
EMAIL_FROM=noreply@gohorsejobs.com
APP_URL=https://gohorsejobs.com