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 }}
Lan-Fa
HandyIn
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
HandyIn
/
.env.example
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
54 lines (39 loc) · 1.66 KB
main
Breadcrumbs
HandyIn
/
.env.example
Copy path
Top
File metadata and controls
Code
Blame
54 lines (39 loc) · 1.66 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
44
45
46
47
48
49
50
51
52
53
54
# ============================================================
# HandyIn 配置文件
# 使用方式:cp .env.example .env 后按需修改
# 然后运行 docker compose up -d --build
# ============================================================
# ---- 访问路径与端口 ----
# 子路径前缀(前后端、API、WebSocket 全部共用)。改这里整站换路径。
HANDYIN_BASE_PATH=/handyin
# Caddy 对外 HTTP 端口(容器内固定 80,这里映射到宿主机端口)
# 例如想通过 http://服务器IP:8080/handyin/ 访问,改成 8080
CADDY_HTTP_PORT=80
# Caddy 对外 HTTPS 端口(启用域名自动 HTTPS 时使用)
CADDY_HTTPS_PORT=443
# Caddy 站点地址
# 仅 IP + HTTP 访问: SITE_ADDRESS=http://:80
# 自定义端口 HTTP 访问: SITE_ADDRESS=http://:80 (端口由 CADDY_HTTP_PORT 控制)
# 有域名(自动 HTTPS): SITE_ADDRESS=handyin.example.com
SITE_ADDRESS=http://:80
# ---- 数据库 ----
POSTGRES_DB=handyin
POSTGRES_USER=handyin
# 必填:数据库密码(请改成强密码)
POSTGRES_PASSWORD=change-me-strong-password
# ---- 安全 ----
# 必填:Session Cookie 签名密钥(请改成随机长字符串)
SESSION_SECRET=change-me-to-a-random-secret
# Cookie Secure:HTTP/IP 访问设为 false;启用 HTTPS 后改为 true
COOKIE_SECURE=false
# 登录限流:每分钟允许的登录失败次数
LOGIN_RATE_LIMIT=5
# ---- 初始管理员账号(首次启动自动创建)----
INIT_ADMIN_USERNAME=admin
# 必填:初始密码(首次登录后请立即修改)
INIT_ADMIN_PASSWORD=change-me-now
# ---- 其他 ----
TZ=Asia/Shanghai
LOG_LEVEL=info
MAX_UPLOAD_SIZE=10mb
MAX_UPLOAD_FILES=1
You can’t perform that action at this time.