题目
test.example.com {
@authed {
header Authorization "Bearer 123123123"
}
import log test.example.com
import common
reverse_proxy @authed 127.0.0.1:3003
respond 401 {
body "Unauthorized"
}
}
curl -X GET "https://test.example.com" \
-H "Authorization: Bearer 123123123"
Unauthorized
为什么 Unauthorized?
回答结果
模型名称 reasoning effort 回答正确与否 耗时 deepseek v4 flash max因为我用的 ollama 还没上 deepseek v4 pro,所以用 web 端测试
正确答案
respond 不加 matcher 会匹配所有请求,并且优先于 reverse_proxy
观察思考内容
发现大部分模型都被这两行配置硬控住,反复思考,导致耗时很长。
import log test.example.com
import common
7 个帖子 - 6 位参与者