Tweaking my Self-Hosted configuration to now use my "n8n.example.com" domain for Webhooks

Good Morning Friends:

I found this eariler Q&A answer quite useful, and am done implementing almost exactly the same. (I also use NameCheap).

Thus, I began with the n8n Self-Hosted AI Starter Kit and have “productionalized” it little by little. So, for external Webhook access, I can now use my subdomain:

with its LetsEncrypt SSL Certificate; which I obtained via Nginx Proxy Manager, and which is now stitched into Docker and the docker-compose.yaml file.

My question is:

What must I do next so that n8n nodes - such as the Telegram Message Trigger - applies that domain for their Webhook?

I tried adding these items and restarting, but with no luck:

Do I also need to append a port number? Or am I missing something else entirely?

Thank you for your assistance. :blush:

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Oh never mind. :innocent:

While I did place the aforementioned entry in the Docker .env file, I forgot to also add following environment: key/value pair to the docker-compose.yaml n8n service:

environment:
      - WEBHOOK_URL=${WEBHOOK_URL}

Restarting after doing so worked (it uses the correct URL now)

But, do I also have to specify any port, for example:

WEBHOOK_URL=https://n8n.example.com:5678

or without a port?

1 Like

Hi @Jon Can you check out my above edit (asking about a port number). I added after you :heart: it. Thank you. :blush:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.