one-click-apps: n8n one-click-app doesn't work out of the box

n8n has special needs from its reverse proxy for the communication between the webapp and the server. The following nginx config makes it work right.

            proxy_pass $upstream;
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto $scheme;

            proxy_set_header Connection '';
            proxy_http_version 1.1;
            chunked_transfer_encoding off;
            proxy_buffering off;
            proxy_cache off;

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 25 (6 by maintainers)

Most upvoted comments

@mikeriss Had a similar issue, and made it work with the following steps:

  1. Edited the nginx configation (per @sneak initial comment)
  2. Edited environment variables:
WEBHOOK_TUNNEL_URL=https://YOUR_DOMAIN/ # you remote public domain
VUE_APP_URL_BASE_API=http://srv-captain--n8n:5678 # with local domain
N8N_HOST=srv-captain--n8n # with local domain

It seems that it does now work out of the box, so reference to this ticket from the installation, probably, shall be removed.