Confluence Search Backend Module Plugin
A plugin that provides Confluence-specific functionality that can be used for search in your Backstage App.
It is used in combination with its frontend counterpart
Installation
Add the plugin to your backend app:
yarn add @philips-software/backstage-plugin-search-confluence-backend
Configuration
Update app-config.yml
confluence:
schedule:
frequency:
timeout:
initialDelay:
wikiUrl: https://org-name.atlassian.net/wiki
auth:
token: ${Your PAT Token}
category:
retries:
attempts: 3
delay: 5000
Note: if the Confluence API rate limit is exceeded, the plugin will automatically retry with increasing wait times for a specified number of retry attempts. This can increase the duration of the task. Take this into account when setting the schedule.frequency
and schedule.timeout
values.
Backend Configuration (Follows new backend)
Add the collator to your backend instance, along with the search plugin itself
import { createBackend } from '@backstage/backend-defaults';
import { searchPlugin } from '@backstage/plugin-search-backend/alpha';
import searchConfluenceCollatorModule from '@philips-software/backstage-plugin-search-confluence-backend';
const backend = createBackend();
backend.add(searchPlugin());
backend.add(searchConfluenceCollatorModule());
backend.start();