I am hosting n8n locally. Please help me, what can I do to make my production URL show HTTPS instead of HTTP? I dont think I missed anything, please advice.
workflow:
{
“nodes”: [
{
“parameters”: {
“httpMethod”: “POST”,
“path”: “course/n8n102/new-order”,
“authentication”: “headerAuth”,
“responseMode”: “responseNode”,
“options”: {}
},
“type”: “n8n-nodes-base.webhook”,
“typeVersion”: 2.1,
“position”: [
0,
0
],
“id”: “37e154de-795c-43d2-ab05-9a1dfb0d8891”,
“name”: “WebhookNewOrder”,
“webhookId”: “cfeb6e38-2eb1-4819-b7d9-3155902a409b”,
“credentials”: {
“httpHeaderAuth”: {
“id”: “ZfZUat5uDyoZKJtZ”,
“name”: “n8n Academy API Key”
}
}
},
{
“parameters”: {
“conditions”: {
“options”: {
“caseSensitive”: true,
“leftValue”: “”,
“typeValidation”: “strict”,
“version”: 3
},
“conditions”: [
{
“id”: “49fdf820-874f-40be-bb11-95aac375a576”,
“leftValue”: “={{ $json.body.order_id }}”,
“rightValue”: “”,
“operator”: {
“type”: “string”,
“operation”: “notEmpty”,
“singleValue”: true
}
},
{
“id”: “e78b7f50-64fa-4d99-b031-586a0edd1d3c”,
“leftValue”: “={{ $json.body.customer_id }}”,
“rightValue”: “”,
“operator”: {
“type”: “string”,
“operation”: “notEmpty”,
“singleValue”: true
}
},
{
“id”: “7d9a361c-0805-46ec-b4f9-d13d9ad437ae”,
“leftValue”: “={{ $json.body.total }}”,
“rightValue”: “”,
“operator”: {
“type”: “string”,
“operation”: “notEmpty”,
“singleValue”: true
}
}
],
“combinator”: “and”
},
“options”: {}
},
“type”: “n8n-nodes-base.if”,
“typeVersion”: 2.3,
“position”: [
208,
0
],
“id”: “120a1dc4-ee59-48cf-9344-ef2309fd91d1”,
“name”: “ValidateRequiredFields”
},
{
“parameters”: {
“respondWith”: “json”,
“responseBody”: “{\n “status”: “accepted”,\n “order_id”: “{{ $(‘WebhookNewOrder’).item.json.body.order_id }}”,\n “message”: “Order received and queued for processing”\n}”,
“options”: {
“responseCode”: 200
}
},
“type”: “n8n-nodes-base.respondToWebhook”,
“typeVersion”: 1.5,
“position”: [
416,
-96
],
“id”: “33f6117e-1732-4b70-b62e-b4bcce4cd0f4”,
“name”: “RespondSuccess”
},
{
“parameters”: {
“respondWith”: “json”,
“responseBody”: “{\n “status”: “error”,\n “message”: “Missing required fields: order_id, customer_id, and total are required”\n}”,
“options”: {
“responseCode”: 400
}
},
“type”: “n8n-nodes-base.respondToWebhook”,
“typeVersion”: 1.5,
“position”: [
432,
96
],
“id”: “c83eabba-554b-4256-ad7a-321da5106995”,
“name”: “RespondValidationError”
}
],
“connections”: {
“WebhookNewOrder”: {
“main”: [
[
{
“node”: “ValidateRequiredFields”,
“type”: “main”,
“index”: 0
}
]
]
},
“ValidateRequiredFields”: {
“main”: [
[
{
“node”: “RespondSuccess”,
“type”: “main”,
“index”: 0
}
],
[
{
“node”: “RespondValidationError”,
“type”: “main”,
“index”: 0
}
]
]
}
},
“pinData”: {},
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “3a8d30bb884e0ab54ff34ae8dbd93db3ded3a583052130c4b0eea71fb451de8c”
}
}

