Hi @Mulen Let me clarify this is intentional, as the test URL uses N8N_EDITOR_BASE_URL , as obv the test flows are tied to the editor session, while production URL uses WEBHOOK_URL .
I do not really recommend this but in case if you want both to be directed through one URL you can set them same like:
If i keep N8N_EDITOR_BASE_URL i have to put there the webhook URL and this is not what we want. I just unset the N8N_EDITOR_BASE_URL and keep WEBHOOK_URL for the time being.
Bro @Mulen i was giving an example for those domains like this is how it should be like:
And with that i did not mean you literally put n8n.domain.com and webhooks.domain.com into your compose file, put your actual URLs there your real WEBHOOK_URL not these examples it was for you to understand that like
You’re just repeating yourself bud, and I agree you make no sense. The OP already has those two lines of code (if you read their original post), so repeating it is not going to help. Are you saying they should set the N8N_EDITOR_BASE_URL to be the same as the WEBHOOK_URL?
@TomM you do not need to unset anything, just set N8N_EDITOR_BASE_URL to the URL where you open the n8n UI on web and WEBHOOK_URL to the exact domain you want both test and production webhooks to use, let me know if that works.
It was a test. I know that i have to put my real domains there, i just wanted to show you the functionality and how it behaves
@TomM I think he misses the point and what i am trying to say. I know he repeats the same thing and his solution is not working because it is the problem i mention we have.
@Mulen@TomM Understood. To debug that now, could please share the information:
The full environment: block from your docker-compose.yml
and the output of printenv | grep -E "N8N_HOST|WEBHOOK_URL|N8N_EDITOR_BASE_URL|N8N_PROTOCOL"inside the running n8n container
Although i misunderstood but n8n should behave like that in the given URLs, if those are set and you have restarted your container that should have worked, let me know the output from those 2 then i may be able to put some narrowing for this issue.
@Mulen I have managed to replicate your issue. I resolved this by just removing the N8N_EDITOR_BASE_URL variable entirely. Then both of the webhooks used webhook.domain.com.
N8N_EDITOR_BASE_URL shouldn’t really be needed, as the editor will default to N8N_HOST. For example, this is what mine is setup like: N8N_HOST=${SUBDOMAIN}.${DOMAIN_NAME}
I agree with @TomM to remove the N8N_EDITOR_BASE_URL to prevent the URL changeover - have in mind though that according to @joffcom - the WEBHOOK_URL is apparently only for hosts behind a proxy. By setting these n8n doesn't block any routing it is expected that a reverse proxy or load balancer would be handling that
to prevent any future manipulation of the base url or proxy manipulation - N8N constructs it’s WEBHOOK_URL based on three environment variables below - you can use these within your docker compose yaml instead of it.