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
Events
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 }}
LoCCai
HowToCook-API
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
HowToCook-API
/
.env.example
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
36 lines (30 loc) · 1.49 KB
main
Breadcrumbs
HowToCook-API
/
.env.example
Copy path
Top
File metadata and controls
Code
Blame
36 lines (30 loc) · 1.49 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
# 监听端口
PORT=3000
# 监听地址
HOST=127.0.0.1
# 内容根目录(含 dishes/ 与 tips/)。
# 留空时自动探测:上一级目录(与 HowToCook 主仓库同仓开发)→ ./content(首次启动自动从官方仓库下载到此处)。
CONTENT_DIR=
# 资源反代地址(如 https://cdn.example.com)。
# 配置后 image_mode=proxy 会把文档中的图片地址重写为
# ${ASSET_BASE_URL}/dishes/aquatic/小龙虾/成品.jpg
# 由客户端自行从反代拉取;留空则默认使用 server 模式(本服务自己分发)。
ASSET_BASE_URL=
# 默认图片地址模式:relative | server | proxy
# 未设置时:配置了 ASSET_BASE_URL 则为 proxy,否则为 server。
# 任何端点都可用 ?image_mode= 查询参数临时覆盖。
DEFAULT_IMAGE_MODE=
# 开发模式:监视 dishes/ 与 tips/ 目录变化并自动重建索引
WATCH=0
# 限流:每窗口每 IP 最大请求数;0 = 不限(默认)。公网部署建议 120 左右。
RATE_LIMIT_MAX=0
# 限流窗口(毫秒)
RATE_LIMIT_WINDOW_MS=60000
# 部署在反向代理之后时设为 1,使限流按 X-Forwarded-For 识别真实客户端 IP
TRUST_PROXY=0
# 内容自动更新:定时检查上游 HowToCook 仓库并自动拉取(仅对 git 管理的内容目录生效)
CONTENT_AUTO_UPDATE=0
# 自动更新检查间隔(分钟,最小 10)
CONTENT_UPDATE_INTERVAL_MINUTES=1440
# 触发 POST /api/content/update 所需令牌;留空 = 不校验(本地/内网部署)。公网部署务必设置
UPDATE_TOKEN=
You can’t perform that action at this time.