# Getting n8n t work via HTTPS

**URL:** <https://community.n8n.io/t/getting-n8n-t-work-via-https/52651>\
**Category:** Questions\
**Created:** [August 26, 2024, 6:34pm UTC](https://community.n8n.io/t/getting-n8n-t-work-via-https/52651 "2024-08-26T18:34:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GambitZA](https://avatars.discourse-cdn.com/v4/letter/g/fbc32d/32.png) [@GambitZA](https://community.n8n.io/u/GambitZA)\
**Post date:** [August 26, 2024, 6:34pm UTC](https://community.n8n.io/t/getting-n8n-t-work-via-https/52651/1 "2024-08-26T18:34:07Z")

</div>

## Describe the problem/error/question

I have created a Prxmox LXC container running Ubuntu 22.04  
Followed this guide: [How to set up n8n via PM2 – n8n Blog](https://blog.n8n.io/how-to-set-up-n8n-via-pm2/#prerequisites) to set up n8n  
I have a DNS record on Cloudflare pointing to my nginx proxy and a valid cert created (just like my other 6 services which work fine)

Below is a redacted version of my environment variables file:

module.exports = {  
apps : [{  
name : “n8n”,  
env: {  
N8N\_BASIC\_AUTH\_ACTIVE:true,  
N8N\_BASIC\_AUTH\_USER:“USERNAME (redacted)”,  
N8N\_BASIC\_AUTH\_PASSWORD:“PASSWORD (redacted)”,  
N8N\_PROTOCOL: “https”,  
N8N\_PORT=443,  
WEBHOOK\_TUNNEL\_URL: “[https://SUBDOMAIN.MYDOMAIN.COM](https://SUBDOMAIN.MYDOMAIN.COM) (redacted)”,  
N8N\_HOST: “[SUBDOMAIN.MYDOMAIN.COM](http://SUBDOMAIN.MYDOMAIN.COM) (redacted)”,  
}  
}]  
}

I then launch n8n using the command:

pm2 start ecosystem.config.js

n8n says it is running

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/8/d/8d35dc447fba965eed70f04af843a4e1ad851947.png)

## What is the error message (if any)?

When I try browse to the URL I get the following:

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/3/d/3d0ff9a5ee87d37c1cb8c06cb672cf7a2e0684a5.png)

If I do not enable https everthing works fine on [http://IPADDRESS:5678](http://IPADDRESS:5678) but I want to expose this to the internet to be accessible remotely and to allow webhooks to work. Ive scoured the internet for docs/guides/videos but cannot seem to find what I am doing wrong.

Feel free to throw shade for being a n00b, but only if it comes with helpful advice afterwards 🙂 TIA

---

<div class="post-metadata">

**Author:** ![n8n](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/n8n/32/196425_2.png) [@n8n](https://community.n8n.io/u/n8n)\
**Post date:** [August 26, 2024, 6:34pm UTC](https://community.n8n.io/t/getting-n8n-t-work-via-https/52651/2 "2024-08-26T18:34:09Z")

</div>

It looks like your topic is missing some important information. Could you provide the following if applicable.

- **n8n version:**
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**
- **Operating system:**

---

<div class="post-metadata">

**Author:** ![GambitZA](https://avatars.discourse-cdn.com/v4/letter/g/fbc32d/32.png) [@GambitZA](https://community.n8n.io/u/GambitZA)\
**Post date:** [August 27, 2024, 12:54pm UTC](https://community.n8n.io/t/getting-n8n-t-work-via-https/52651/3 "2024-08-27T12:54:07Z")

</div>

UPDATE

I found the issue eventually!

When setting up nginx you must leave the scheme type as http and not set it to https, even though you are forcing SSL.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [September 9, 2024, 3:58pm UTC](https://community.n8n.io/t/getting-n8n-t-work-via-https/52651/4 "2024-09-09T15:58:01Z")

</div>

Closed on September 9, 2024, 3:58pm UTC

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