Implemented the integration with scraper python server, tenders summarise, and some fixes.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user