use auth service for validating user in competitions service

This commit is contained in:
Timur Kh.
2025-12-17 12:31:40 +03:00
parent 6a9376505d
commit 87cf677d1d
3 changed files with 92 additions and 2 deletions
+2 -2
View File
@@ -20,7 +20,7 @@ type Config struct {
DBUser string
DBPassword string
DBName string
JWTSecret string
AuthSvcAddr string
RedisAddr string
RedisPassword string
RedisDB int
@@ -40,7 +40,7 @@ func Load() (*Config, error) {
DBUser: getEnv("POSTGRES_USERNAME", "postgres"),
DBPassword: getEnv("POSTGRES_PASSWORD", "postgres"),
DBName: getEnv("POSTGRES_DATABASE", "postgres"),
JWTSecret: getEnv("JWT_SECRET", "your-secret-key-change-in-production"),
AuthSvcAddr: getEnv("AUTH_SVC_ADDR", "localhost:50051"),
RedisAddr: getEnv("REDIS_ADDR", "localhost:6379"),
RedisPassword: getEnv("REDIS_PASSWORD", ""),
RedisDB: mustGetInt("REDIS_DB", 0),