mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
default GRADIDO_HUB as federation topic
This commit is contained in:
parent
fe3b02bca7
commit
f287a97a3e
@ -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,
|
||||
}
|
||||
|
||||
@ -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} ${
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user