Comments (15)
Forget that, found a helpful thread on server-sent events and nginx
I added proxy_buffering off;
, proxy_cache off;
, proxy_http_version 1.1;
, chunked_transfer_encoding off;
, and proxy_set_header Connection '';
and now the web UI is working in Firefox.
in case you need it, I launched n8n like so:
docker run -d -p 5678:5678 -v ~/.n8n:/root/.n8n -e N8N_BASIC_AUTH_ACTIVE=true -e N8N_BASIC_AUTH_PASSWORD=$N8N_PASS -e N8N_BASIC_AUTH_USER=$N8N_USER -e N8N_HOST=$N8N_HOST -e N8N_PROTOCOL=$N8N_PROTO -e VUE_APP_URL_BASE_API=$N8N_VUE_URL_BASE_API -e WEBHOOK_TUNNEL_URL=$N8N_WEBHOOK_TUNNEL_URL --name n8n n8nio/n8n:0.23.0
from n8n.
@lmariscal to change the URL of only the webhook set the environment variable:
That sets the webhook URL (totally ignoring what is in N8N_HOST
and N8N_PORT
)
WEBHOOK_TUNNEL_URL="https://example.com/"
from n8n.
In the top right corner.
https://imgur.com/Gv4JFRp
from n8n.
No, it doesn't. Now is the Tunnl URL Section completly gone and on the Panel is the "Connection Lost" back.
from n8n.
What you described should work. But I just checked and it seems like there is some documentation missing. Very sorry about that. Will try to add it asap.
For now make sure to set the following environment variables that everything knows how to connect:
N8N_HOST="example.com"
N8N_PROTOCOL="https"
N8N_PORT="443"
VUE_APP_URL_BASE_API="https://example.com/"
WEBHOOK_TUNNEL_URL="https://example.com/"
from n8n.
Now I'm slightly confused. How should I configure Nginx then, when n8n already blocks Port 443?
from n8n.
Ah, you can also choose a different port. I just wanted to show you the available environment variables. Choose whatever port you want. Just make sure all the above ones are set accordingly.
from n8n.
If I understand this right, the environment variable WEBHOOK_TUNNEL_URL
should replace the Tunnel URL which is shown while n8n starts. If it is that way, I'm doing something wrong, because i get still a *.hooks.n8n.cloud Domain, while n8n starts.
from n8n.
Yes that is correct. You then just have to remove the "--tunnel" and it should display you the correct URLs in the nodes.
from n8n.
Yes,, the tunnel-section on startup gets only displayed when the n8n tunnel gets used.
What do you mean with "Connection Lost"? In the top right corner of the page? That informs about if the connection via EventSource is established to display updates about what is currently executing. So it is not webhook related. You can check in the Console or Network-Pane to see to where it tries to connect. Maybe that helps you.
Does it display the connection issue from the start or after a while?
from n8n.
From the Start
from n8n.
And the where does the "Connection Lost" get displayed? In the top right corner or do you mean something else?
from n8n.
Shot in the dark here, but are you seeing this error on Firefox?
I think this is the implementation of server sent events being broken in Firefox, because for me it's working in Chromium and not FX (Developer edition).
from n8n.
The N8N_HOST
does change the host value but in the webhook urls it still shows the port behind the proxy. N8N_PORT
wouldn't solve this issue as I do want that port to be used at serving the server behind the proxy but I don't want it in my webhooks.
from n8n.
I hope that did answer your questions. If not you can follow up anytime. Close the issue for now.
from n8n.
Related Issues (20)
- Pagination ends in maxStalledCound if set to "Response is empty" HOT 6
- n8n fails to start with read-only root filesystem (like you would use in kubernetes clusters) due to cache directory: HOT 4
- HTTP Request Authorization failed without trailing slash starting from [email protected] HOT 5
- Chat Node giving “empty response” HOT 5
- Can't build because of pdfjs-dist HOT 8
- Node Version not Supporte HOT 2
- Asana Trigger doesn't work HOT 20
- The Node Telegram Trigger does not receive information when in Queue HOT 1
- Rabbit MQ QueueDeclare for user with no "queue.declare" permissions HOT 7
- Gotify does not enable markdown, cannot configure API or provide custom fields HOT 5
- ERROR: duplicate key value violates unique constraint HOT 2
- Pagination is not updating parameters HOT 10
- Unable to use Supabase node (unsupported Postgres connection options + unable to specify Supabase schema) HOT 9
- Create credentials rest API, validation problem on Twilio HOT 2
- Executing an old version of the workflow instead of the new one. HOT 10
- Error when use bucket with dot in name AWS S3 HOT 1
- Zoho CRM: this.setDefaultStatusCodeMessage is not a function HOT 23
- runExecutionData nodeExecutionStack has lost in fullRunData HOT 3
- N8N Http Node (Socks5 Proxy Protocol) Stopped working in latest versions of HTTP Node! HOT 1
- Workflow Has No Owner After Migration HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from n8n.