Skip to content

Commit

Permalink
Added env variable to mention content upload data limit
Browse files Browse the repository at this point in the history
  • Loading branch information
karthik-tarento authored Mar 31, 2022
1 parent 05dbd47 commit abcf293
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit abcf293

Please sign in to comment.