Skip to content

Commit b875de0

Browse files
committed
doc: fix wrong TWIKOO_IP_HEADERS
1 parent 3999fff commit b875de0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/backend.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ lambda_function_url = "https://axtoiiithbcexamplegq7ozalu0cnkii.lambda-url.us-we
272272
| `TWIKOO_THROTTLE` | IP 请求限流,当同一 IP 短时间内请求次数超过阈值将对该 IP 返回错误 | `250` |
273273
| `TWIKOO_LOCALHOST_ONLY` |`true`时只监听本地请求,使得 nginx 等服务器反代之后不暴露原始端口 | `null` |
274274
| `TWIKOO_LOG_LEVEL` | 日志级别,支持 `verbose` / `info` / `warn` / `error` | `info` |
275-
| `TWIKOO_IP_HEADERS` | 在一些特殊情况下使用,如使用了`CloudFlare CDN` 它会将请求 IP 写到请求头的 `cf-connecting-ip` 字段上,为了能够正确的获取请求 IP 你可以写成 `['headers.cf-connecting-ip']` | `[]` |
275+
| `TWIKOO_IP_HEADERS` | 在一些特殊情况下使用,如使用了 `CloudFlare CDN` 它会将请求 IP 写到请求头的 `cf-connecting-ip` 字段上,为了能够正确的获取请求 IP 你可以写成 `["headers.cf-connecting-ip"]` | `[]` |
276276

277277
4. 启动 Twikoo server: `tkserver`
278278
5. 访问 `http://服务端IP:8080` 测试服务是否启动成功

0 commit comments

Comments
 (0)