feat: increase max HTTP header size (#20337)
This commit is contained in:
parent
20e903ef90
commit
09a1afb05e
|
|
@ -67,6 +67,7 @@ jobs:
|
|||
docker run -d \
|
||||
--name rsshub \
|
||||
-e NODE_ENV=dev \
|
||||
-e NODE_OPTIONS='--max-http-header-size=32768' \
|
||||
-e LOGGER_LEVEL=debug \
|
||||
-e ALLOW_USER_HOTLINK_TEMPLATE=true \
|
||||
-e ALLOW_USER_SUPPLY_UNSAFE_DOMAIN=true \
|
||||
|
|
|
|||
|
|
@ -104,6 +104,7 @@ jobs:
|
|||
ALLOW_USER_HOTLINK_TEMPLATE: true
|
||||
ALLOW_USER_SUPPLY_UNSAFE_DOMAIN: true
|
||||
NODE_ENV: dev
|
||||
NODE_OPTIONS: '--max-http-header-size=32768'
|
||||
LOGGER_LEVEL: debug
|
||||
|
||||
- name: Generate feedback
|
||||
|
|
|
|||
|
|
@ -24,15 +24,15 @@
|
|||
"build": "tsx scripts/workflow/build-routes.ts && tsdown",
|
||||
"build:vercel": "tsx scripts/workflow/build-routes.ts && tsdown --config ./tsdown-vercel.config.ts && mv dist/server.js dist/index.js && tsx scripts/workflow/build-vercel-packagejson.ts",
|
||||
"build:docs": "tsx scripts/workflow/build-docs.ts",
|
||||
"dev": "cross-env NODE_ENV=dev tsx watch --inspect --clear-screen=false lib/index.ts",
|
||||
"dev:cache": "cross-env NODE_ENV=production tsx watch --clear-screen=false lib/index.ts",
|
||||
"dev": "cross-env NODE_ENV=dev NODE_OPTIONS='--max-http-header-size=32768' tsx watch --inspect --clear-screen=false lib/index.ts",
|
||||
"dev:cache": "cross-env NODE_ENV=production NODE_OPTIONS='--max-http-header-size=32768' tsx watch --clear-screen=false lib/index.ts",
|
||||
"format": "prettier \"**/*.{ts,tsx,js,json}\" --write --experimental-cli && eslint --cache --fix \"**/*.{ts,tsx,js,yml}\" --concurrency auto",
|
||||
"format:check": "prettier \"**/*.{ts,tsx,js,json}\" --check --experimental-cli && eslint --cache \"**/*.{ts,tsx,js,yml}\" --concurrency auto",
|
||||
"format:staged": "lint-staged",
|
||||
"lint": "eslint --cache . --concurrency auto",
|
||||
"prepare": "husky || true",
|
||||
"profiling": "cross-env NODE_ENV=production tsx --prof lib/index.ts",
|
||||
"start": "cross-env NODE_ENV=production node dist/index.js",
|
||||
"start": "cross-env NODE_ENV=production NODE_OPTIONS='--max-http-header-size=32768' node dist/index.js",
|
||||
"test": "npm run format:check && npm run vitest:coverage",
|
||||
"vitest": "cross-env NODE_ENV=test vitest",
|
||||
"vitest:coverage": "cross-env NODE_ENV=test vitest --coverage.enabled --reporter=junit",
|
||||
|
|
|
|||
Loading…
Reference in New Issue