Deploy Docker n8n as API Backend for WHMCS/WISECP

# Setting up n8n workflow ## Overview The **Docker n8n WHMCS module** uses a specially designed workflow for **n8n** to automate deployment processes. The workflow provides an API interface for the module, receives specific commands, and connects via SSH to a server with Docker installed to perform predefined actions. ## Prerequisites - You must have your own **n8n** server. - Alternatively, you can use the official **n8n** cloud installations available at: [n8n Official Site](https://n8n.partnerlinks.io/o692v7cg297k) ## Installation Steps ### Install the Required Workflow on n8n You have two options: #### **Option 1: Use the Latest Version from the n8n Marketplace** - The latest workflow templates for our modules are available on the official n8n marketplace. - Visit our profile to access all available templates: [PUQcloud on n8n](https://n8n.io/creators/puqcloud/) #### **Option 2: Manual Installation** - Each module version comes with a workflow template file. ![image-1741970282211.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741970282211.png) ![image-1741284912356.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741284912356.png) - You need to manually import this template into your n8n server. ![image-1741285064715.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741285064715.png) ![image-1741284983806.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741284983806.png) ![image-1741285036996.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741285036996.png) ## n8n Workflow API Backend Setup for WHMCS/WISECP ### Configure API Webhook and SSH Access - Create a **Basic Auth Credential** for the Webhook API Block in n8n. ![image-1741285118412.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741285118412.png) ![image-1741285147192.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741285147192.png) ![image-1741285198822.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741285198822.png) ### Modify Template Parameters In the **Parameters** block of the template, update the following settings: ![image-1741285369145.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741285369145.png) ![image-1741285412110.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741285412110.png) - `server_domain` - Must match the domain of the WHMCS/WISECP Docker server. - `clients_dir` - Directory where user data related to Docker and disks will be stored. - `mount_dir` - Default mount point for the container disk (recommended not to change). **Do not modify** the following technical parameters: - `screen_left` - `screen_right` ### **Deploy-docker-compose** In the **Deploy-docker-compose** element, you have the ability to modify the Docker Compose configuration, which will be generated in the following scenarios: - When the service is created - When the service is unlocked - When the service is updated ![image-1741875704524.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741875704524.png) ![image-1741875734754.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741875734754.png) ### **nginx** In the **nginx** element, you can modify the configuration parameters of the web interface proxy server. - The **main** section allows you to add custom parameters to the **server** block in the proxy server configuration file. - The **main_location** section contains settings that will be added to the **location /** block of the proxy server configuration. Here, you can define custom headers and other parameters specific to the root location. ![image-1741875960357.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741875960357.png)

n8n

Setting up n8n workflow

Overview

The Docker n8n WHMCS module uses a specially designed workflow for n8n to automate deployment processes. The workflow provides an API interface for the module, receives specific commands, and connects via SSH to a server with Docker installed to perform predefined actions.

Prerequisites

  • You must have your own n8n server.
  • Alternatively, you can use the official n8n cloud installations available at: n8n Official Site

Installation Steps

Install the Required Workflow on n8n

You have two options:

Option 1: Use the Latest Version from the n8n Marketplace

  • The latest workflow templates for our modules are available on the official n8n marketplace.
  • Visit our profile to access all available templates: PUQcloud on n8n

Option 2: Manual Installation

  • Each module version comes with a workflow template file. image-1741970282211.png image-1741284912356.png
  • You need to manually import this template into your n8n server. image-1741285064715.png image-1741284983806.png image-1741285036996.png

n8n Workflow API Backend Setup for WHMCS/WISECP

Configure API Webhook and SSH Access

  • Create a Basic Auth Credential for the Webhook API Block in n8n. image-1741285118412.png image-1741285147192.png image-1741285198822.png

Modify Template Parameters

In the Parameters block of the template, update the following settings:

image-1741285369145.png

image-1741285412110.png

  • server_domain - Must match the domain of the WHMCS/WISECP Docker server.
  • clients_dir - Directory where user data related to Docker and disks will be stored.
  • mount_dir - Default mount point for the container disk (recommended not to change).

Do not modify the following technical parameters:

  • screen_left
  • screen_right

Deploy-docker-compose

In the Deploy-docker-compose element, you have the ability to modify the Docker Compose configuration, which will be generated in the following scenarios:

  • When the service is created
  • When the service is unlocked
  • When the service is updated

image-1741875704524.png

image-1741875734754.png

nginx

In the nginx element, you can modify the configuration parameters of the web interface proxy server.

  • The main section allows you to add custom parameters to the server block in the proxy server configuration file.
  • The main_location section contains settings that will be added to the location / block of the proxy server configuration. Here, you can define custom headers and other parameters specific to the root location.

image-1741875960357.png

$24.99
Last updated October 10, 2026
30-day money-back guarantee
Instant download
Lifetime updates included

New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.

Secure checkout powered by Stripe

Support

How to import this workflow into n8n

  1. 1Purchase or download the workflow to get the n8n workflow JSON file.
  2. 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
  3. 3Open each node marked with a credential warning and connect your own accounts and API keys.
  4. 4Run the workflow once manually to verify the data flow, then toggle it to Active.

Related Development & IT workflows

More from PUQcloud

Need this deployed? We'll set it up for you.

Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.