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

**URL:** <https://community.n8n.io/t/tweaking-my-self-hosted-configuration-to-now-use-my-n8n-example-com-domain-for-webhooks/64324>\
**Category:** Questions\
**Created:** [December 6, 2024, 12:14pm UTC](https://community.n8n.io/t/tweaking-my-self-hosted-configuration-to-now-use-my-n8n-example-com-domain-for-webhooks/64324 "2024-12-06T12:14:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nmvega](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/nmvega/32/48688_2.png) [@nmvega](https://community.n8n.io/u/nmvega)\
**Post date:** [December 6, 2024, 12:14pm UTC](https://community.n8n.io/t/tweaking-my-self-hosted-configuration-to-now-use-my-n8n-example-com-domain-for-webhooks/64324/1 "2024-12-06T12:14:59Z")

</div>

Good Morning Friends:

I found this [eariler Q&A answer](http://community.n8n.io/t/tunnel-question/21855/7) 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](https://github.com/n8n-io/self-hosted-ai-starter-kit) and have “_productionalized_” it little by little. So, for external **Webhook** access, I can now use my subdomain:

- [n8n.example.com:5678](http://n8n.example.com:5678)

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:

- export WEBHOOK\_URL=[https://n8n.example.com/](https://n8n.example.com/) :: `Shell Environment Variable`
- WEBHOOK\_URL=[https://n8n.example.com/](https://n8n.example.com/) :: Docker `.env` file.

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

Thank you for your assistance. 😊

---

<div class="post-metadata">

**Author:** ![n8n](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/n8n/32/196425_2.png) [@n8n](https://community.n8n.io/u/n8n)\
**Post date:** [December 6, 2024, 12:15pm UTC](https://community.n8n.io/t/tweaking-my-self-hosted-configuration-to-now-use-my-n8n-example-com-domain-for-webhooks/64324/2 "2024-12-06T12:15:00Z")

</div>

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:**

---

<div class="post-metadata">

**Author:** ![nmvega](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/nmvega/32/48688_2.png) [@nmvega](https://community.n8n.io/u/nmvega)\
**Post date:** [December 6, 2024, 12:43pm UTC](https://community.n8n.io/t/tweaking-my-self-hosted-configuration-to-now-use-my-n8n-example-com-domain-for-webhooks/64324/3 "2024-12-06T12:43:32Z")

</div>

Oh never mind. 😇

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:

```auto
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?

---

<div class="post-metadata">

**Author:** ![nmvega](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/nmvega/32/48688_2.png) [@nmvega](https://community.n8n.io/u/nmvega)\
**Post date:** [December 6, 2024, 12:53pm UTC](https://community.n8n.io/t/tweaking-my-self-hosted-configuration-to-now-use-my-n8n-example-com-domain-for-webhooks/64324/4 "2024-12-06T12:53:49Z")

</div>

Hi @Jon Can you check out my above edit (_asking about a port number_). I added after you ❤ it. Thank you. 😊

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [December 13, 2024, 12:54pm UTC](https://community.n8n.io/t/tweaking-my-self-hosted-configuration-to-now-use-my-n8n-example-com-domain-for-webhooks/64324/5 "2024-12-13T12:54:20Z")

</div>

Closed on December 13, 2024, 12:54pm UTC

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