Merge branch 'feature/competition'

* feature/competition:
  add competition service to compose
  remove generated shit from competitions
  lint competition service
  use auth service for validating user in competitions service
  use auth service for validating user in competitions service
  add redis cache to competitions
  rewrite competition service: remove http related things
  rewrite competition service: remove http related things
  fix proto files
  fix issues
  add competition service (it`s broken, I will fix it later)
This commit is contained in:
ITQ
2025-12-17 15:40:46 +03:00
14 changed files with 816 additions and 8 deletions
+31
View File
@@ -0,0 +1,31 @@
# Competition Service Configuration
# gRPC server port
COMPETITION_GRPC_PORT=50053
# Enable/disable gRPC reflection
COMPETITION_GRPC_ENABLE_REFLECTION=true
# HTTP server port (if applicable)
COMPETITION_HTTP_PORT=8082
# Log level (e.g., debug, info, warn, error)
LOG_LEVEL=info
# PostgreSQL database connection
POSTGRES_HOST=postgres
POSTGRES_PORT=5432
POSTGRES_USERNAME=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DATABASE=postgres
# Address of the authentication gRPC service
AUTH_SVC_ADDR=auth:50052
# Redis connection for caching
REDIS_ADDR=redis:6379
REDIS_PASSWORD=
REDIS_DB=0
# Enable/disable caching
CACHE_ENABLED=true