Personalise domain when behind manual proxy?

Wondering how can one personalise the domain offered on webhooks when behind a manual nginx proxy.

So when creating webhooks we do not have to manually change the external domain as in sample image:

n8n vo 0.150.0

Hey @luison,

Setting the WEBHOOK_TUNNEL_URL environment variable should sort you out.

Thanks for prompt reply. Tried without success.
I am using it with SSL protocol.

This is approx our envs:

PROJECT_NAME=n8n_docker
PROJECT_BASE_URL=our.domain.com
N8N_HOME=/home/docker-user
N8N_BASIC_AUTH_ACTIVE=true
N8N_BASIC_AUTH_USER=N8N
N8N_BASIC_AUTH_PASSWORD=password
N8N_VERSION=0.160.0-debian
WEBHOOK_TUNNEL_URL=https://our.domain.com

Tried with “https://our.domain.com” quoted too.
Updated to version 0.160.0 now.

What do you have N8N_HOST set to? I would maybe set WEBHOOK_URL as well.

Thanks but no luck either. Configured both.
This are all our values, no specific N8N_HOST on envs

PROJECT_NAME=n8_docker
PROJECT_BASE_URL=our.domain.com
N8N_HOME=/home/docker-user
N8N_BASIC_AUTH_ACTIVE=true
N8N_BASIC_AUTH_USER=N8N
N8N_BASIC_AUTH_PASSWORD=password
N8N_VERSION=0.160.0-debian
WEBHOOK_URL=https://our.domain.com
WEBHOOK_TUNNEL_URL=https://our.domain.com

SORTED, my mistake sorry. I was not passing the env file variables to the docker-compose file. Thought that was not required.

So to clarify:

VARIABLES:

WEBHOOK_URL=https://our.domain.com

On docker compose make sure you define:

environment:
WEBHOOK_URL: ${WEBHOOK_URL}

Not sure about WEBHOOK_TUNNEL_URL but not using it.

Thanks @jon for the guidance.

1 Like

Perfect, I think the tunnel one is just some old one I have set that I have not removed yet :+1: