Seefs
980af061fd
feat: TLS_INSECURE_SKIP_VERIFY env
2026-01-15 14:43:53 +08:00
Xyfacai
389ddfa8a9
Merge pull request #2590 from xyfacai/fix/max-body-limit
...
fix: 设置默认max req body 为128MB
2026-01-06 21:47:12 +08:00
CaIon
75a6a0ba2b
feat(init): increase maximum file download size to 64MB
2025-12-31 21:15:37 +08:00
CaIon
3523acfc2c
feat(init): increase MaxRequestBodyMB to enhance request handling
2025-12-20 13:27:55 +08:00
t0ng7u
c2ed76ddfd
🛡️ fix: prevent OOM on large/decompressed requests; skip heavy prompt meta when token count is disabled
...
Clamp request body size (including post-decompression) to avoid memory exhaustion caused by huge payloads/zip bombs, especially with large-context Claude requests. Add a configurable `MAX_REQUEST_BODY_MB` (default `32`) and document it.
- Enforce max request body size after gzip/br decompression via `http.MaxBytesReader`
- Add a secondary size guard in `common.GetRequestBody` and cache-safe handling
- Return **413 Request Entity Too Large** on oversized bodies in relay entry
- Avoid building large `TokenCountMeta.CombineText` when both token counting and sensitive check are disabled (use lightweight meta for pricing)
- Update READMEs (CN/EN/FR/JA) with `MAX_REQUEST_BODY_MB`
- Fix a handful of vet/formatting issues encountered during the change
- `go test ./...` passes
2025-12-16 17:00:19 +08:00
CaIon
ea3e9a01a0
feat: 将任务查询数量改为可配置环境变量 TASK_QUERY_LIMIT
2025-12-03 19:27:15 +08:00
Papersnake
14622aede6
fix: set MaxIdleConnsPerHost to 100
2025-12-02 09:55:03 +08:00
Seefs
594075bfdc
fix: nano banana pro 4k(StreamScannerMaxBufferMB env)
2025-11-30 16:08:25 +08:00
Calcium-Ion
ff31f7df1a
Merge pull request #2278 from seefs001/fix/release-version
...
fix: release workflow show version
2025-11-23 23:51:32 +08:00
Seefs
de4b52d320
fix: release workflow show version
2025-11-22 20:06:13 +08:00
CaIon
5a037f2acd
feat: Add CountToken configuration and update token counting logic
2025-11-22 17:15:34 +08:00
CaIon
4dbbf06adc
fix: Update GET_MEDIA_TOKEN_NOT_STREAM default value to false
2025-11-22 16:23:37 +08:00
Leon
71c26a5843
feat: add environment variable switch for critical rate limit
2025-11-06 15:23:34 +08:00
CaIon
8ff87ae6c2
feat: add temporary TASK_PRICE_PATCH configuration to environment variables
2025-10-16 21:59:21 +08:00
Seefs
5010f2d004
format: package name -> github.com/QuantumNous/new-api ( #2017 )
2025-10-11 15:30:09 +08:00
CaIon
c7281a353f
fix(env): update STREAMING_TIMEOUT default value to 300 seconds
2025-08-12 19:58:04 +08:00
CaIon
f14f4eaf1a
✨ feat: refactor environment variable initialization and introduce new constant types for API and context keys
2025-07-03 13:10:25 +08:00
CaIon
2f04ab0daf
✨ feat: enhance environment configuration and resource initialization
2025-07-01 13:13:30 +08:00
CaIon
577b18a1a1
feat: enhance file handling and logging in the application
2025-04-11 16:23:54 +08:00
wkxu
54c5c3118b
refactor: 把common/instants.go里的从Getenv获取的参数,放到init.go的LoadEnv函数里获取
...
把constant/env.go里的从Getenv获取的参数,放到env.go的InitEnv函数里获取。以避免.env文件配置参数不起作用的情况
2025-04-10 09:02:19 +08:00
CalciumIon
6e002a5f0f
feat: enhance environment variable handling and security features
2024-12-30 17:24:19 +08:00
CaIon
b6726096a5
fix VERSION
2023-12-21 23:11:52 +08:00
CaIon
8c4110717f
Warning when SESSION_SECRET is 'random_string'
2023-12-14 11:10:14 +08:00
JustSong
315d7e8692
refactor: update logging related logic
2023-09-17 15:39:46 +08:00
JustSong
fcb6204a69
Update system log
2023-04-22 22:15:48 +08:00
JustSong
4cbef0780e
Initial commit
2023-04-22 20:39:27 +08:00