43 lines
1.7 KiB
Bash
43 lines
1.7 KiB
Bash
# Backend only. Copy to .env.local and inject with Compose env_file, systemd
|
|
# EnvironmentFile, or uvicorn --env-file (requires python-dotenv).
|
|
# Never put a real key in this example or a VITE_* variable.
|
|
PCB_CODEX_AUTH=apikey
|
|
PCB_AI_PROVIDER=openai
|
|
OPENAI_API_KEY=
|
|
# Alternatively mount a secret file; leave OPENAI_API_KEY empty when using it.
|
|
# OPENAI_API_KEY_FILE=/run/secrets/openai_api_key
|
|
# Explicit API endpoint paired with that key. Use the provider's exact base URL;
|
|
# the service does not import your personal Codex configuration automatically.
|
|
PCB_OPENAI_BASE_URL=https://api.vip1129.cc
|
|
PCB_OPENAI_MODEL=gpt-6.1-sol
|
|
|
|
# Optional alternatives, selectable for new designs in the website.
|
|
DEEPSEEK_API_KEY=
|
|
# DEEPSEEK_API_KEY_FILE=/run/secrets/deepseek_api_key
|
|
PCB_DEEPSEEK_BASE_URL=https://api.deepseek.com
|
|
PCB_DEEPSEEK_MODEL=deepseek-flash
|
|
|
|
ARK_API_KEY=
|
|
# ARK_API_KEY_FILE=/run/secrets/ark_api_key
|
|
# DOUBAO_API_KEY / DOUBAO_API_KEY_FILE are accepted aliases.
|
|
PCB_DOUBAO_BASE_URL=https://ark.cn-beijing.volces.com/api/v3
|
|
PCB_DOUBAO_MODEL=doubao-seed-2-1-pro-260915
|
|
# Fail visibly if no native model progress arrives (heartbeats do not count).
|
|
PCB_CODEX_IDLE_TIMEOUT=300
|
|
|
|
# Container examples: set these to the actual installed/mounted paths.
|
|
PCB_SESSION_ROOT=/data
|
|
PCB_CODEX_HOME=/data/codex-home
|
|
PCB_CODEX_BIN=/usr/local/bin/codex
|
|
PCB_EDA_BIN=/opt/lceda-pro/lceda-pro
|
|
PCB_BLENDER_BIN=/usr/bin/blender
|
|
PCB_FREEROUTING_JAR=/opt/pcb-resources/freerouting.jar
|
|
|
|
# Use exact model IDs supported by each provider account; no model fallback.
|
|
# Legacy PCB_MODEL applies only to the default provider. Prefer the provider-
|
|
# specific settings above so changing PCB_AI_PROVIDER cannot reuse a wrong ID.
|
|
PCB_REASONING_EFFORT=high
|
|
|
|
DISPLAY=:99
|
|
XDG_RUNTIME_DIR=/tmp/pcb-xdg
|