Why webhook URL changed after restart?

I find that the Webhook URL changed I restart the system, which means that my workflow → workflow through webhook will be broken…

For Example:
https://name.hooks.n8n.cloud/webhook/token/webhook1/airtable

This URL should be customizable? or remain the same after restart.

Also here it is again the sadly again the same problem as you had with the credentials not being able to be decrypted. You do not persist the .n8n folder like described in the docs. If the folder which gets used to persist data does get deleted it is not just a restart it is more like a completely new setup. So the problems you are having are sadly expected.

To solve this problem for you I added the possibility to set the webhook-subdomain via an environment variable. So if you install the latest version of n8n (0.25.0) you will be able to use N8N_TUNNEL_SUBDOMAIN to set the subdomain to be used manually.

2 Likes

@calpa So does it work now for you?

1 Like

It works, thank you for your quick response.

Perfect, great to hear!

Jan,

I can see that you answered Calpa’s request and solved it but I don’t really get how to do that.
Should I go look for a “setup folder” and change something ? Or input a specific start command before launching n8n ?

I am currently using n8n localy via a “n8n start --tunnel” command and using it fine. But I have to start n8n everytime I switch off my computer and the webhook URL is changing.
I would like n8n to work no matter my computer is on or off and the URL to be stable. Should I use n8n cloud specificaly ?

Regards

Hey @mumudu22!

Since you’re running n8n locally your instance will turn-off as soon as you turn off your machine. Hence, you need to run n8n on a server. You can install n8n on your own server following this guide, or sign-up for n8n.cloud our hosted service :slightly_smiling_face:

1 Like

OK thanks !
I’ll try that :slight_smile: