Skip to content

Commit

Permalink
fix: use ENV for server body limit (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelcr committed Oct 6, 2023
1 parent 8184db6 commit d00fb8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chainhook/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export async function startChainhookServer(args: { db: PgStore }): Promise<Chain
external_base_url: `http://${ENV.EXTERNAL_HOSTNAME}`,
wait_for_chainhook_node: ENV.CHAINHOOK_AUTO_PREDICATE_REGISTRATION,
validate_chainhook_payloads: true,
body_limit: 41943040, // 40MB
body_limit: ENV.EVENT_SERVER_BODY_LIMIT,
};
const chainhookOpts: ChainhookNodeOptions = {
base_url: CHAINHOOK_BASE_PATH,
Expand Down

0 comments on commit d00fb8e

Please sign in to comment.