Files
cursor2api/render.yaml
BaskDuan 0f8b3246ed feat: 内置 stealth-proxy 到 Docker 镜像,一个容器搞定 Vercel Bot Protection
- Dockerfile 从 alpine 切换到 slim (Debian) 以支持 Playwright Chromium
- 新增 start.sh 入口脚本,ENABLE_STEALTH=true 时自动启动内置 stealth-proxy
- docker-compose.yml 简化为单容器方案,默认启用 stealth 模式
- 新增 cookie/stealth_proxy/system_prompt 配置项及环境变量支持
- deploy-all.sh 加入 .gitignore(含敏感服务器信息)
- 更新默认指纹为 macOS Chrome 146

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 15:44:32 +08:00

40 lines
1.0 KiB
YAML
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.
services:
- type: web
name: cursor2api
runtime: docker
dockerfilePath: ./Dockerfile
region: singapore
plan: free
envVars:
- key: NODE_ENV
value: production
- key: PORT
value: 3010
- key: TIMEOUT
value: 120
- key: NODE_OPTIONS
value: "--max-old-space-size=400"
# Cursor session token必填
- key: CURSOR_SESSION_TOKEN
sync: false
# API 鉴权 token必填公网部署强烈建议设置
- key: AUTH_TOKEN
sync: false
# 使用的模型
- key: CURSOR_MODEL
value: google/gemini-3-flash
# 历史 token 限制
- key: MAX_HISTORY_TOKENS
value: 120000
# 压缩配置
- key: COMPRESSION_ENABLED
value: true
- key: COMPRESSION_LEVEL
value: 2
# 禁用 SQLiteRender 免费版无持久化磁盘)
- key: LOG_DB_ENABLED
value: false
- key: LOG_FILE_ENABLED
value: false
healthCheckPath: /health