diff --git a/README.md b/README.md index ee79907f..00e5db51 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,7 @@ The code in this repository is licensed under MIT unless otherwise noted. Please * sunbird_telemetry_sync_batch_size e.g: 20 * sunbird_learner_service_local_base_url e.g: 'http://learner-service:9000' * sunbird_content_service_local_base_url e.g: 'http://localhost:5000' +* sunbird_content_upload_data_limit: Content upload data limit e.g.: 50mb (string) ## Setup Instructions * Clone the project.eg .(git clone --recursive url) diff --git a/src/app.js b/src/app.js index b6b964fc..a0f0a069 100644 --- a/src/app.js +++ b/src/app.js @@ -20,7 +20,7 @@ const contentProviderConfigPath = path.join(__dirname, '/config/contentProviderA var contentProviderApiConfig = JSON.parse(fs.readFileSync(contentProviderConfigPath)) const telemtryEventConfig = JSON.parse(fs.readFileSync(path.join(__dirname, 'config/telemetryEventConfig.json'))) -var reqDataLimitOfContentUpload = '50mb' +var reqDataLimitOfContentUpload = process.env.sunbird_content_upload_data_limit || '50mb' const port = process.env.sunbird_content_service_port ? process.env.sunbird_content_service_port : 5000 const defaultChannel = process.env.sunbird_default_channel || 'sunbird'