Skip to content

Latest commit

 

History

History
102 lines (77 loc) · 3.59 KB

File metadata and controls

102 lines (77 loc) · 3.59 KB

Configuration Reference

All environment variables are loaded from .env at the repository root. Copy .env.example.env with make setup.


Security

Variable Description Default Required
JWT_SECRET JWT signing secret (min 32 chars) dev-secret-... Yes

Database Credentials

Variable Description Default Required
DB_USERNAME PostgreSQL user postgres Yes
DB_PASSWORD PostgreSQL password postgres Yes
MONGO_USERNAME MongoDB root user mongo Yes
MONGO_PASSWORD MongoDB root password mongo Yes
REDIS_PASSWORD Redis password redis_dev_password Yes
REDIS_URL Redis connection string redis://localhost:6379 Yes

Service URLs (local dev outside Docker)

Variable Default
USER_SERVICE_URL http://localhost:3001
EVENT_SERVICE_URL http://localhost:3002
BOOKING_SERVICE_URL http://localhost:3003
INVENTORY_SERVICE_URL http://localhost:3004
PAYMENT_SERVICE_URL http://localhost:3005
NOTIFICATION_SERVICE_URL http://localhost:3006
SEARCH_SERVICE_URL http://localhost:3007
PRICING_SERVICE_URL http://localhost:3008
RECOMMENDATION_SERVICE_URL http://localhost:3009

Per-Service Database URLs

Variable Default
USER_DB_URL jdbc:postgresql://localhost:5432/ticketflow_users
BOOKING_DB_URL jdbc:postgresql://localhost:5432/ticketflow_bookings
INVENTORY_DB_URL postgresql://postgres:postgres@localhost:5432/ticketflow_inventory
EVENT_MONGODB_URL mongodb://mongo:mongo@localhost:27017
PAYMENT_MONGODB_URL mongodb://mongo:mongo@localhost:27017
NOTIFICATION_MONGODB_URL mongodb://mongo:mongo@localhost:27017
SEARCH_DB_URL postgresql://postgres:postgres@localhost:5432/ticketflow_search
PRICING_DB_URL postgresql://postgres:postgres@localhost:5432/ticketflow_pricing
RECOMMENDATION_DB_URL postgresql://postgres:postgres@localhost:5432/ticketflow_recommendations

Kafka

Variable Description Default
KAFKA_BOOTSTRAP_SERVERS Broker address (9093 from host, 9092 inside Docker) localhost:9093
KAFKA_CONSUMER_GROUP_SEARCH Search service consumer group search-service
KAFKA_CONSUMER_GROUP_PRICING Pricing service consumer group pricing-service
KAFKA_CONSUMER_GROUP_RECOMMENDATION Recommendation service consumer group recommendation-service

Email (SMTP)

Variable Description Default
SMTP_HOST SMTP server host localhost
SMTP_PORT SMTP server port 1025
SMTP_FROM Sender address noreply@ticketflow.com
SMTP_USERNAME SMTP auth username (empty)
SMTP_PASSWORD SMTP auth password (empty)

Payment

Variable Description Default
PAYMENT_SUCCESS_RATE Mock success rate (0.0–1.0) 0.95
RAZORPAY_KEY_ID Razorpay API key (empty)
RAZORPAY_KEY_SECRET Razorpay API secret (empty)

Additional

Variable Description Default
JWT_EXPIRATION JWT token lifetime in milliseconds 604800000 (7 days)
VITE_API_BASE_URL Frontend API base URL http://localhost:3000
FRONTEND_API_URL Production frontend API URL https://api.yourdomain.com
K8S_NAMESPACE Kubernetes namespace ticketflow
DOCKER_REGISTRY Container image registry your-registry.io/ticketflow
IMAGE_TAG Container image tag latest