Open chhaj5236 opened 5 months ago
Hey @chhaj5236,
I have created NODE-1296
as the dev ticket to look into this in more detail, Out of interest is using the n8n_path
a requirement in your environment or if needed would you be able to swap to a subdomain instead?
Hi @Joffcom, thanks for the feedback. It's not easy for us to apply a subdomain, n8n_path
is a good feature for us to serve n8n behind a proxy by using a different sub-path.
Hey @chhaj5236,
Is that a different sub path for multiple instances? One of the chats we have had internally was around possibly removing support for n8n_path
in the future as we don't see it being used that often so it would be great to understand a bit more around what you are doing with it.
@Joffcom It's not for multiple n8n instances, we have other services behind the proxy.
Bug Description
I set N8N_PATH to "/n8n/" and set "Chat Trigger" to "n8n User Auth". Then I open "Chat Url" in a web browser, it will redirect me to
http://localhost:5678/signin?redirect=http://localhost:5678/n8n/webhook/xxxx/chat
, buthttp://localhost:5678/signin
does not exist.I checked the source code and found that "Chat Trigger" does not take N8N_PATH as the prefix when trying to check the user auth or redirecting the url.
I also checked
http://localhost:5678/n8n/rest/login
is working as expected, buthttp://localhost:5678/rest/login
is not.I wonder if I miss something like other environment need to be set?
To Reproduce
N8N_PATH
to/n8n/
andWEBHOOK_URL
tohttp://localhost:5678/n8n/
then deploy the n8n service.Workflows
page andadd a new workflow
and aChat Trigger
node.Activate
the workflow.Chat Trigger
node,Make Chat Plublic Available
and setAuthentication
ton8n User Auth
.Chat Url
and open it in the web browser.Expected behavior
should redirect to the
Chat Window
.Operating System
n8nio/base
n8n Version
1.31.0
Node.js Version
18.19.1
Database
SQLite (default)
Execution mode
main (default)