Npm Base Domain Configuration

Describe the problem/error/question

I would like to do a GitHub Workflow with OAUTH2 authentication. There the Redirect Path is: http://localhost:5678/rest/oauth2-credential/callback

I tried to set the paths according to your configuration documentation:

export WEBHOOK_URL=https://n8n.mydomain.com/
export N8N_HOST=n8n.mydomain.com
export N8N_PORT=5678
export N8N_PROTOCOL=https

Then i restarted the whole server to load the changed variables. Unfortunatly the Redirect Path still is localhost.

Information on your n8n setup

Is is an npm instance installed with the Proxmox Helper Script for n8n.

  • n8n version: 1.80.3
  • Database (default: SQLite)
  • Running n8n via (Docker, npm, n8n cloud, desktop app): npm from Proxmox Helper Script
  • Operating system: Debian 12 Bookworm

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey @Florin Welcome to community.
Do you owning “mydomain.com” and point to it in your DNS provider to n8n.mydomain.com ?
So you can access your instance by https://n8n.mydomain.com.

Hi Ruslan
Yes that works without issues, i can access the n8n instance with the url, just in the redirect path there is still localhost.

It looks like WEBHOOK_URL is not being set correctly, is this being set in the script you are using before you launch n8n?

Typically we recommend using docker as it is a lot easier to configure and it includes everything you need, npm is good for testing but docker is the best option for production.

Thanks for your help already now, shouldn’t the command to set the Webhook URL be following:

export WEBHOOK_URL=https://n8n.mydomain.com/

If so, why does it not work?
Thanks for the comment about docker, but for performance reasons (it’s a virtualized environment), i’d like to not have docker on all guests installed.
Best Regards
Florin

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.