Implemented the integration with scraper python server, tenders summarise, and some fixes.

This commit is contained in:
Mazyar
2025-12-27 12:47:08 +03:30
parent e4da3b5bb2
commit f6bdcc6d7c
18 changed files with 1054 additions and 45 deletions
+15
View File
@@ -95,6 +95,21 @@ type HCaptchaConfig struct {
Timeout time.Duration `env:"HCAPTCHA_TIMEOUT"`
}
type ScraperConfig struct {
BaseURL string `env:"SCRAPER_BASE_URL"`
Timeout time.Duration `env:"SCRAPER_TIMEOUT"`
}
type MinIOConfig struct {
Endpoint string `env:"MINIO_ENDPOINT" default:"localhost:9000"`
AccessKeyID string `env:"MINIO_ACCESS_KEY_ID" default:""`
SecretAccessKey string `env:"MINIO_SECRET_ACCESS_KEY" default:""`
UseSSL bool `env:"MINIO_USE_SSL" default:"false"`
Region string `env:"MINIO_REGION" default:"us-east-1"`
DefaultBucket string `env:"MINIO_DEFAULT_BUCKET" default:"files"`
HierarchicalBucket string `env:"MINIO_HIERARCHICAL_BUCKET" default:"documents"`
}
// LoadConfig loads configuration with priority: OS environment variables > .env file
// OS environment variables take precedence over .env file values
func LoadConfig[T any](path string, config T) (T, error) {