default GRADIDO_HUB as federation topic

This commit is contained in:
Ulf Gebhardt 2023-01-26 14:01:13 +01:00
parent fe3b02bca7
commit f287a97a3e
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9
2 changed files with 1 additions and 8 deletions

View File

@ -44,7 +44,7 @@ const eventProtocol = {
}
const federation = {
FEDERATION_DHT_TOPIC: process.env.FEDERATION_DHT_TOPIC || null,
FEDERATION_DHT_TOPIC: process.env.FEDERATION_DHT_TOPIC || 'GRADIDO_HUB',
FEDERATION_DHT_SEED: process.env.FEDERATION_DHT_SEED || null,
FEDERATION_COMMUNITY_URL: process.env.FEDERATION_COMMUNITY_URL || null,
}

View File

@ -9,13 +9,6 @@ import CONFIG from './config'
async function main() {
const { app } = await createServer()
// die when there is no FEDERATION_DHT_TOPIC defined
if (!CONFIG.FEDERATION_DHT_TOPIC) {
throw new Error(
'You have to configure a `FEDERATION_DHT_TOPIC` in the config to run this service.',
)
}
// eslint-disable-next-line no-console
console.log(
`starting Federation on ${CONFIG.FEDERATION_DHT_TOPIC} ${