Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
FluxCode666
codex2api
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
codex2api
/
.env.example
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
43 lines (34 loc) · 1.19 KB
main
Breadcrumbs
codex2api
/
.env.example
Copy path
Top
File metadata and controls
Code
Blame
43 lines (34 loc) · 1.19 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# ============================================================
# Codex2API Docker 环境变量配置
# 复制此文件为 .env 并修改对应值
# ============================================================
# HTTP 服务端口
CODEX_PORT=8080
# 管理后台登录密钥(可选,设置后首次访问 /admin 会弹出密码输入框)
# ADMIN_SECRET=your-admin-password
# 下游 API 密钥鉴权(逗号分隔,留空则不鉴权)
# CODEX_API_KEYS=sk-your-key-1,sk-your-key-2
# 全局代理(可选)
# CODEX_PROXY_URL=http://host.docker.internal:7890
# WebSocket 传输(可选,设置为 true 启用 WebSocket 连接 Codex 上游)
# USE_WEBSOCKET=true
# 快速调度器(可选,也可在管理后台运行时开启)
# FAST_SCHEDULER_ENABLED=true
# ---- PostgreSQL ----
DATABASE_DRIVER=postgres
DATABASE_HOST=postgres
DATABASE_PORT=5432
DATABASE_USER=codex2api
DATABASE_PASSWORD=codex2api
DATABASE_NAME=codex2api
# ---- Redis ----
CACHE_DRIVER=redis
# 支持 host:port、redis://...、rediss://...;Aiven / Upstash 通常使用 rediss://
REDIS_ADDR=redis:6379
REDIS_USERNAME=
REDIS_PASSWORD=
REDIS_DB=0
REDIS_TLS=false
REDIS_INSECURE_SKIP_VERIFY=false
# ---- 时区 ----
TZ=Asia/Shanghai
You can’t perform that action at this time.