Workflow could not be activated: Bad Request

I’m trying to use a n8n locally with nginx-proxy-manager and duckDNS for studies.

I have a certificate created and a hosty proxy that uses this certificate.

Problem: When I try to save a wordkflow that has a webhook it gives an error:

Workflow could not be activated:
Bad Request: bad webhook: Failed to resolve host: Temporary failure in name resolution

I was using cloudFlare and when I disabled everything related to TLS it worked. But with nginx it didn’t work.

CONSOLE ERROR:
2025-04-29T19:31:52.396Z [Rudder] debug: no existing flush timer, creating new one

2025-04-29T19:31:52.434Z | debug | Adding webhooks for workflow “:robot:ASSISTENTE CLÍNICA ESTÉTICA” (ID uP918iHi8lcZHep1) {“file”:“active-workflow-manager.js”,“function”:“addWebhooks”}

2025-04-29T19:31:53.595Z | debug | Request proxied to Axios failed {“status”:400,“file”:“request-helper-functions.js”,“function”:“proxyRequestToAxios”}

n8n Version: 1.89.2
nginx Version: v2.12.3