# Nginx setup

**URL:** <https://community.n8n.io/t/nginx-setup/87>\
**Category:** Questions\
**Created:** [October 8, 2019, 10:19pm UTC](https://community.n8n.io/t/nginx-setup/87 "2019-10-08T22:19:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![will8](https://avatars.discourse-cdn.com/v4/letter/w/e95f7d/32.png) [@will8](https://community.n8n.io/u/will8)\
**Post date:** [October 8, 2019, 10:19pm UTC](https://community.n8n.io/t/nginx-setup/87/1 "2019-10-08T22:19:46Z")

</div>

Has anyone had any joy setting up n8n to run through nginx? I’ve set n8n to run locally on port 5678 and have nginx running the site via a reverse proxy so that it’s available at [https://n8n](https://n8n).[mywebsite].com/ (on port 443)

This works great. However, when I try to set up webhooks, the panel shows that it expects the webhook URL to be in the format [http://n8n](http://n8n).[mywebsite].com:5678/webhook/ **EMPTY** /webhook/

Does anyone have any ideas? Thanks.

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [October 8, 2019, 10:36pm UTC](https://community.n8n.io/t/nginx-setup/87/2 "2019-10-08T22:36:53Z")

</div>

Ah yes the problem is that you have to save the workflow first. The workflow-id is part of the webhook URL. So as soon as you save it, it will display the correct URL.

Sorry one of many things that I have to improve and properly document!

---

<div class="post-metadata">

**Author:** ![will8](https://avatars.discourse-cdn.com/v4/letter/w/e95f7d/32.png) [@will8](https://community.n8n.io/u/will8)\
**Post date:** [October 8, 2019, 11:20pm UTC](https://community.n8n.io/t/nginx-setup/87/3 "2019-10-08T23:20:52Z")

</div>

Hi jan! Thanks for this, I’ll give it a try now.

The other issue is that the URL still contains the port number of 5678 when actually I’m running through 443. Is there a way to override this?

---

<div class="post-metadata">

**Author:** ![itishermann](https://avatars.discourse-cdn.com/v4/letter/i/3bc359/32.png) [@itishermann](https://community.n8n.io/u/itishermann)\
**Post date:** [November 17, 2020, 8:32pm UTC](https://community.n8n.io/t/nginx-setup/87/4 "2020-11-17T20:32:51Z")

</div>

I’m hitting the same issue. Any update on this ( the port number )?

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [November 17, 2020, 9:56pm UTC](https://community.n8n.io/t/nginx-setup/87/5 "2020-11-17T21:56:34Z")

</div>

Welcome to the community @itishermann!

That can be changed by setting the webhook URL as documented here:

> **[Configuration | n8n Docs](https://docs.n8n.io/getting-started/installation/advanced/configuration.html)**
>
> n8n is an extendable workflow automation tool that enables you to connect anything to everything via its open, fair-code model.

Like for example:

```bash
export WEBHOOK_TUNNEL_URL="https://n8n.example.com/"

```
