Skip to content

Commit 8861c19

Browse files
committed
Update Dockerfile and package.json to increase HTTP header size limit for application startup
1 parent 449849e commit 8861c19

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

backend/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ EXPOSE 5000
1919
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
2020
CMD curl -f http://localhost:5000/api/health || exit 1
2121

22-
# Start the application
23-
CMD ["npm", "start"]
22+
# Start the application with increased header limits
23+
CMD ["node", "--max-http-header-size=32768", "index.js"]

backend/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"version": "1.0.0",
44
"main": "index.js",
55
"scripts": {
6-
"start": "node index.js",
7-
"dev": "node index.js",
6+
"start": "node --max-http-header-size=32768 index.js",
7+
"dev": "node --max-http-header-size=32768 index.js",
88
"migrate": "node migrations/run-migrations.js",
99
"seed": "node migrations/run-migrations.js",
1010
"reset-db": "node migrations/run-migrations.js",

0 commit comments

Comments
 (0)