Added ENV for Import-URL

This commit is contained in:
2025-06-18 21:05:40 +02:00
parent b87c8a9a6d
commit 7518619a74
2 changed files with 67 additions and 30 deletions

View File

@@ -179,7 +179,7 @@ func fetchAndSave(client *http.Client, t target, outDir string) error {
// Import-Logik
func importBlocklists() error {
client := &http.Client{Timeout: 60 * time.Second}
t := target{Name: "Catalog", URL: "http://importer:8080/lists.json"}
t := target{Name: "Catalog", URL: os.Getenv("FLOD_IMPORT_URL") + "/lists.json"}
if err := os.MkdirAll("./lists/", 0o755); err != nil {
fmt.Println("creating output dir", err)
}