feat: replace N8N_BASE_URL with N8N_WEBHOOK_URL (full webhook URL)

This commit is contained in:
2026-04-16 20:47:19 +02:00
parent 0f6649931f
commit 125b039d19
21 changed files with 33 additions and 4 deletions

View File

@@ -51,11 +51,10 @@ func main() {
downloader := infratelegram.NewTelegramFileDownloader(bot)
sessionStore := storage.NewRedisSessionStore(redisClient, cfg.Redis.TTLHours)
// n8n workflows (configure via env: N8N_WORKFLOW_<INTENT>=<url>)
workflows := map[string]n8n.WorkflowConfig{
"default": {
ID: "default",
WebhookURL: cfg.N8n.BaseURL + "/webhook/default",
WebhookURL: cfg.N8n.WebhookURL,
AuthToken: cfg.N8n.AuthToken,
},
}