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
Add the plugin to your backend app:
yarn add @philips-software/backstage-plugin-search-confluence-backend
Update app-config.yml
confluence:
schedule:
frequency:
# example: frequency: { minutes: 15 }
timeout:
# example: timeout: { minutes: 15 }
initialDelay:
# example initialDelay: { seconds: 3 }
wikiUrl: https://org-name.atlassian.net/wiki
auth:
token: ${Your PAT Token}
category:
# provide the list of categories you want to use to find spaces that will be indexed
# example
# - space1
# - space2
Add the collator to your backend instance, along with the search plugin itself
// packages/backend/src/index.ts
import { createBackend } from '@backstage/backend-defaults';
import { searchPlugin } from '@backstage/plugin-search-backend/alpha';
import searchConfluenceCollatorModule from '@philips-software/backstage-plugin-search-confluence-backend'; // confluence backend collator
const backend = createBackend();
backend.add(searchPlugin());
backend.add(searchConfluenceCollatorModule());
backend.start();