feat: replace N8N_BASE_URL with N8N_WEBHOOK_URL (full webhook URL)
This commit is contained in:
@@ -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,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user