Files
claude-api-proxy/.env.example
D8D Developer fafef0e034 feat: 实现 Claude API 透传代理服务
实现完整的 Claude API 代理服务,支持:
- 透传 /v1/* 路径到上游 API
- 流式 (SSE) 和非流式响应
- JSONL 格式请求日志
- /health 健康检查端点
- Docker 多阶段构建
- Gitea Actions CI/CD 工作流

安全加固:
- 容器以非 root 用户运行
- 添加 Docker HEALTHCHECK
- 实现优雅关闭处理 (SIGTERM/SIGINT)

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-03-20 06:47:46 +00:00

10 lines
240 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Claude API 代理配置
# 上游 API 基础 URL
# Anthropic 官方: https://api.anthropic.com
# 智谱端点: https://open.bigmodel.cn/api/anthropic
ANTHROPIC_BASE_URL=https://api.anthropic.com
# 服务端口(默认 3000
PORT=3000