perf: ip check (#6850)
* perf: ip check * fix: restore IP limit proxy handling * test: check xff and xri * fix: type check * doc * update template * fix: workspace * fix: import * fix: align IP limit env usage * init env * init env * fix: mongo log url * fix: mongo log url * submodule * update piagent import --------- Co-authored-by: xqvvu <whoeverimf5@gmail.com>
Showing
| ... | ... | @@ -14,6 +14,7 @@ |
| "@apidevtools/swagger-parser": "^10.1.0", | ||
| "@bany/curl-to-json": "^1.2.8", | ||
| "axios": "catalog:", | ||
| "ipaddr.js": "catalog:", | ||
| "cron-parser": "^4.9.0", | ||
| "dayjs": "catalog:", | ||
| "encoding": "^0.1.13", | ||
| ... | ... | @@ -24,7 +25,6 @@ |
| "next": "catalog:", | ||
| "openai": "6.34.0", | ||
| "openapi-types": "^12.1.3", | ||
| "ipaddr.js": "^2.3.0", | ||
| "timezones-list": "^3.0.2", | ||
| "lodash": "catalog:", | ||
| "zod": "catalog:", | ||
| ... | ... |
packages/service/common/security/clientIp.ts
0 → 100644
| ... | ... | @@ -44,6 +44,7 @@ |
| "iconv-lite": "^0.6.3", | ||
| "ioredis": "^5.6.0", | ||
| "joplin-turndown-plugin-gfm": "^1.0.12", | ||
| "ipaddr.js": "catalog:", | ||
| "json5": "catalog:", | ||
| "jsonpath-plus": "^10.3.0", | ||
| "jsonrepair": "^3.0.0", | ||
| ... | ... | @@ -67,9 +68,9 @@ |
| "pg": "^8.10.0", | ||
| "pino": "^9.7.0", | ||
| "pino-opentelemetry-transport": "^1.0.1", | ||
| "proxy-addr": "catalog:", | ||
| "proxy-agent": "catalog:", | ||
| "proxy-from-env": "^1.1.0", | ||
| "request-ip": "catalog:", | ||
| "tiktoken": "1.0.17", | ||
| "turndown": "^7.1.2", | ||
| "undici": "^7.18.2", | ||
| ... | ... | @@ -87,8 +88,8 @@ |
| "@types/node-cron": "^3.0.11", | ||
| "@types/papaparse": "5.3.7", | ||
| "@types/pg": "^8.6.6", | ||
| "@types/proxy-addr": "catalog:", | ||
| "@types/proxy-from-env": "^1.0.4", | ||
| "@types/request-ip": "catalog:", | ||
| "@types/tunnel": "^0.0.4", | ||
| "@types/turndown": "^5.0.4" | ||
| } | ||
| ... | ... |
This diff is collapsed.
Click to expand it.
packages/service/type/env.ts
deleted
100644 → 0
This diff is collapsed.
Click to expand it.
| ... | ... | @@ -86,7 +86,6 @@ |
| "remark-breaks": "^4.0.0", | ||
| "remark-gfm": "catalog:", | ||
| "remark-math": "^6.0.0", | ||
| "request-ip": "catalog:", | ||
| "sass": "^1.58.3", | ||
| "undici": "^7.18.2", | ||
| "use-context-selector": "^1.4.4", | ||
| ... | ... | @@ -106,7 +105,6 @@ |
| "@types/react": "catalog:", | ||
| "@types/react-dom": "catalog:", | ||
| "@types/react-syntax-highlighter": "^15.5.6", | ||
| "@types/request-ip": "catalog:", | ||
| "@typescript-eslint/eslint-plugin": "catalog:", | ||
| "@typescript-eslint/parser": "catalog:", | ||
| "eslint": "catalog:", | ||
| ... | ... |
Please
register
or
sign in
to comment