From 57b64e9b5e407f1dffd01e1b641dcf2e38099e31 Mon Sep 17 00:00:00 2001 From: Lucid Date: Mon, 20 Oct 2025 23:45:20 -0400 Subject: [PATCH] Created a timeout for starting webhook mode to allow traefik to expose the webhook server and assign an SSL cert. --- src/main.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 33e1ae9..0487521 100644 --- a/src/main.ts +++ b/src/main.ts @@ -83,7 +83,10 @@ async function startWebhook(config: WebhookConfig) { } try { - if (config.isWebhookMode) await startWebhook(config); + if (config.isWebhookMode) + await setTimeout(() => { + if (config.isWebhookMode) startWebhook(config); + }, 20000); else if (config.isPollingMode) await startPolling(config); } catch (error) { logger.error(error);