Skip to content

Commit

Permalink
Configure maximum payload size via env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Jozef Volak authored and marosmars committed Jun 22, 2022
1 parent 99247a4 commit b33bed5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ Default port for user facing proxy: **8088**, Env: `USER_FACING_PORT`

Default port for task proxy: **8089**, Env: `TASK_PROXY_PORT`

Default limit for task proxy: **'50mb'**, Env: `TASK_PROXY_LIMIT`

Default conductor URL to proxy: **http://conductor-server:8080**, Env: `PROXY_TARGET`

Default schellar URL to proxy: **http://schellar:3000**, Env: `SCHELLAR_TARGET`
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ dotenv.config();

var helmet = require('helmet')
const app = ExpressApplication();
app.use(ExpressApplication.json({limit: '50mb', extended: true, type: "application/json"}));
app.use(ExpressApplication.json({limit: process.env.TASK_PROXY_LIMIT ?? '50mb', extended: true, type: "application/json"}));

app.use(
helmet({
Expand Down

0 comments on commit b33bed5

Please sign in to comment.