n8n

Setting up n8n

Step 1: Create your VM

  1. Go to FH Münster
    VMware vRealize Automation (vRA)

  2. Login with your FH credentials.

  3. Click on Service Broker.

  4. In the left menu, click on Catalog.

  5. Select the n8n resource.

  6. When prompted, set a password for the VM and store it securely.

    👉 We will call this the VM password. You will need it later to log in via SSH.

  7. Click Submit.

  8. Your n8n server is now being set up (this can take up to ~10 minutes). You can check the status in Deployments.

  9. Once the server is ready, click on it in Deployments and note both:

    • the VM name (e.g. stud-fb09-1234)
    • the IP address of the VM (e.g. 192.168.123.45)

    👉 Important: You will later access n8n via the VM name, but you must use the IP address for SSH login.

Step 2: First login to n8n (Web interface)

  1. Open a browser and navigate to your n8n server using the VM name:

    http://<VM-NAME>.n8n.fh-muenster.de

    Example:

    http://stud-fb09-1234.n8n.fh-muenster.de
  2. Create your n8n login credentials.

    👉 This is a different password than the VM password.
    We will call this the n8n login password.

  3. Skip the next 2 onboarding steps.

  4. You should now see the n8n start screen.

Step 3: Continue using n8n

  • Refresh the n8n page in your browser
  • Existing workflows remain unchanged

Step 4 (Optional): Postgres + pgvector for Retrieval Augmented Generation (RAG)

If you want to store embeddings and run vector similarity search for RAG workflows, you can set up Postgres with the pgvector extension on the VM.

  1. Log in to your VM via SSH (using the IP address)

    On macOS or Linux

    1. Open Terminal

    2. Run:

      ssh user@<VM-IP-ADDRESS>

      Example:

      ssh user@192.168.123.45
    3. Enter your VM password
      (nothing will be shown while typing – this is normal)

    On Windows (PowerShell)

    1. Open PowerShell

    2. Run:

      ssh user@<VM-IP-ADDRESS>
    3. Enter your VM password

  2. After logging in to the VM via SSH, run the following commands to install Postgres

    sudo apt update
    sudo apt install -y postgresql postgresql-16-pgvector postgresql-contrib
  3. Start Postgres

    sudo systemctl enable --now postgresql
    sudo systemctl status postgresql --no-pager
  4. Set a password for the postgres user

    Open a Postgres shell:

    sudo -u postgres psql

    Then set the password and exit:

    ALTER ROLE postgres WITH PASSWORD 'postgres';
    \q
  5. Enable the pgvector extension

    Create a database and enable the extension:

    sudo -u postgres psql
    CREATE EXTENSION IF NOT EXISTS vector;
    \q
  6. Add Postgres credentials in n8n

    Create a new Postgres credential in n8n and use:

    • Host: localhost
    • Database: postgres
    • User: postgres
    • Password: postgres

Optional
Configure public webhook URLs (only if webhooks/integrations do not work)

In the current VM setup, these settings are typically preconfigured automatically. Only follow the steps below if you notice issues with webhooks or integrations (e.g. Telegram, Gmail, OAuth) and want to verify/fix the public URL configuration.

  1. Log in to your VM via SSH (using the IP address)

    On macOS or Linux

    1. Open Terminal

    2. Run:

      ssh user@<VM-IP-ADDRESS>

      Example:

      ssh user@192.168.123.45
    3. Enter your VM password
      (nothing will be shown while typing – this is normal)

    On Windows (PowerShell)

    1. Open PowerShell

    2. Run:

      ssh user@<VM-IP-ADDRESS>
    3. Enter your VM password

  2. Verify or edit the n8n configuration file

    1. Open the configuration file using the editor nano:

      sudo nano /etc/n8n.env
    2. Scroll using the arrow keys and ensure the following lines exist
      (replace <VM-NAME> with your own VM name):

      WEBHOOK_URL=https://<VM-NAME>.n8n.fh-muenster.de/
      N8N_EDITOR_BASE_URL=https://<VM-NAME>.n8n.fh-muenster.de/
      N8N_PROXY_HOPS=1

      Example:

      WEBHOOK_URL=https://stud-fb09-1234.n8n.fh-muenster.de/
      N8N_EDITOR_BASE_URL=https://stud-fb09-1234.n8n.fh-muenster.de/
      N8N_PROXY_HOPS=1
  3. Save and close nano Nano uses keyboard shortcuts:

    1. Press Ctrl + O (save)
    2. Press Enter to confirm
    3. Press Ctrl + X to exit
  4. Restart n8n For the changes to take effect, restart n8n:

    sudo systemctl restart n8n

    (Optional check):

    sudo systemctl status n8n
Passwords – please don’t mix them up

You have two different passwords:

  1. VM password
    • Used for SSH login
    • Set during VM creation in vRA
  2. n8n login password
    • Used in the n8n web interface
    • Created on first browser login
Troubleshooting
  • Use the IP address for SSH, not the VM name
  • If webhooks/integrations don’t work, check whether WEBHOOK_URL and N8N_EDITOR_BASE_URL are set in /etc/n8n.env and restart n8n
  • After changes: restart n8n, refresh the browser, wait 1–2 minutes
Back to top