测试环境集成方案
针对开发测试场景的特殊需求,可采用:
- 环境识别: By
ENV=development
变量自动降低验证难度 - Mock模式: Add at startup
--test-mode
参数绕过验证(仅限本地网络) - 自动化测试集成:在CI/CD管道中预置验证头(X-Anubis-Token)
Typical workflow:
- 测试环境部署:
docker run -e ENV=test -p 8081:8080 anubis
- 自动化脚本配置:在请求头中添加
X-Test-Mode: true
- 性能测试时临时关闭:
--disable-for=loadtest
This answer comes from the articleAnubis: Interfering with AI Crawler Crawling by Proof of WorkloadThe