Ger Longstacks
Workflows by Ger Longstacks
Fetch the public IP addresses of your n8n instance
## Why If you need to use n8n to connect to service providers of yours, some of which happen to rely on firewall white-listing as part of their access control, you'll need to determine or verify the public IP addresses of your n8n instance(s). ## How does it work * The webhook, upon invocation, will use **Http Request** node to request public IP address information from ++api.ipify.org++ in json format, for 10 times, then **aggregate** results to an array. * The reason to repeat, is to get all the potential public IP addresses of your n8n instance. * Often than not, enterprises or network providers deploy at least a pair of gateway devices at the border for redundancy. * built-in array functions in a javascript expression are used to **pluck** all the values under 'ip' key, and to dedup to an array as response body. ## How to set it up * import the workflow * set up your own header-auth credential * update the workflow to use the new credential * test or activate workflow as usual. ## example invocation ``` $ curl -H "api-key: super-long-api-token" http://localhost:5678/webhook-test/4879bc79-d6f8-48df-bfe4-613366c7f399 ["88.88.88.66", "88.88.88.88"] ```
Generate customizable random strings with interactive forms
## contract * input: length of the strings and number of copies * output: random strings as specified. * randomness determined by Crypto node (generate/base64) ## How to run the workflow 1. Import the workflow into your n8n project 2. Click the Form Trigger to specify the length of the strings and how many copies to generate 3. The workflow runs then displays the generated random strings ## How to set up * No additional set up is necessary to execute the workflow manually. ## integration Patterns of interests * formTrigger node to submit a form, then use form (end) node to display results at the end of the triggered workflow. * set(dup)-summarize(concatenate) to run a part of the workflow multiple times then merge the results to one piece of data