Local n8n install on windows server under npm using https

Hi!

I have a local install of n8n under windows server 2019. I cannot use docker on this operating system, so i used npm. Everything works right under http.

Now I need to access a webhook of my workflow from a MAUI App. Android doesn’t allow to POST http messages. I need to use https messages.

I have tried every option I have found on the web, but every time I start n8n i get the same message:

Editor is now accessible via:
http://localhost:5678/

I have already set this environment variables:

setx N8N_HOST "misitioweb.com" /m
setx N8N_PROTOCOL "https" /m
setx N8N_PORT 8085 /m
setx VUE_APP_URL_BASE_API "https://misitioweb.com/" /m
setx WEBHOOK_TUNNEL_URL "https://misitioweb.com:8085/" /m
setx N8N_SSL_KEY C:\n8n\clave.pem /m
setx N8N_SSL_CERT C:\n8n\cert.pem /m

And I sart n8n using the standard method:

n8n start

What else can I do? am I doing something wrong? I cannot use tunnel because it’s a production environment. Please, I need help.

hello @Pablojar007

Why you can’t use docker? npm use on the bare server is quite complex…

About vars:

  • VUE_APP_URL_BASE_API - you don’t need that one
  • WEBHOOK_TUNNEL_URL - there is no such a varibale. The correct one is WEBHOOK_URL

Also, I’m not very confident that you need the /m flag. I’ve set them via PS command $ENV:Variable_name=variable_value (e.g. $env:N8N_PROTOCOL = "https" and then I was able to use them by starting n8n in the same shell

1 Like

Thank for your interest barn4k!

I know those 3 environment variables are useless, but I read somewhere about it. That’s why I used them.

About the docker thing: you cannot install docker on a windows server. That was my first attempt. But the installer won’t run. I have no other way to use n8n but npm. I know it’s a real pain, that’s the reason why I am asking for help.

Now I have been able to get this message as I start n8n:

Editor is now accessible via:
https  ://localhost:5678/

But it’s not true. The web service doesn’t give any answer. I have try using a chrome and using Postman. I get this error:

Error: write EPROTO 1018688:error:100000f7:SSL routines:OPENSSL_internal:WRONG_VERSION_NUMBER:..\..\..\..\src\third_party\boringssl\src\ssl\tls_record.cc:231:

And there’s other strange thing: when I press the ‘o’ key nothing happends, I mean, the web browser don’t open. When I used the http protocol I got the browser open with the n8n page open as I press the ‘o’ key.

Any idea?

I don’t understand why it keeps saying about the port 5678 if you have set the different port. Does the n8n available on port 8085?

About the windows server, you can install the docker on server instance via powershell

Can you provide the full output of the console (except the sensitive info like password, secrets, logins and etc) starting with the variable setting and ending when the editor is available?

Hi Pablo. If you were able to solve it, you would help me a lot!!

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