mirror of
https://github.com/zyycn/codex-proxy-rs.git
synced 2026-11-06 16:06:08 +00:00
100 lines
2.3 KiB
YAML
100 lines
2.3 KiB
YAML
server:
|
|
host: '0.0.0.0'
|
|
port: 8080
|
|
api:
|
|
base_url: 'https://chatgpt.com/backend-api'
|
|
model:
|
|
default: gpt-5.5
|
|
default_reasoning_effort: null
|
|
default_service_tier: null
|
|
aliases: {}
|
|
auth:
|
|
refresh_margin_seconds: 300
|
|
refresh_enabled: true
|
|
refresh_concurrency: 2
|
|
max_concurrent_per_account: 3
|
|
request_interval_ms: 50
|
|
rotation_strategy: least_used
|
|
tier_priority: []
|
|
oauth_client_id: app_EMoamEEZ73f0CkXaXp7hrann
|
|
oauth_auth_endpoint: 'https://auth.openai.com/oauth/authorize'
|
|
oauth_token_endpoint: 'https://auth.openai.com/oauth/token'
|
|
quota:
|
|
refresh_interval_minutes: 5
|
|
warning_thresholds:
|
|
primary:
|
|
- 80
|
|
- 90
|
|
secondary:
|
|
- 80
|
|
- 90
|
|
skip_exhausted: true
|
|
usage_stats:
|
|
history_retention_days: null
|
|
database:
|
|
url: 'sqlite://.runtime/data/codex-proxy-rs.sqlite'
|
|
security:
|
|
master_key_file: .runtime/data/master.key
|
|
api_key_pepper_file: .runtime/data/api-key-pepper.key
|
|
tls:
|
|
force_http11: false
|
|
ws_pool:
|
|
enabled: true
|
|
max_age_ms: 3300000
|
|
max_per_account: 8
|
|
fingerprint:
|
|
originator: Codex Desktop
|
|
app_version: '26.519.81530'
|
|
build_number: '3178'
|
|
platform: darwin
|
|
arch: arm64
|
|
chromium_version: '146'
|
|
user_agent_template: Codex Desktop/{version} ({platform}; {arch})
|
|
default_headers:
|
|
- name: Accept-Encoding
|
|
value: gzip, deflate, br, zstd
|
|
- name: Accept-Language
|
|
value: en-US,en;q=0.9
|
|
- name: sec-ch-ua-mobile
|
|
value: '?0'
|
|
- name: sec-ch-ua-platform
|
|
value: '"macOS"'
|
|
- name: sec-fetch-site
|
|
value: same-origin
|
|
- name: sec-fetch-mode
|
|
value: cors
|
|
- name: sec-fetch-dest
|
|
value: empty
|
|
header_order:
|
|
- authorization
|
|
- chatgpt-account-id
|
|
- originator
|
|
- x-openai-internal-codex-residency
|
|
- x-client-request-id
|
|
- x-codex-installation-id
|
|
- x-codex-turn-state
|
|
- openai-beta
|
|
- user-agent
|
|
- sec-ch-ua
|
|
- sec-ch-ua-mobile
|
|
- sec-ch-ua-platform
|
|
- accept-encoding
|
|
- accept-language
|
|
- sec-fetch-site
|
|
- sec-fetch-mode
|
|
- sec-fetch-dest
|
|
- content-type
|
|
- accept
|
|
- cookie
|
|
admin:
|
|
session_ttl_minutes: 1440
|
|
session_cleanup_interval_secs: 3600
|
|
default_username: admin
|
|
default_password: admin
|
|
logging:
|
|
directory: .runtime/logs
|
|
retention_days: 14
|
|
enabled: true
|
|
capacity: 2000
|
|
capture_body: false
|