add environment to n8n (for webhooks needed) #1348

Closed
opened 2026-02-05 00:26:18 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @Kaputtnique on GitHub (Jul 26, 2025).

🌟 Briefly describe the feature

Add Environment=WEBHOOK_URL=url.com

📝 Detailed description

Heya,

to have to full potential of n8n .. it would be great to add some environments to the installation.. for example.. WEBHOOKS only works if the user set the webhook url in the file -> " /etc/systemd/system/n8n.service "

Environment="WEBHOOK_URL=${SUBDOMAIN}.${DOMAIN_NAME}
Environment="N8N_HOST=${SUBDOMAIN}.${DOMAIN_NAME}

also N8N_HOST=${SUBDOMAIN}.${DOMAIN_NAME} could be needed.. idk .. but the webhook url is needed for webhooks iguess and i think to unleash the full potential of the installation it would be good. is just 1 var to set inside the lxc

💡 Why is this useful?

to use webhooks, i think lots of nodes which uses webhooks is may needed? :D

Originally created by @Kaputtnique on GitHub (Jul 26, 2025). ### 🌟 Briefly describe the feature Add Environment=WEBHOOK_URL=url.com ### 📝 Detailed description Heya, to have to full potential of n8n .. it would be great to add some environments to the installation.. for example.. WEBHOOKS only works if the user set the webhook url in the file -> " /etc/systemd/system/n8n.service " Environment="WEBHOOK_URL=${SUBDOMAIN}.${DOMAIN_NAME} Environment="N8N_HOST=${SUBDOMAIN}.${DOMAIN_NAME} also N8N_HOST=${SUBDOMAIN}.${DOMAIN_NAME} could be needed.. idk .. but the webhook url is needed for webhooks iguess and i think to unleash the full potential of the installation it would be good. is just 1 var to set inside the lxc ### 💡 Why is this useful? to use webhooks, i think lots of nodes which uses webhooks is may needed? :D
OVERLORD added the enhancement label 2026-02-05 00:26:18 +03:00
Author
Owner

@tremor021 commented on GitHub (Jul 28, 2025):

Thanks for the suggestion. As this is a app that has a boatload of environment variables, we only opted to include N8N_SECURE_COOKIE so the app can run until you decide to use HTTPS.
Everything else is really up to your use case, so you are free to include whatever variables you need.

We try to not impose defaults on the user as everyone has their own way of using the apps.

@tremor021 commented on GitHub (Jul 28, 2025): Thanks for the suggestion. As this is a app that has a boatload of environment variables, we only opted to include N8N_SECURE_COOKIE so the app can run until you decide to use HTTPS. Everything else is really up to your use case, so you are free to include whatever variables you need. We try to not impose defaults on the user as everyone has their own way of using the apps.
Author
Owner

@CrazyWolf13 commented on GitHub (Jul 28, 2025):

@Kaputtnique Please test with a new install if it installs fine.

@CrazyWolf13 commented on GitHub (Jul 28, 2025): @Kaputtnique Please test with a new install if it installs fine.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#1348