Actions36
- Application Actions
- Database Actions
- Deployment Actions
- Environment Variable Actions
- Private Key Actions
- Project Actions
- Resource Actions
- Server Actions
Overview
This node integrates with the Coolify API to manage environment variables for applications. Specifically, the "Create" operation under the "Environment Variable" resource allows users to add new environment variables to a specified application within Coolify.
Common scenarios where this node is useful include:
- Automating deployment pipelines by programmatically setting environment variables.
- Managing configuration secrets or settings for applications without manual intervention.
- Previewing changes before applying them to avoid misconfiguration.
- Restarting applications automatically after environment variable updates to apply changes immediately.
For example, a user can create multiple environment variables such as database connection strings, API keys, or feature flags for an application identified by its Application ID.
Properties
| Name | Meaning |
|---|---|
| Application ID | The unique identifier of the application to which the environment variables will be added. |
| Environment Variables | A collection of key-value pairs representing environment variables. Each variable includes: Key (name), Value, and a flag indicating if it is secret (sensitive information). Multiple variables can be added at once. |
| Additional Fields | Optional settings including: • Preview Only: If true, only preview the changes without applying them. • Restart Application: If true (default), restart the application after updating environment variables to apply changes immediately. |
Output
The node outputs a JSON array containing the results of the environment variable creation operation. Each item in the output corresponds to the response from the Coolify API for the created environment variables.
If the node supports binary data output, it is not relevant for this operation and thus not applicable here.
Dependencies
- Requires an active connection to the Coolify API via an API authentication token configured in n8n credentials.
- The node depends on the Coolify API endpoints to manage environment variables.
- Proper permissions on the Coolify account are necessary to modify environment variables and restart applications.
Troubleshooting
Common Issues:
- Invalid or missing Application ID: Ensure the Application ID provided exists and is correct.
- Insufficient permissions: The API token must have rights to update environment variables and restart applications.
- Network or API errors: Check connectivity and API status.
- Secret variables mishandling: Mark sensitive variables correctly to avoid exposure.
Error Messages:
"The resource 'environmentVariable' is not implemented!"— This indicates a misconfiguration or unsupported resource selection."The operation 'create' is not implemented!"— This suggests the operation name might be incorrect or not supported.- API errors returned from Coolify (e.g., 401 Unauthorized, 404 Not Found) should be resolved by verifying credentials and resource identifiers.