UNPKG

n8n-nodes-community-coolify

Version:

n8n node to interact with Coolify API - an open-source & self-hostable Heroku / Netlify alternative

47 lines 1.47 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CoolifyApi = void 0; class CoolifyApi { constructor() { this.name = 'coolifyApi'; this.displayName = 'Coolify API'; this.documentationUrl = 'https://coolify.io/docs/api'; this.properties = [ { displayName: 'API Key', name: 'apiKey', type: 'string', default: '', typeOptions: { password: true, }, description: 'Your Coolify API key', }, { displayName: 'Base URL', name: 'baseUrl', type: 'string', default: 'https://your-coolify-instance.com', description: 'The base URL of your Coolify instance', }, ]; this.authenticate = { type: 'generic', properties: { headers: { Authorization: '={{"Bearer " + $credentials.apiKey}}', 'Content-Type': 'application/json', }, }, }; this.test = { request: { baseURL: '={{$credentials?.baseUrl}}', url: '/api/v1/servers', method: 'GET', }, }; } } exports.CoolifyApi = CoolifyApi; //# sourceMappingURL=CoolifyApi.credentials.js.map