Skip to main content
P

PUQcloud

6
Workflows

Workflows by PUQcloud

Workflow preview: Deploy Docker NextCloud, API backend for WHMCS/WISECP
Free advanced

Deploy Docker NextCloud, API backend for WHMCS/WISECP

## Overview The **Docker NextCloud WHMCS module** leverages a sophisticated workflow for **n8n**, designed to automate the comprehensive deployment, configuration, and management processes for NextCloud and NextCloud Office services. Through its intuitive API interface, the workflow securely receives commands and orchestrates predefined tasks via SSH on your Docker-hosted server, ensuring streamlined operations and efficient management. ## Prerequisites - You must deploy your own dedicated **n8n** server to manage workflows effectively. - Alternatively, you may opt for the official **n8n** cloud-based solutions accessible via: [n8n Official Site](https://n8n.partnerlinks.io/o692v7cg297k) - Your Docker server must be accessible via SSH with necessary permissions. ## Installation Steps ### Install the Required Workflow on n8n You can select from two convenient installation options: #### **Option 1: Use the Latest Version from the n8n Marketplace** - The latest workflow templates are continuously updated and available on the n8n marketplace. - Explore all templates provided by PUQcloud directly here: [PUQcloud on n8n](https://n8n.io/creators/puqcloud/) #### **Option 2: Manual Installation** - Each module version includes a bundled workflow template file. ![image](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1743075812540.png) - Import this workflow file directly into your n8n server manually. ![import workflow](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741284912356.png) ## n8n Workflow API Backend Setup for WHMCS ### Configure API Webhook and SSH Access - Create a secure **Basic Auth Credential** for Webhook API interactions within n8n. ![basic auth](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1743075930556.png) - Create an **SSH Credential** within n8n to securely communicate with the Docker host. ![ssh credential](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741285118412.png) ### Modify Template Parameters Adjust and update the following critical parameters to match your deployment specifics: ![parameters](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1743075984756.png) - `server_domain` – Set this to the domain of your WHMCS Docker server. - `clients_dir` – Specify the directory where user data and related resources will be stored. - `mount_dir` – The standard mount point for container storage (recommended to remain unchanged). **Do not alter** the following technical parameters to avoid workflow disruption: `screen_left`, `screen_right`. ### **Deploy-docker-compose Configuration** Fine-tune Docker Compose configurations tailored specifically for these critical operational scenarios: - Initial service provisioning and setup - Service suspension and subsequent unlocking - Service configuration updates - Routine service maintenance tasks ![docker-compose](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741875704524.png) ### **nginx Configuration Management** Enhance and customize proxy server configurations using the dedicated nginx workflow element: - **main**: Define specialized parameters within the server configuration block. - **main_location**: Set custom headers, caching policies, and routing rules for the root location. ![nginx](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741875960357.png) ### **Bash Script Automation** Automate Docker container management and related server tasks through dynamically generated Bash scripts within n8n. Scripts execute securely via SSH and provide responses in JSON or plain text formats for easy parsing and logging. - Scripts are conveniently linked directly to the SSH action elements. - You retain complete flexibility to adapt or extend these scripts as necessary to meet your precise operational requirements. ![bash scripts](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741876353319.png)

P
PUQcloud
DevOps
13 May 2025
474
0
Workflow preview: Deploy Docker InfluxDB, API backend for WHMCS/WISECP
Free advanced

Deploy Docker InfluxDB, API backend for WHMCS/WISECP

## Overview The **Docker InfluxDB 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: [PUQcloud on n8n](https://n8n.io/creators/puqcloud/) #### **Option 2: Manual Installation** - Each module version comes with a workflow template file. ![Manual Import Step 1](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1742770228107.png) - You need to manually import this template into your n8n server. ![Manual Import Step 2](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741284912356.png) ## n8n Workflow API Backend Setup for WHMCS/WISECP ### 1. Configure API Webhook and SSH Access - Create a **Basic Auth Credential** for the Webhook API block in n8n. ![Basic Auth 1](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1742770270468.png) ![Basic Auth 2](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1742770333045.png) ![Basic Auth 3](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1742770393898.png) - Create an **SSH Credential** for accessing a server with Docker installed. ![SSH 1](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741285118412.png) ![SSH 2](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741285147192.png) ![SSH 3](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741285198822.png) ### 2. Modify Template Parameters In the **Parameters** block of the template, update the following settings: ![Parameters](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1742770561386.png) ![More Parameters](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 can modify the Docker Compose configuration. This is generated in the following scenarios: - When the service is created - When the service is unlocked - When the service is updated ![Deploy Docker](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741875704524.png) ![Deploy Docker 2](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1742770618391.png) ### **nginx** In the **nginx** element, you can modify 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 configuration. Here, you can define custom headers and parameters. ![nginx Config](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741875960357.png) ![nginx Config 2](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1742770642036.png) ### **Bash Scripts** Management of Docker containers and related procedures is done by executing Bash scripts generated in **n8n**. These scripts return either JSON or plain strings. - All scripts are located in elements directly connected to the **SSH** element. - You have full control over any script and can modify or execute it as needed. ![Bash Script](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741876353319.png)

P
PUQcloud
DevOps
13 May 2025
256
0
Workflow preview: Deploy docker Grafana, API backend for WHMCS/WISECP
Free advanced

Deploy docker Grafana, API backend for WHMCS/WISECP

# Setting up n8n workflow ## Overview The **Docker Grafana 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)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741970282211.png) - You need to manually import this template into your n8n server. [![image-1741284912356.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741284912356.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741284912356.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-1741285064715.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741285064715.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741285064715.png) [![image-1741284983806.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741284983806.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741284983806.png) [![image-1741285036996.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741285036996.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741285036996.png) - Create an **SSH Credential** for accessing a server with Docker installed. [![image-1741285118412.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741285118412.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741285118412.png) [![image-1741285147192.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741285147192.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741285147192.png) [![image-1741285198822.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741285198822.png)](https://doc.puq.info/uploads/images/gallery/2025-03/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)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741285369145.png) [![image-1741285412110.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741285412110.png)](https://doc.puq.info/uploads/images/gallery/2025-03/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)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741875704524.png) [![image-1741875734754.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741875734754.png)](https://doc.puq.info/uploads/images/gallery/2025-03/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)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741875960357.png) [![image-1741875978450.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741875978450.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741875978450.png) ### **Bash Scripts** Management of Docker containers and all related procedures on the server is carried out by executing Bash scripts generated in **n8n**. These scripts return either a JSON response or a string. - All scripts are located in elements directly connected to the **SSH** element. - You have full control over any script and can modify or execute it as needed. [![image-1741876353319.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741876353319.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741876353319.png)

P
PUQcloud
DevOps
13 May 2025
374
0
Workflow preview: Deploy Docker Immich, API backend for WHMCS/WISECP
Free advanced

Deploy Docker Immich, API backend for WHMCS/WISECP

# Setting up n8n workflow ## Overview The **Docker Immich 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-1742323788556.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1742323788556.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1742323788556.png) - You need to manually import this template into your n8n server. [![image-1741284912356.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741284912356.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741284912356.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-1742323836025.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1742323836025.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1742323836025.png) [![image-1742323899841.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1742323899841.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1742323899841.png) [![image-1742323927094.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1742323927094.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1742323927094.png) - Create an **SSH Credential** for accessing a server with Docker installed. [![image-1741285118412.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741285118412.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741285118412.png) [![image-1741285147192.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741285147192.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741285147192.png) [![image-1741285198822.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741285198822.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741285198822.png) ### Modify Template Parameters In the **Parameters** block of the template, update the following settings: [![image-1742323964634.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1742323964634.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1742323964634.png) [![image-1741285412110.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741285412110.png)](https://doc.puq.info/uploads/images/gallery/2025-03/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)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741875704524.png) [![image-1742324015958.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1742324015958.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1742324015958.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)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741875960357.png) [![image-1742324044762.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1742324044762.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1742324044762.png) ### **Bash Scripts** Management of Docker containers and all related procedures on the server is carried out by executing Bash scripts generated in **n8n**. These scripts return either a JSON response or a string. - All scripts are located in elements directly connected to the **SSH** element. - You have full control over any script and can modify or execute it as needed. [![image-1741876353319.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741876353319.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741876353319.png)

P
PUQcloud
DevOps
19 Mar 2025
309
0
Workflow preview: Deploy Docker MinIO, API backend for WHMCS/WISECP
Free advanced

Deploy Docker MinIO, API backend for WHMCS/WISECP

# Setting up n8n workflow ## Overview The **Docker MinIO 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-1741974273723.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741974273723.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741974273723.png) - You need to manually import this template into your n8n server. [![image-1741284912356.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741284912356.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741284912356.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-1741974396480.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741974396480.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741974396480.png) [![image-1741974500641.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741974500641.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741974500641.png) [![image-1741285036996.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741285036996.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741285036996.png) - Create an **SSH Credential** for accessing a server with Docker installed. [![image-1741285118412.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741285118412.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741285118412.png) [![image-1741285147192.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741285147192.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741285147192.png) [![image-1741285198822.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741285198822.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741285198822.png) ### Modify Template Parameters In the **Parameters** block of the template, update the following settings: [![image-1741974559641.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741974559641.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741974559641.png) [![image-1741285412110.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741285412110.png)](https://doc.puq.info/uploads/images/gallery/2025-03/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)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741875704524.png) [![image-1741974602887.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741974602887.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741974602887.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)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741875960357.png) [![image-1741974633761.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741974633761.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741974633761.png) ### **Bash Scripts** Management of Docker containers and all related procedures on the server is carried out by executing Bash scripts generated in **n8n**. These scripts return either a JSON response or a string. - All scripts are located in elements directly connected to the **SSH** element. - You have full control over any script and can modify or execute it as needed. [![image-1741876353319.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741876353319.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741876353319.png)

P
PUQcloud
DevOps
17 Mar 2025
634
0
Workflow preview: Deploy Docker n8n, API backend for WHMCS/WISECP
Free advanced

Deploy Docker n8n, 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)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741970282211.png) - You need to manually import this template into your n8n server. [![image-1741284912356.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741284912356.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741284912356.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-1741285064715.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741285064715.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741285064715.png) [![image-1741284983806.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741284983806.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741284983806.png) [![image-1741285036996.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741285036996.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741285036996.png) - Create an **SSH Credential** for accessing a server with Docker installed. [![image-1741285118412.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741285118412.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741285118412.png) [![image-1741285147192.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741285147192.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741285147192.png) [![image-1741285198822.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741285198822.png)](https://doc.puq.info/uploads/images/gallery/2025-03/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)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741285369145.png) [![image-1741285412110.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741285412110.png)](https://doc.puq.info/uploads/images/gallery/2025-03/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)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741875704524.png) [![image-1741875734754.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741875734754.png)](https://doc.puq.info/uploads/images/gallery/2025-03/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)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741875960357.png) [![image-1741875978450.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741875978450.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741875978450.png) ### **Bash Scripts** Management of Docker containers and all related procedures on the server is carried out by executing Bash scripts generated in **n8n**. These scripts return either a JSON response or a string. - All scripts are located in elements directly connected to the **SSH** element. - You have full control over any script and can modify or execute it as needed. [![image-1741876353319.png](https://doc.puq.info/uploads/images/gallery/2025-03/scaled-1680-/image-1741876353319.png)](https://doc.puq.info/uploads/images/gallery/2025-03/image-1741876353319.png)

P
PUQcloud
DevOps
17 Mar 2025
738
0