API Setting page is empty when self-hosted on subpath

Hi.
I am using self-host n8n and API page is empty in setting page when deploying on subpath for exmaple: “example.com/n8n
But available when deploying on root path.

Information on your n8n setup

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

NGINX config for subpath :

N8N_PATH=/n8n/
VUE_APP_URL_BASE_API=https://{{ domain }}/n8n/
WEBHOOK_URL=https://{{ domain }}/n8n/
N8N_EDITOR_BASE_URL=https://{{ domain }}/n8n/

NGINX N8N Configs

location /n8n/ {
proxy_pass http://127.0.0.1:{{ n8n_local_port }}/;
proxy_set_header Connection “Upgrade”;
chunked_transfer_encoding off;
proxy_buffering off;
proxy_cache off;

proxy_set_header Early-Data $ssl_early_data;
proxy_set_header Host $host;
proxy_set_header Proxy "";
proxy_set_header Upgrade $http_upgrade;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-Ssl on;
proxy_set_header X-Real-IP $remote_addr;

}

Hey @MRGD,

Welcome to the community :birthday:

I would recommend not using the path option as we will likely be removing it in the future, the path feature relies on the reverse proxy rewriting the path sadly we don’t have instructions for this with nginx.

It is also possible that this is a bug with the option, is using the path something you need to use or can you use a subdomain instead?

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