diff --git a/dht-node/.env.dist b/dht-node/.env.dist index c1641ea98..6c1743d91 100644 --- a/dht-node/.env.dist +++ b/dht-node/.env.dist @@ -1,4 +1,4 @@ -CONFIG_VERSION=v1.2023-01-01 +CONFIG_VERSION=v2.2023-02-03 # Database DB_HOST=localhost @@ -20,3 +20,5 @@ EVENT_PROTOCOL_DISABLED=false # on an hash created from this topic FEDERATION_DHT_TOPIC=GRADIDO_HUB # FEDERATION_DHT_SEED=64ebcb0e3ad547848fef4197c6e2332f +# FEDERATION_COMMUNITY_URL=http://localhost +# FEDERATION_COMMUNITY_API_PORT=5000 diff --git a/dht-node/.env.template b/dht-node/.env.template index eca7cb277..c96d938a5 100644 --- a/dht-node/.env.template +++ b/dht-node/.env.template @@ -15,3 +15,4 @@ EVENT_PROTOCOL_DISABLED=$EVENT_PROTOCOL_DISABLED FEDERATION_DHT_TOPIC=$FEDERATION_DHT_TOPIC FEDERATION_DHT_SEED=$FEDERATION_DHT_SEED FEDERATION_COMMUNITY_URL=$FEDERATION_COMMUNITY_URL +FEDERATION_COMMUNITY_API_PORT=FEDERATION_COMMUNITY_API_PORT diff --git a/dht-node/src/config/index.ts b/dht-node/src/config/index.ts index 02cbb20e9..3da771f92 100644 --- a/dht-node/src/config/index.ts +++ b/dht-node/src/config/index.ts @@ -3,13 +3,13 @@ import dotenv from 'dotenv' dotenv.config() const constants = { - DB_VERSION: '0059-add_hide_amount_to_users', + DB_VERSION: '0060-update_communities_table', LOG4JS_CONFIG: 'log4js-config.json', // default log level on production should be info LOG_LEVEL: process.env.LOG_LEVEL || 'info', CONFIG_VERSION: { DEFAULT: 'DEFAULT', - EXPECTED: 'v1.2023-01-01', + EXPECTED: 'v2.2023-02-03', CURRENT: '', }, } @@ -36,7 +36,8 @@ const eventProtocol = { const federation = { 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, + FEDERATION_COMMUNITY_URL: process.env.FEDERATION_COMMUNITY_URL || 'http://localhost', + FEDERATION_COMMUNITY_API_PORT: process.env.FEDERATION_COMMUNITY_API_PORT || '5000', } // Check config version