diff --git a/infrastructure/task/.env.template b/infrastructure/task/.env.template new file mode 100644 index 0000000..bd25c3e --- /dev/null +++ b/infrastructure/task/.env.template @@ -0,0 +1,13 @@ +TASK_GRPC_PORT=50051 +TASK_HTTP_PORT=8082 +TASK_GRPC_ENABLE_REFLECTION=true + +POSTGRES_HOST=postgres +POSTGRES_PORT=5432 +POSTGRES_USERNAME=postgres +POSTGRES_PASSWORD=postgres +POSTGRES_DATABASE=postgres + +LOG_LEVEL=info + +AUTH_SVC_ADDR=auth:50051 diff --git a/infrastructure/user/.env.template b/infrastructure/user/.env.template new file mode 100644 index 0000000..a55e0c9 --- /dev/null +++ b/infrastructure/user/.env.template @@ -0,0 +1,13 @@ +USER_GRPC_PORT=50051 +USER_HTTP_PORT=8082 +USER_GRPC_ENABLE_REFLECTION=true + +POSTGRES_HOST=postgres +POSTGRES_PORT=5432 +POSTGRES_USERNAME=postgres +POSTGRES_PASSWORD=postgres +POSTGRES_DATABASE=postgres + +LOG_LEVEL=info + +AUTH_SVC_ADDR=auth:50051 diff --git a/internal/user/config/config.go b/internal/user/config/config.go index bb40b72..394f4e0 100644 --- a/internal/user/config/config.go +++ b/internal/user/config/config.go @@ -37,7 +37,6 @@ 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"), }, nil }