# WhatsApp Trigger Webhook URL Generated as HTTP (not HTTPS)

**URL:** <https://community.n8n.io/t/whatsapp-trigger-webhook-url-generated-as-http-not-https/213088>\
**Category:** Questions\
**Created:** [October 28, 2025, 6:58pm UTC](https://community.n8n.io/t/whatsapp-trigger-webhook-url-generated-as-http-not-https/213088 "2025-10-28T18:58:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![davisousa](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/davisousa/32/133101_2.png) [@davisousa](https://community.n8n.io/u/davisousa)\
**Post date:** [October 28, 2025, 6:58pm UTC](https://community.n8n.io/t/whatsapp-trigger-webhook-url-generated-as-http-not-https/213088/1 "2025-10-28T18:58:40Z")

</div>

### Webhook Configuration Issue (HTTP vs. HTTPS)

**The Problem:**

- My instance is running with **HTTPS** and is accessible via `https://n8n.server.com`

- I am running the application behind an **Nginx Reverse Proxy**.

- The Webhook URL generated by the **“WhatsApp Trigger”** node **is still HTTP** (not HTTPS), which prevents registration with Meta/Facebook, as they require HTTPS.

**My Setup Details:**

- **Workflow Application:** n8n (Version: `n8nio/n8n:latest` via Docker)

- **Reverse Proxy:** Nginx

**Docker Environment Variables (n8n):**

```auto
N8N_HOST=n8n.server.com.br
N8N_PORT=443
N8N_PROTOCOL=https
WEBHOOK_URL=https://n8n.server.com
WEBHOOK_TUNNEL_URL=https://n8n.server.com

```

**Nginx Configuration (443 `server` block):**

Nginx

```auto
server {
    listen 443 ssl;
    server_name n8n.server.com;
    # ... SSL configuration (Let's Encrypt) ...

    location / {
        proxy_pass http://localhost:5678;
        
        # Crucial Proxy Headers
        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 X-Forwarded-Host $host;
        proxy_set_header X-Forwarded-Port 443;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_http_version 1.1;
    }
}

```

**Note:** I have confirmed that the n8n container has been fully **restarted** after applying these environment variables.

_Thank you in advance for your help!_

---

<div class="post-metadata">

**Author:** ![Parintele\_Damaskin](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/parintele_damaskin/32/139243_2.png) [@Parintele\_Damaskin](https://community.n8n.io/u/Parintele_Damaskin)\
**Post date:** [October 28, 2025, 9:55pm UTC](https://community.n8n.io/t/whatsapp-trigger-webhook-url-generated-as-http-not-https/213088/2 "2025-10-28T21:55:35Z")

</div>

You should also set N8N\_PROXY\_HOPS=1 since you are running behind a single reverse proxy. This helps n8n correctly interpret the forwarded headers and generate the right URLs.  
N8N\_PORT should be set to the internal port n8n listens on (usually 5678), not 443. The reverse proxy (Nginx) handles the HTTPS/443 part.

---

<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:** [November 4, 2025, 9:56pm UTC](https://community.n8n.io/t/whatsapp-trigger-webhook-url-generated-as-http-not-https/213088/3 "2025-11-04T21:56:21Z")

</div>

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