Files
site11/.env.example
jungwoo choi 315eeea2ae Step 5: Authentication System & Environment Variables
- Implemented JWT authentication in Console backend
- Added .env file for environment variable management
- Updated docker-compose to use .env variables
- Created authentication endpoints (login/logout/me)
- Added protected route middleware
- Created ARCHITECTURE.md with Kafka as main messaging platform
- Defined Kafka for both events and task queues
- Redis dedicated for caching and session management

Test credentials:
- admin/admin123
- user/user123

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-10 16:36:47 +09:00

37 lines
810 B
Plaintext

# Environment Configuration Example
# Copy this file to .env and update with your values
ENV=development
# Port Configuration
CONSOLE_BACKEND_PORT=8011
CONSOLE_FRONTEND_PORT=3000
USERS_SERVICE_PORT=8001
MONGODB_PORT=27017
REDIS_PORT=6379
# Database Configuration
MONGODB_URL=mongodb://mongodb:27017
MONGODB_DATABASE=site11_db
USERS_DB_NAME=users_db
# Redis Configuration
REDIS_URL=redis://redis:6379
# JWT Configuration
JWT_SECRET_KEY=change-this-secret-key-in-production
JWT_ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=30
# Service URLs (Internal)
USERS_SERVICE_URL=http://users-backend:8000
# Frontend Configuration
VITE_API_URL=http://localhost:8011
# Kafka Configuration (Future)
# KAFKA_BOOTSTRAP_SERVERS=kafka:9092
# KAFKA_GROUP_ID=site11-group
# Docker Configuration
COMPOSE_PROJECT_NAME=site11