Generate and deploy nginx configs with SSH, web forms and Cloudflare
Ready for 3.0What this workflow does
This workflow has 13 nodes and runs when an HTTP GET request hits its webhook URL. It uses only n8n's built-in nodes.
How it runs
Trigger: When an HTTP GET request hits its webhook URL.
- Respond to Webhook: sends the response back to the webhook caller
- Validate Routes (Code): runs custom JavaScript code
- Is Input Valid? (If): checks a condition and branches into true / false
- Generate nginx Config (Code): runs custom JavaScript code
- Respond Error (Respond to Webhook): sends the response back to the webhook caller
- Should Create DNS Record? (If): checks a condition and branches into true / false
- Get Cloudflare Zone ID (HTTP Request): calls an HTTP API
- Prepare Machine (SSH): uses SSH
- Create Cloudflare DNS Record (HTTP Request): calls an HTTP API (POST)
- Respond Failure (Respond to Webhook): sends the response back to the webhook caller
…plus 2 more steps. See the full node list below.
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (6)
- Code
n8n-nodes-base.code - Respond to Webhook
n8n-nodes-base.respondToWebhook - Webhook
n8n-nodes-base.webhook - SSH
n8n-nodes-base.ssh - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if
From the author
Quick overview This workflow serves a protected web form that collects domain and route settings, generates an nginx server configuration, optionally creates a Cloudflare DNS A record, and then connects over SSH to install prerequisites, deploy the config,…