Files
cursor2api/render.yaml
BaskDuan 8109757adc feat: add GitHub Actions workflow for amd64 Docker build and GHCR push
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
2026-03-27 00:41:46 +08:00

40 lines
1.0 KiB
YAML
Raw 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: anthropic/claude-sonnet-4.6
# 历史 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